Skip to content

Commit

Permalink
Merge pull request #41 from AdFabConnect/fix_abe_update
Browse files Browse the repository at this point in the history
fix: bug update admin
  • Loading branch information
gregorybesson committed Nov 25, 2016
2 parents 03e9b01 + 454eeff commit becb7b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@
"body-parser": "^1.14.1",
"child-process-promise": "^2.1.3",
"cli-color": "^1.1.0",
"cli-table": "^0.3.1",
"commander": "^2.9.0",
"connect-busboy": "0.0.2",
"deepmerge": "^1.1.0",
"dir-compare": "^1.2.0",
"exec": "^0.2.1",
"express": "^4.13.3",
"express-handlebars": "^3.0.0",
"express-secure-handlebars": "^2.1.0",
Expand Down
16 changes: 9 additions & 7 deletions src/cli/cms/editor/handlebars/sourceAttr.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ function isSelected(currentValue, values) {
var isEqual = false
if(typeof currentValue === 'object' && Object.prototype.toString.call(currentValue) === '[object Object]') {
Array.prototype.forEach.call(values, (value) => {
var checkAllEqual = false
Array.prototype.forEach.call(Object.keys(value), (key) => {
if (currentValue[key] != null && currentValue[key] == value[key] && checkAllEqual == false) {
checkAllEqual = true
if (value != null) {
var checkAllEqual = false
Array.prototype.forEach.call(Object.keys(value), (key) => {
if (currentValue[key] != null && currentValue[key] == value[key] && checkAllEqual == false) {
checkAllEqual = true
}
})
if (checkAllEqual) {
isEqual = true
}
})
if (checkAllEqual) {
isEqual = true
}
})
}else {
Expand Down

0 comments on commit becb7b9

Please sign in to comment.