check type in all cases to specified eg. select-app was as widget-type was not understood

This commit is contained in:
Ralf Becker 2016-04-25 19:21:46 +00:00
parent 06c4b2db23
commit 88ecdf19db

View File

@ -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