FIX warehouse list status (#31902)

This commit is contained in:
IC-Victorien 2024-11-15 22:32:10 +01:00 committed by GitHub
parent f80dd66ecc
commit 4432fa7913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -255,7 +255,7 @@ if ($separatedPMP) {
}
$sql .= " WHERE t.entity IN (".getEntity('stock').")";
foreach ($search as $key => $val) {
if (array_key_exists($key, $object->fields)) {
if (array_key_exists($key, $object->fields)||$key == 'status') {
$class_key = $key;
if ($class_key == 'status') {
$class_key = 'statut'; // remove this after refactoring entrepot.class property statut to status