mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-21 00:03:16 +01:00
Qual: Fix phan notices (#31193)
# Qual: Fix phan notices Fix phan notices in several classes that have UnknownObjectMethod calls and classes that had notices in relation with these classes
This commit is contained in:
@@ -140,7 +140,7 @@ if ($action == 'initbarcodethirdparties' && $user->hasRight('societe', 'lire'))
|
||||
$thirdpartystatic->id = $obj->rowid;
|
||||
$nextvalue = $modBarCodeThirdparty->getNextValue($thirdpartystatic, '');
|
||||
|
||||
$result = $thirdpartystatic->setValueFrom('barcode', $nextvalue, '', '', 'text', '', $user, 'THIRDPARTY_MODIFY');
|
||||
$result = $thirdpartystatic->setValueFrom('barcode', $nextvalue, '', null, 'text', '', $user, 'THIRDPARTY_MODIFY');
|
||||
|
||||
$nbtry++;
|
||||
if ($result > 0) {
|
||||
@@ -249,7 +249,7 @@ if ($action == 'initbarcodeproducts' && $user->hasRight('produit', 'lire')) {
|
||||
$nextvalue = $modBarCodeProduct->getNextValue($productstatic, '');
|
||||
|
||||
//print 'Set value '.$nextvalue.' to product '.$productstatic->id." ".$productstatic->ref." ".$productstatic->type."<br>\n";
|
||||
$result = $productstatic->setValueFrom('barcode', $nextvalue, '', '', 'text', '', $user, 'PRODUCT_MODIFY');
|
||||
$result = $productstatic->setValueFrom('barcode', $nextvalue, '', null, 'text', '', $user, 'PRODUCT_MODIFY');
|
||||
|
||||
$nbtry++;
|
||||
if ($result > 0) {
|
||||
|
||||
Reference in New Issue
Block a user