You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In facture.class.php line 2871 the if do 3 tests at the same time that all need to be true :
$this->db->query($sqlef)
$this->db->query($sql)
$this->delete_linked_contact()
In delete_linked_contact from the object CommonObject, the result can be :
Return integer <0 if KO, 0=Nothing done, >0 if OK
The ligne : if ($this->db->query($sqlef) && $this->db->query($sql) && $this->delete_linked_contact()) {
Have to be change by: if ($this->db->query($sqlef) && $this->db->query($sql) && $this->delete_linked_contact()>=0) {
Dolibarr Version
19.0.2
Environment PHP
8.2.5
Environment Database
MySQL or MariaDB 10.11.2-MariaDB
Steps to reproduce the behavior and expected behavior
Create a draft invoice.
Try do delete It.
Attached files
No response
The text was updated successfully, but these errors were encountered:
Bug
Error when trying to delete a draft invoice.
In facture.class.php line 2871 the if do 3 tests at the same time that all need to be true :
In delete_linked_contact from the object CommonObject, the result can be :
Return integer <0 if KO, 0=Nothing done, >0 if OK
The ligne :
if ($this->db->query($sqlef) && $this->db->query($sql) && $this->delete_linked_contact()) {
Have to be change by:
if ($this->db->query($sqlef) && $this->db->query($sql) && $this->delete_linked_contact()>=0) {
Dolibarr Version
19.0.2
Environment PHP
8.2.5
Environment Database
MySQL or MariaDB 10.11.2-MariaDB
Steps to reproduce the behavior and expected behavior
Create a draft invoice.
Try do delete It.
Attached files
No response
The text was updated successfully, but these errors were encountered: