From 3808dd6fee61a00127e3a06afee70d0c269aa5d0 Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 14 Aug 2017 13:32:02 -0600 Subject: [PATCH] Fix bug where radiobuttons with the same value as Array methods would break --- api/js/etemplate/et2_widget_radiobox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_radiobox.js b/api/js/etemplate/et2_widget_radiobox.js index 6fc98b137d..fa3d642db1 100644 --- a/api/js/etemplate/et2_widget_radiobox.js +++ b/api/js/etemplate/et2_widget_radiobox.js @@ -65,7 +65,7 @@ var et2_radiobox = (function(){ "use strict"; return et2_inputWidget.extend( transformAttributes: function(_attrs) { this._super.apply(this, arguments); var readonly = this.getArrayMgr('readonlys').getEntry(this.id); - if(readonly && readonly[_attrs.set_value]) + if(readonly && readonly.hasOwnProperty(_attrs.set_value)) { _attrs.readonly = readonly[_attrs.set_value]; }