From 0ebc3bbc9f90d5a3605cea60f13407058bf2b2a8 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 27 Jul 2016 12:29:30 +0200 Subject: [PATCH] Fix default value of operator --- apps/workflowengine/js/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/workflowengine/js/admin.js b/apps/workflowengine/js/admin.js index 394c580fbb..48d1592b45 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