Merge pull request #14101 from mistraloz/patch-5
Fix: Bug when delete payment when already deleted in account
This commit is contained in:
commit
5a53a16c17
@ -532,7 +532,9 @@ class Paiement extends CommonObject
|
|||||||
$accline = new AccountLine($this->db);
|
$accline = new AccountLine($this->db);
|
||||||
|
|
||||||
$result=$accline->fetch($bank_line_id);
|
$result=$accline->fetch($bank_line_id);
|
||||||
if ($result == 0) $accline->rowid=$bank_line_id; // If not found, we set artificially rowid to allow delete of llx_bank_url
|
if ($result == 0) {
|
||||||
|
$accline->id = $accline->rowid = $bank_line_id; // If not found, we set artificially rowid to allow delete of llx_bank_url
|
||||||
|
}
|
||||||
|
|
||||||
// Delete bank account url lines linked to payment
|
// Delete bank account url lines linked to payment
|
||||||
$result=$accline->delete_urls($user);
|
$result=$accline->delete_urls($user);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user