mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
FIX: payment card: misleading message when delete button disabled
This commit is contained in:
@@ -522,8 +522,14 @@ if (!empty($conf->global->BILL_ADD_PAYMENT_VALIDATION)) {
|
||||
}
|
||||
}
|
||||
|
||||
$params = array();
|
||||
|
||||
if (! empty($title_button)) {
|
||||
$params['attr'] = array('title' => $title_button);
|
||||
}
|
||||
|
||||
if ($user->socid == 0 && $action == '') {
|
||||
print dolGetButtonAction($langs->trans("Delete"), '', 'delete', $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delete&token='.newToken(), 'delete', $user->rights->facture->paiement && !$disable_delete);
|
||||
print dolGetButtonAction($langs->trans("Delete"), '', 'delete', $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delete&token='.newToken(), 'delete', $user->rights->facture->paiement && !$disable_delete, $params);
|
||||
}
|
||||
|
||||
print '</div>';
|
||||
|
||||
Reference in New Issue
Block a user