Update api_thirdparties.class.php

This commit is contained in:
Laurent Destailleur 2021-03-08 16:20:15 +01:00 committed by GitHub
parent 4834f5fdf4
commit 77b60d4d1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1815,7 +1815,7 @@ class Thirdparties extends DolibarrApi
if (!DolibarrApiAccess::$user->rights->societe->lire) {
throw new RestException(401);
}
if ($rowid == 0 && empty($email) && empty($barcode)) {
if ($rowid === 0 && empty($email) && empty($barcode)) {
$result = $this->company->initAsSpecimen();
} else {
$result = $this->company->fetch($rowid, $ref, $ref_ext, $barcode, $idprof1, $idprof2, $idprof3, $idprof4, $idprof5, $idprof6, $email, $ref_alias);