mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Try harder for nextmatch template name so it can be passed to hooks. If it can't be found in value, look in original attributes.
This commit is contained in:
parent
50b4067299
commit
51f9177634
@ -506,7 +506,7 @@ class Nextmatch extends Etemplate\Widget
|
||||
if($key == 'actions' && !isset($value['actions'][0]))
|
||||
{
|
||||
$value['action_links'] = array();
|
||||
$template_name = isset($value['template']) ? $value['template'] : '';
|
||||
$template_name = $value['template'] ?: $template->attrs['template'] ?: '';
|
||||
if (!is_array($value['action_links'])) $value['action_links'] = array();
|
||||
$value['actions'] = self::egw_actions($value['actions'], $template_name, '', $value['action_links']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user