Merge pull request #23174 from simnandez/15.0

Fix #23142
This commit is contained in:
Laurent Destailleur 2022-12-10 16:14:54 +01:00 committed by GitHub
commit 0d8dc5c2e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ if (empty($reshook)) {
$object->volume = GETPOST('volume');
$object->volume_units = GETPOST('volume_units'); // This is not the fk_unit but the power of unit
$finished = GETPOST('finished', 'int');
if ($finished > 0) {
if ($finished >= 0) {
$object->finished = $finished;
} else {
$object->finished = null;