From 427a8c5bf4ad76d024f40aeeaaad9d4848bcced8 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Tue, 12 Jul 2016 09:56:43 +0200 Subject: [PATCH 1/2] Display label and location of event on tooltip Think some additionnal info must be show on society too --- htdocs/comm/action/class/actioncomm.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index e759e93a635..ad58f612c1c 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -1102,10 +1102,13 @@ class ActionComm extends CommonObject $tooltip = '' . $langs->trans('ShowAction'.$objp->code) . ''; if (! empty($this->ref)) $tooltip .= '
' . $langs->trans('Ref') . ': ' . $this->ref; - if (! empty($this->label)) - $tooltip .= '
' . $langs->trans('Title') . ': ' . $this->label; $label = $this->label; if (empty($label)) $label=$this->libelle; // For backward compatibility + if (! empty($label)) + $tooltip .= '
' . $langs->trans('Title') . ': ' . $label; + if (! empty($this->location)) + $tooltip .= '
' . $langs->trans('Location') . ': ' . $this->location; + $linkclose = '" title="'.dol_escape_htmltag($tooltip, 1).'">'; if ($option=='birthday') $link = ''; + if (! is_object($hookmanager)) + { + include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php'; + $hookmanager=new HookManager($this->db); + } + $hookmanager->initHooks(array('actiondao')); + $parameters=array('id'=>$this->id); + $reshook=$hookmanager->executeHooks('getnomurltooltip',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks + $linkclose = ($hookmanager->resPrint ? $hookmanager->resPrint : $linkclose); - $linkclose = '" title="'.dol_escape_htmltag($tooltip, 1).'">'; - if ($option=='birthday') $link = 'libelle.'-'.$withpicto; if ($withpicto == 2) {