From 13598f53420d78240f8f5fdc89ba70b2f61cd936 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 22f822b0e1..36709dda86 100644 --- a/api/src/Etemplate/Widget/Select.php +++ b/api/src/Etemplate/Widget/Select.php @@ -438,6 +438,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) {