From 4891c52d6766ae350e084ee5f0f4ded54664712b Mon Sep 17 00:00:00 2001 From: Stas Arshanski Date: Mon, 14 Nov 2022 18:03:23 +0200 Subject: [PATCH] print collection values as json --- jade-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jade-helpers.js b/jade-helpers.js index bdc75ed..6aaed8e 100644 --- a/jade-helpers.js +++ b/jade-helpers.js @@ -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.model].cms, attr)) })); }); }else {