From 44cc4948cec0019a20b4d71ec427c8de0c3ed806 Mon Sep 17 00:00:00 2001 From: VESSILLER Date: Mon, 29 May 2023 16:27:48 +0200 Subject: [PATCH] FIX set action after error on product lot card --- htdocs/product/stock/productlot_card.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/product/stock/productlot_card.php b/htdocs/product/stock/productlot_card.php index 0e00476455e..372af1496cc 100644 --- a/htdocs/product/stock/productlot_card.php +++ b/htdocs/product/stock/productlot_card.php @@ -153,7 +153,7 @@ if (empty($reshook)) { $result = $object->setValueFrom('eatby', $newvalue, '', null, 'date', '', $user, 'PRODUCTLOT_MODIFY'); if ($result < 0) { setEventMessages($object->error, null, 'errors'); - $action == 'editeatby'; + $action = 'editeatby'; } else { $action = 'view'; } @@ -164,7 +164,7 @@ if (empty($reshook)) { $result = $object->setValueFrom('sellby', $newvalue, '', null, 'date', '', $user, 'PRODUCTLOT_MODIFY'); if ($result < 0) { setEventMessages($object->error, null, 'errors'); - $action == 'editsellby'; + $action = 'editsellby'; } else { $action = 'view'; } @@ -175,7 +175,7 @@ if (empty($reshook)) { $result = $object->setValueFrom('eol_date', $newvalue, '', null, 'date', '', $user, 'PRODUCTLOT_MODIFY'); if ($result < 0) { setEventMessages($object->error, null, 'errors'); - $action == 'editeol_date'; + $action = 'editeol_date'; } else { $action = 'view'; } @@ -186,7 +186,7 @@ if (empty($reshook)) { $result = $object->setValueFrom('manufacturing_date', $newvalue, '', null, 'date', '', $user, 'PRODUCTLOT_MODIFY'); if ($result < 0) { setEventMessages($object->error, null, 'errors'); - $action == 'editmanufacturing_date'; + $action = 'editmanufacturing_date'; } else { $action = 'view'; } @@ -197,7 +197,7 @@ if (empty($reshook)) { $result = $object->setValueFrom('scrapping_date', $newvalue, '', null, 'date', '', $user, 'PRODUCTLOT_MODIFY'); if ($result < 0) { setEventMessages($object->error, null, 'errors'); - $action == 'editscrapping_date'; + $action = 'editscrapping_date'; } else { $action = 'view'; } @@ -218,7 +218,7 @@ if (empty($reshook)) { $result = $object->setValueFrom('qc_frequency', GETPOST('qc_frequency'), '', null, 'int', '', $user, 'PRODUCT_MODIFY'); if ($result < 0) { // Prévoir un test de format de durée setEventMessages($object->error, null, 'errors'); - $action == 'editqc_frequency'; + $action = 'editqc_frequency'; } else { $action = 'view'; }