Fix default value of operator

This commit is contained in:
Joas Schilling 2016-07-27 12:29:30 +02:00
parent 34f46c8e7f
commit 0ebc3bbc9f
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@
checks.push({ checks.push({
'class': classname, 'class': classname,
'operator': operators[0], 'operator': operators[0]['operator'],
'value': '' 'value': ''
}); });
this.model.set({'checks': checks}); this.model.set({'checks': checks});
@ -242,7 +242,7 @@
if (key === 'class') { if (key === 'class') {
var check = OCA.WorkflowEngine.getCheckByClass(value); var check = OCA.WorkflowEngine.getCheckByClass(value);
if (!_.isUndefined(check)) { if (!_.isUndefined(check)) {
checks[id]['operator'] = check['operators'][0]; checks[id]['operator'] = check['operators'][0]['operator'];
} }
} }
// model change will trigger render // model change will trigger render