From aa23271c3624f3738103b386416e27a0d8e33f35 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 23 Nov 2023 14:24:42 +0100 Subject: [PATCH] Corrected status codes in PLog --- application/Preorderlogistics/PreorderlogisticsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Preorderlogistics/PreorderlogisticsController.php b/application/Preorderlogistics/PreorderlogisticsController.php index 3d1e79bf7..d95070dde 100644 --- a/application/Preorderlogistics/PreorderlogisticsController.php +++ b/application/Preorderlogistics/PreorderlogisticsController.php @@ -275,9 +275,9 @@ class PreorderlogisticsController extends mfBaseController { $plog->sent_by = $this->me->id; $plog->sent = date('U'); - $new_status = PreorderstatusModel::getFirst(["code" => 260]); + $new_status = PreorderstatusModel::getFirst(["code" => 145]); - if($preorder->status->code < 260) { + if($preorder->status->code < $new_status->code) { $plog->prev_status_code = $preorder->status->code; $preorder->status_id = $new_status->id; $preorder->save();