mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 16:18:49 +01:00
Move every CustomFields.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory client/)
This commit is contained in:
parent
030359aa0e
commit
47c70f03a2
2 changed files with 6 additions and 4 deletions
|
|
@ -16,10 +16,11 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
customFieldsSum() {
|
||||
return CustomFields.find({
|
||||
const ret = ReactiveCache.getCustomFields({
|
||||
boardIds: { $in: [Session.get('currentBoard')] },
|
||||
showSumAtTopOfList: true,
|
||||
});
|
||||
return ret;
|
||||
},
|
||||
|
||||
openForm(options) {
|
||||
|
|
@ -269,8 +270,7 @@ BlazeComponent.extendComponent({
|
|||
arr = [];
|
||||
_.forEach(
|
||||
ReactiveCache.getBoard(currentBoardId)
|
||||
.customFields()
|
||||
.fetch(),
|
||||
.customFields(),
|
||||
function (field) {
|
||||
if (field.automaticallyOnCard || field.alwaysOnCard)
|
||||
arr.push({ _id: field._id, value: null });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue