mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Check modifications array for attributes too - catches attributes set by app (eg: disabled)
This commit is contained in:
parent
d37beb2def
commit
9abe56ff94
@ -173,6 +173,13 @@ class etemplate_widget
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Add in anything in the modification array
|
||||
if(is_array(self::$request->modifications[$this->id]))
|
||||
{
|
||||
$this->attrs = array_merge($this->attrs,self::$request->modifications[$this->id]);
|
||||
}
|
||||
|
||||
return $template;
|
||||
}
|
||||
|
||||
@ -343,10 +350,8 @@ class etemplate_widget
|
||||
$expand['cont'] =& self::get_array(self::$request->content, $cname);
|
||||
$expand['cname'] = $cname;
|
||||
}
|
||||
if ($respect_disabled && ($disabled = $this->attrs['disabled']))
|
||||
if ($respect_disabled && ($disabled = $this->attrs['disabled'] || $disabled = self::check_disabled($disabled, $expand)))
|
||||
{
|
||||
// check if disabled contains @ or !
|
||||
$disabled = self::check_disabled($disabled, $expand);
|
||||
if ($disabled)
|
||||
{
|
||||
error_log(__METHOD__."('$method_name', ".array2string($params).', '.array2string($respect_disabled).") $this disabled='{$this->attrs['disabled']}'='$disabled': NOT running");
|
||||
|
Loading…
Reference in New Issue
Block a user