Merge pull request #9393 from nextcloud/bugfix/noid/fix-workflow-rules
Fix workflow rules
This commit is contained in:
commit
ec0623045b
|
@ -167,12 +167,12 @@
|
|||
url: OC.linkToOCS('cloud/groups', 2) + 'details',
|
||||
dataType: 'json',
|
||||
quietMillis: 100,
|
||||
}).success(function(response) {
|
||||
}).success(function(data) {
|
||||
if (data.ocs.data.groups && data.ocs.data.groups.length > 0) {
|
||||
|
||||
data.ocs.data.groups.forEach(function(group) {
|
||||
self.groups.push({ id: group.id, displayname: group.displayname });
|
||||
})
|
||||
});
|
||||
self.render();
|
||||
|
||||
} else {
|
||||
|
@ -270,6 +270,7 @@
|
|||
var check = OCA.WorkflowEngine.getCheckByClass(value);
|
||||
if (!_.isUndefined(check)) {
|
||||
checks[id]['operator'] = check['operators'][0]['operator'];
|
||||
checks[id]['value'] = '';
|
||||
}
|
||||
}
|
||||
// model change will trigger render
|
||||
|
|
|
@ -63,7 +63,9 @@
|
|||
},
|
||||
formatSelection: function (tagId) {
|
||||
var tag = OC.SystemTags.collection.get(tagId);
|
||||
if (!_.isUndefined(tag)) {
|
||||
return OC.SystemTags.getDescriptiveTag(tag);
|
||||
}
|
||||
},
|
||||
escapeMarkup: function(m) {
|
||||
return m;
|
||||
|
|
Loading…
Reference in New Issue