forked from Wavyzz/dolibarr
FIX text in tooltip on buttons when pb is not a permission problem
This commit is contained in:
@@ -3027,6 +3027,7 @@ if ($action == 'create' && $usercancreate) {
|
|||||||
if ($numlines > 0) {
|
if ($numlines > 0) {
|
||||||
print dolGetButtonAction('', $langs->trans('Validate'), 'default', $_SERVER["PHP_SELF"].'?action=validate&token='.newToken().'&id='.$object->id, $object->id, 1);
|
print dolGetButtonAction('', $langs->trans('Validate'), 'default', $_SERVER["PHP_SELF"].'?action=validate&token='.newToken().'&id='.$object->id, $object->id, 1);
|
||||||
} else {
|
} else {
|
||||||
|
$langs->load("errors");
|
||||||
print dolGetButtonAction($langs->trans("ErrorObjectMustHaveLinesToBeValidated", $object->ref), $langs->trans('Validate'), 'default', $_SERVER["PHP_SELF"].'?action=validate&token='.newToken().'&id='.$object->id, $object->id, 0);
|
print dolGetButtonAction($langs->trans("ErrorObjectMustHaveLinesToBeValidated", $object->ref), $langs->trans('Validate'), 'default', $_SERVER["PHP_SELF"].'?action=validate&token='.newToken().'&id='.$object->id, $object->id, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12838,7 +12838,7 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url =
|
|||||||
$attr['class'] = 'butActionRefused';
|
$attr['class'] = 'butActionRefused';
|
||||||
$attr['href'] = '';
|
$attr['href'] = '';
|
||||||
$attr['title'] = (($label && $text && $label != $text) ? $label : '');
|
$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)) {
|
if (!empty($id)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user