need to init action_links, as they are stored from previous requests and used in egw_actions to detect we are on first level of menu

This commit is contained in:
Ralf Becker 2012-03-27 14:02:34 +00:00
parent f5c5ef9c29
commit f9e3fc5aec

View File

@ -130,6 +130,7 @@ class etemplate_widget_nextmatch extends etemplate_widget
// set up actions, but only if they are defined AND not already set up (run throught self::egw_actions())
if (isset($value['actions']) && !isset($value['actions'][0]))
{
$value['action_links'] = array();
$template_name = isset($value['template']) ? $value['template'] : $this->attrs['options'];
if (!is_array($value['action_links'])) $value['action_links'] = array();
$value['actions'] = self::egw_actions($value['actions'], $template_name, '', $value['action_links']);