Update supplier_proposal.class.php

This commit is contained in:
fr69400 2021-04-27 18:22:31 +02:00
parent 3d38301be9
commit c7c1756703

View File

@ -1403,9 +1403,9 @@ class SupplierProposal extends CommonObject
// Numbering module definition
$soc = new Societe($this->db);
$soc->fetch($this->socid);
$result = $soc->fetch($this->socid);
if ($soc < 0) return -1;
if ($result < 0) return -1;
// Define new ref
if (preg_match('/^[\(]?PROV/i', $this->ref) || empty($this->ref)) { // empty should not happened, but when it occurs, the test save life