From 9b3f6cfa5a253070d5d73931b0483aa39c1ce825 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Fri, 9 Dec 2022 20:38:44 +0100 Subject: [PATCH] Fix #23142 --- htdocs/product/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index cb3513c63ba..351245794c3 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -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;