From 8de13c5bbad46012b89a2fbb12cd0dd3f40953a3 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 17 Apr 2019 12:43:27 -0600 Subject: [PATCH] Get radioboxes to understand {value: ..., label: ...} option format --- api/js/etemplate/et2_widget_radiobox.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/etemplate/et2_widget_radiobox.js b/api/js/etemplate/et2_widget_radiobox.js index 3875c5d1c3..2d581d0343 100644 --- a/api/js/etemplate/et2_widget_radiobox.js +++ b/api/js/etemplate/et2_widget_radiobox.js @@ -371,6 +371,11 @@ var et2_radioGroup = (function(){ "use strict"; return et2_valueWidget.extend([e ro_false: this.options.ro_false, readonly: this.options.readonly }; + if(typeof _options[key] === 'object' && _options[key].label) + { + attrs.set_value = _options[key].value; + attrs.label = _options[key].label; + } // Can't have a required readonly, it will warn & be removed later, so avoid the warning if(attrs.readonly === false) {