From 9ee6fdd163cd2304ff1957a1913b9e082c16b531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 31 Mar 2015 21:07:17 +0200 Subject: [PATCH] Tooltip of actioncomm show empty ref --- htdocs/comm/action/class/actioncomm.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 37758eea2ab..900fea2d079 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -970,7 +970,10 @@ class ActionComm extends CommonObject $result=''; $tooltip = '' . $langs->trans('ShowAction'.$objp->code) . ''; - $tooltip .= '
' . $langs->trans('Ref') . ': ' . $this->label; + if (! empty($this->ref)) + $tooltip .= '
' . $langs->trans('Ref') . ': ' . $this->label; + if (! empty($this->label)) + $tooltip .= '
' . $langs->trans('Title') . ': ' . $this->label; $label = $this->label; if (empty($label)) $label=$this->libelle; // For backward compatibility $linkclose = '" title="'.dol_escape_htmltag($tooltip, 1).'" class="classfortooltip">';