From e6cfe7a505266c99d6887146c908a7e1f0b6c107 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 25 Mar 2013 21:46:18 +0000 Subject: [PATCH] Accept modifications where the value evaluates to false --- etemplate/js/et2_core_widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_widget.js b/etemplate/js/et2_core_widget.js index ada56d6088..1da957e91e 100644 --- a/etemplate/js/et2_core_widget.js +++ b/etemplate/js/et2_core_widget.js @@ -481,7 +481,7 @@ var et2_widget = Class.extend({ if(_target.id && this.getArrayMgr("modifications").getEntry(_target.id)) { var mod = this.getArrayMgr("modifications").getEntry(_target.id); - if(mod.options) attrValue = _attrsObj[i].value = mod.options; + if(typeof mod.options != "undefined") attrValue = _attrsObj[i].value = mod.options; } // Check for entire legacy options passed in content if(attrValue.charAt(0) == '@' && attrValue.indexOf(',') == -1)