diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-26 09:43:54 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-26 09:43:54 +0200 |
commit | 73cb19ca0d598d984d815c451a054d631c8562de (patch) | |
tree | c17761479587e1dedc9ad8e0ce60491112ebb2df /apps/workflowengine | |
parent | 26f1745fb97343c24a470505e921790ecba0cc3d (diff) | |
download | nextcloud-server-73cb19ca0d598d984d815c451a054d631c8562de.tar.gz nextcloud-server-73cb19ca0d598d984d815c451a054d631c8562de.zip |
Fix selection of workflowengine rules and operators
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r-- | apps/workflowengine/js/admin.js | 2 | ||||
-rw-r--r-- | apps/workflowengine/templates/admin.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/workflowengine/js/admin.js b/apps/workflowengine/js/admin.js index 2c6fa54d87d..0357d741ab1 100644 --- a/apps/workflowengine/js/admin.js +++ b/apps/workflowengine/js/admin.js @@ -21,7 +21,7 @@ (function() { Handlebars.registerHelper('selectItem', function(currentValue, itemValue) { if(currentValue === itemValue) { - return 'selected=selected'; + return 'selected="selected"'; } return ""; diff --git a/apps/workflowengine/templates/admin.php b/apps/workflowengine/templates/admin.php index 8f0124c5cbe..500300f93b3 100644 --- a/apps/workflowengine/templates/admin.php +++ b/apps/workflowengine/templates/admin.php @@ -55,12 +55,12 @@ <div class="check" data-id="{{@index}}"> <select class="check-class"> {{#each ../classes}} - <option value="{{class}}" {{selectItem class ../class}}>{{name}}</option> + <option value="{{class}}" {{{selectItem class ../class}}}>{{name}}</option> {{/each}} </select> <select class="check-operator"> {{#each (getOperators class)}} - <option value="{{operator}}" {{selectItem operator ../operator}}>{{name}}</option> + <option value="{{operator}}" {{{selectItem operator ../operator}}}>{{name}}</option> {{/each}} </select> <input type="text" class="check-value" value="{{value}}"> |