Merge pull request #23414 from Hystepik/develop#1
Fix : facture-rec 's deletion process
This commit is contained in:
commit
700e0139cc
@ -271,7 +271,7 @@ if (empty($reshook)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Delete
|
// Delete
|
||||||
if ($action == 'confirm_deleteinvoice' && $confirm == 'yes' && $user->rights->facture->supprimer) {
|
if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->facture->supprimer) {
|
||||||
$object->delete($user);
|
$object->delete($user);
|
||||||
|
|
||||||
header("Location: ".DOL_URL_ROOT.'/compta/facture/invoicetemplate_list.php');
|
header("Location: ".DOL_URL_ROOT.'/compta/facture/invoicetemplate_list.php');
|
||||||
@ -1175,8 +1175,8 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Confirm delete of repeatable invoice
|
// Confirm delete of repeatable invoice
|
||||||
if ($action == 'ask_deleteinvoice') {
|
if ($action == 'delete') {
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteRepeatableInvoice'), $langs->trans('ConfirmDeleteRepeatableInvoice'), 'confirm_deleteinvoice', '', 'no', 1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteRepeatableInvoice'), $langs->trans('ConfirmDeleteRepeatableInvoice'), 'confirm_delete', '', 'no', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user