mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 20:39:13 +02:00
If application changed actions in get_rows(), the new actions need to be sent through etemplate_widget_nextmatch::egw_actions(). Now doing so automatically.
Fixes js error in infolog refresh.
This commit is contained in:
@@ -342,6 +342,15 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
|||||||
// These keys we don't send row data back, as they cause a partial reload
|
// These keys we don't send row data back, as they cause a partial reload
|
||||||
if(in_array($key, array('template'))) $no_rows = true;
|
if(in_array($key, array('template'))) $no_rows = true;
|
||||||
|
|
||||||
|
// Actions still need extra handling
|
||||||
|
if($key == 'actions' && !isset($value['actions'][0]))
|
||||||
|
{
|
||||||
|
$value['action_links'] = array();
|
||||||
|
$template_name = isset($value['template']) ? $value['template'] : '';
|
||||||
|
if (!is_array($value['action_links'])) $value['action_links'] = array();
|
||||||
|
$value['actions'] = self::egw_actions($value['actions'], $template_name, '', $value['action_links']);
|
||||||
|
}
|
||||||
|
|
||||||
$changes = true;
|
$changes = true;
|
||||||
$request_value[$key] = $value[$key];
|
$request_value[$key] = $value[$key];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user