Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
Fix bug related to quoting of key handle keys
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERMD committed Jun 23, 2017
1 parent c05a3d2 commit 0df3574
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/src/jtui/components/project/projectService.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ angular.module('jtui.project')
for (var i in h.description.input) {
if ('key' in h.description.input[i]) {
var val = h.description.input[i].key;
// Let's quote the value of "key" keys to be sure
// that they will be strings.
val = "'" + val + "'";
} else {
var val = h.description.input[i].value;
}
Expand All @@ -33,9 +36,6 @@ angular.module('jtui.project')
if (typeof val == 'string') {
if (val.indexOf(',') > -1) {
val = val.split(',');
} else {
// We need to quote strings explicitly.
val = "'" + val + "'";
}
}
if (val instanceof Array) {
Expand Down

0 comments on commit 0df3574

Please sign in to comment.