From 0a38857e648ea9e8874b0f7cced0c7aa4ac29e04 Mon Sep 17 00:00:00 2001 From: Alasdair Campbell Date: Fri, 5 Jun 2015 00:03:35 +0100 Subject: [PATCH] Fix ifAttrNotEmpty failing with boolean attributes --- frontend/client/src/view-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/client/src/view-helper.js b/frontend/client/src/view-helper.js index 017efd86d2..12de34dd4c 100644 --- a/frontend/client/src/view-helper.js +++ b/frontend/client/src/view-helper.js @@ -145,7 +145,7 @@ }); Handlebars.registerHelper('ifAttrNotEmpty', function (model, attr, options) { - if (model.get(attr)) { + if (model.get(attr) !== null) { return options.fn(this); } return options.inverse(this);