From 2c19c0a10e0a94d58f49f9fa1c9545149c0fd5dd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 5 Dec 2017 20:16:28 +0100 Subject: [PATCH] Fix test --- htdocs/compta/facture/class/facture.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index b5e18948b38bb..502ec7a74da36 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1783,7 +1783,7 @@ function delete($user, $notrigger=0, $idwarehouse=-1) // Test to avoid invoice deletion (allowed if draft) $test = $this->is_erasable(); - if ($test <= 0) return $test; + if ($test <= 0) return 0; $error=0;