FIX text in tooltip on buttons when pb is not a permission problem

This commit is contained in:
ldestailleur
2025-03-17 11:05:41 +01:00
parent e4cbc6502f
commit 07d517ec49
2 changed files with 2 additions and 1 deletions

View File

@@ -12838,7 +12838,7 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url =
$attr['class'] = 'butActionRefused';
$attr['href'] = '';
$attr['title'] = (($label && $text && $label != $text) ? $label : '');
$attr['title'] = ($attr['title'] ? $attr['title'].'<br>' : '').$langs->trans('NotEnoughPermissions');
$attr['title'] = ($attr['title'] ? $attr['title'] : $langs->trans('NotEnoughPermissions'));
}
if (!empty($id)) {