Merge pull request #9409 from nextcloud/backport/9393/workflow-rules-error-when-changing-operation
[stable13] workflow rules error when changing operation
This commit is contained in:
commit
fe2d99f3fb
|
@ -248,6 +248,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);
|
||||
return OC.SystemTags.getDescriptiveTag(tag);
|
||||
if (!_.isUndefined(tag)) {
|
||||
return OC.SystemTags.getDescriptiveTag(tag);
|
||||
}
|
||||
},
|
||||
escapeMarkup: function(m) {
|
||||
return m;
|
||||
|
|
Loading…
Reference in New Issue