FIX: payment card: misleading message when delete button disabled
This commit is contained in:
parent
bac3c36436
commit
37276cae5f
1 changed files with 7 additions and 1 deletions
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Reference in a new issue