From 88ecdf19db8b56f12a04d39e405e6095c50bc0d8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 25 Apr 2016 19:21:46 +0000 Subject: [PATCH] check type in all cases to specified eg. select-app was as widget-type was not understood --- api/src/Etemplate/Widget/Select.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Select.php b/api/src/Etemplate/Widget/Select.php index 83a1de8e91..e666851c61 100644 --- a/api/src/Etemplate/Widget/Select.php +++ b/api/src/Etemplate/Widget/Select.php @@ -294,7 +294,7 @@ class Select extends Etemplate\Widget unset(self::$request->content[$this->id]); $this->attrs['readonly'] = true; } - if(!in_array($this->attrs['type'], self::$cached_types)) + if(!in_array($type, self::$cached_types)) { // adding type specific options here, while keep further options set by app code // we need to make sure to run only once for auto-repeated rows, because