fix #28374 : tosell is not used anymore on products, use status (#28647)

This commit is contained in:
thomas-Ngr 2024-03-05 17:18:36 +01:00 committed by GitHub
parent 0ba3567ad6
commit 8d9e9f13cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,7 @@ if (empty($reshook)) {
$line->fetch_product();
}
if (is_object($line->product) && $line->product->id > 0) {
if (empty($line->product->tosell)) {
if (empty($line->product->status)) {
$warningMsgLineList[$line->id] = $langs->trans('WarningLineProductNotToSell', $line->product->ref);
}
}

View File

@ -203,7 +203,7 @@ if (empty($reshook)) {
$line->fetch_product();
}
if (is_object($line->product) && $line->product->id > 0) {
if (empty($line->product->tosell)) {
if (empty($line->product->status)) {
$warningMsgLineList[$line->id] = $langs->trans('WarningLineProductNotToSell', $line->product->ref);
}
}

View File

@ -234,7 +234,7 @@ if (empty($reshook)) {
$line->fetch_product();
}
if (is_object($line->product) && $line->product->id > 0) {
if (empty($line->product->tosell)) {
if (empty($line->product->status)) {
$warningMsgLineList[$line->id] = $langs->trans('WarningLineProductNotToSell', $line->product->ref);
}
}