Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update card.php
Browse files Browse the repository at this point in the history
eldy authored Nov 12, 2024
1 parent 3d9d313 commit a97ac7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/fourn/commande/card.php
Original file line number Diff line number Diff line change
@@ -1135,7 +1135,9 @@
if ($action == 'confirm_delete' && $confirm == 'yes' && $usercandelete) {
// Delete existing dispatched lines
$errOnDelete = 0;

Check failure on line 1138 in htdocs/fourn/commande/card.php

GitHub Actions / pre-commit / pre-commit

Whitespace found at end of line
$db->begin();

Check failure on line 1140 in htdocs/fourn/commande/card.php

GitHub Actions / pre-commit / pre-commit

Whitespace found at end of line
if ($stockDelete) {
$dispatchedLines = $object->getDispachedLines();
if (!empty($dispatchedLines)) {
@@ -1174,13 +1176,15 @@
}
}
}

Check failure on line 1179 in htdocs/fourn/commande/card.php

GitHub Actions / pre-commit / pre-commit

Whitespace found at end of line
if (empty($errOnDelete)) {
$result = $object->delete($user);
if ($result > 0) {
$db->commit();
header("Location: " . DOL_URL_ROOT . '/fourn/commande/list.php?restore_lastsearch_values=1');
exit;
} else {
$db->rollback();
setEventMessages($object->error, $object->errors, 'errors');
}
} else {

0 comments on commit a97ac7e

Please sign in to comment.