Update upgrade2.php

This commit is contained in:
Frédéric FRANCE 2025-11-28 07:59:10 +01:00 committed by GitHub
parent 57431464f5
commit 87fbbce618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4567,8 +4567,8 @@ function migrate_productlot_path()
}
if ($dir) {
$lot->id = $obj->rowid;
$lot->ref = $obj->rowid; // No ref for the moment
$lot->id = (int) $obj->rowid;
$lot->ref = (string) $obj->rowid; // No ref for the moment
$lot->batch = $obj->batch;
$lot->entity = $obj->entity;
$lot->fk_product = $obj->fk_product;