From c99f0ee32dddb09f91957fd9059b78be52778f31 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 5 May 2014 22:17:23 +0000 Subject: [PATCH] Fix bug in last select option fallback option, was getting value instead of options --- etemplate/js/et2_widget_selectbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index cb1dde786b..ce2ffe06b7 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -826,8 +826,8 @@ jQuery.extend(et2_selectbox, { // If that didn't work, check according to ID if (!content_options) content_options = content_mgr.getEntry("options-" + widget.id); - // Again, try last name part at top level - this is usually just the value - if (!content_options) content_options = content_mgr.getRoot().getEntry(name_parts[name_parts.length-1]); + // Again, try last name part at top level + if (!content_options) content_options = content_mgr.getRoot().getEntry("options-"+name_parts[name_parts.length-1]); } }