From 48ad4f6d25e8a52b76de018d15c59a0970687196 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 6 Nov 2018 16:31:17 +0100 Subject: [PATCH] Make sure value is set before using it --- 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 9736fe66ec..3875c5d1c3 100644 --- a/api/js/etemplate/et2_widget_radiobox.js +++ b/api/js/etemplate/et2_widget_radiobox.js @@ -142,7 +142,7 @@ var et2_radiobox = (function(){ "use strict"; return et2_inputWidget.extend( } }, this, et2_radiobox); - return val.indexOf(values) ? val : null; + return val && val.indexOf(values) ? val : null; }, /**