summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-27 12:29:30 +0200
committerJoas Schilling <coding@schilljs.com>2016-07-27 12:29:30 +0200
commitd47b7bd4b221bcc88515da07bf796f58c5d09807 (patch)
tree9d66c34c5f93193f2ef3c4241104500477840f97 /apps/workflowengine/js
parenta3d1cd4ad224059d3bc512b5591356d384d70f4c (diff)
downloadnextcloud-server-d47b7bd4b221bcc88515da07bf796f58c5d09807.tar.gz
nextcloud-server-d47b7bd4b221bcc88515da07bf796f58c5d09807.zip
Fix default value of operator
Diffstat (limited to 'apps/workflowengine/js')
-rw-r--r--apps/workflowengine/js/admin.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/workflowengine/js/admin.js b/apps/workflowengine/js/admin.js
index 394c580fbb5..48d1592b457 100644
--- a/apps/workflowengine/js/admin.js
+++ b/apps/workflowengine/js/admin.js
@@ -206,7 +206,7 @@
checks.push({
'class': classname,
- 'operator': operators[0],
+ 'operator': operators[0]['operator'],
'value': ''
});
this.model.set({'checks': checks});
@@ -242,7 +242,7 @@
if (key === 'class') {
var check = OCA.WorkflowEngine.getCheckByClass(value);
if (!_.isUndefined(check)) {
- checks[id]['operator'] = check['operators'][0];
+ checks[id]['operator'] = check['operators'][0]['operator'];
}
}
// model change will trigger render