mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
allow to use namespaced $readonlys for grids, eg. grid uses "grid" as name, you can now set $readonlys["grid"]["something"] as well as $readonlys["something"] like in eTemplate2
This commit is contained in:
parent
617928f00b
commit
184a9fa4e8
@ -1526,7 +1526,7 @@ class etemplate_old extends boetemplate
|
||||
{
|
||||
$cname .= $cname == '' ? $name : '['.str_replace('[','][',str_replace(']','',$name)).']';
|
||||
}
|
||||
$html .= $this->show_grid($cell,$name ? $value : $content,$readonlys,$cname,$show_c,$show_row,$path);
|
||||
$html .= $this->show_grid($cell,$name ? $value : $content,$readonlys+(array)$readonlys[$name],$cname,$show_c,$show_row,$path);
|
||||
if ($set_readonlys_all) unset($readonlys['__ALL__']);
|
||||
break;
|
||||
case 'template': // size: index in content-array (if not full content is past further on)
|
||||
|
Loading…
Reference in New Issue
Block a user