From fa2469b0e3d63601a3e7f6fee155485cc66e8f68 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 2 Oct 2018 14:19:12 -0600 Subject: [PATCH] Prefer most specific select options, if available --- api/src/Etemplate/Widget/Select.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/src/Etemplate/Widget/Select.php b/api/src/Etemplate/Widget/Select.php index b4e258bdcb..2f101b592d 100644 --- a/api/src/Etemplate/Widget/Select.php +++ b/api/src/Etemplate/Widget/Select.php @@ -425,6 +425,12 @@ class Select extends Etemplate\Widget $options += self::$request->sel_options[$name]; } + // Check for non-trivial name like a[b] + if(!$options) + { + $options = (array)self::get_array(self::$request->sel_options,$name); + } + // Check for base of name in root of sel_options if(!$options) {