Fix default value of operator
This commit is contained in:
parent
34f46c8e7f
commit
0ebc3bbc9f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue