Skip to content

Commit

Permalink
print collection values as json
Browse files Browse the repository at this point in the history
  • Loading branch information
stuk88 committed Nov 14, 2022
1 parent 41c3622 commit e1e79dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jade-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ module.exports = function(sails) {
attr: attr,
name: name,
options: JSON.stringify(modelsAsOptions(models, sails.models[attr.collection].cms, attr)),
value: value
value: JSON.stringify(modelsAsOptions(value, sails.models[attr.collection].cms, attr))
}));
});
}else {
Expand Down

0 comments on commit e1e79dc

Please sign in to comment.