mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
1) preserving app_header if widget loops / reloads
2) size or options field gets now expaned, one can use eg "$row_content[blah]" in it 3) killed a warning in handling of readonly
This commit is contained in:
parent
bd460d0ea1
commit
a60285870b
@ -162,7 +162,8 @@
|
||||
'to_process' => $GLOBALS['phpgw_info']['etemplate']['to_process'],
|
||||
'java_script' => $GLOBALS['phpgw_info']['etemplate']['java_script'],
|
||||
'dom_enabled' => $GLOBALS['phpgw_info']['etemplate']['dom_enabled'],
|
||||
'hooked' => $hooked != '' ? $hooked : $GLOBALS['phpgw_info']['etemplate']['hook_content']
|
||||
'hooked' => $hooked != '' ? $hooked : $GLOBALS['phpgw_info']['etemplate']['hook_content'],
|
||||
'app_header' => $GLOBALS['phpgw_info']['flags']['app_header'],
|
||||
),$id);
|
||||
|
||||
if ($return_html)
|
||||
@ -241,6 +242,10 @@
|
||||
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('body_data' => $session_data['hooked']));
|
||||
}
|
||||
}
|
||||
if (!empty($session_data['app_header']))
|
||||
{
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $session_data['app_header'];
|
||||
}
|
||||
//echo "<p>process_exec($this->name): <font color=red>loop is set</font>, content=</p>\n"; _debug_array($content);
|
||||
$this->exec($_GET['menuaction'],$session_data['content'],$session_data['sel_options'],
|
||||
$session_data['readonlys'],$session_data['preserv'],$content);
|
||||
@ -516,6 +521,10 @@
|
||||
list(,$class) = explode(',',$cell['span']); // might be set by extension
|
||||
|
||||
$cell_options = $cell['size'];
|
||||
if (strchr($cell_options,'$'))
|
||||
{
|
||||
$cell_options = $this->expand_name($cell_options,$show_c,$show_row,$content['.c'],$content['.row'],$content);
|
||||
}
|
||||
if ($cell_options[0] == '@')
|
||||
{
|
||||
$cell_options = $this->get_array($content,substr($cell_options,1));
|
||||
@ -738,6 +747,7 @@
|
||||
}
|
||||
if ($readonly)
|
||||
{
|
||||
if (!is_array($readonlys)) $readonlys = array();
|
||||
$readonlys['__ALL__'] = True;
|
||||
}
|
||||
$html = $cell['obj']->show($content,$sel_options,$readonlys,$cname,$show_c,$show_row,$cell['onchange'],$cell['tr_class']);
|
||||
|
Loading…
Reference in New Issue
Block a user