From e2b195c11f4da2cec12df114e37f6be8d84aebd9 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 13 Jun 2023 14:06:04 +0800 Subject: [PATCH] * Change date save data. --- module/branch/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/branch/model.php b/module/branch/model.php index 45eca7bbe9..2f166548cd 100644 --- a/module/branch/model.php +++ b/module/branch/model.php @@ -230,7 +230,7 @@ class branchModel extends model $oldBranch = $this->getById($branchID, 0, ''); $newBranch = fixer::input('post')->get(); - $newBranch->closedDate = $newBranch->status == 'closed' ? helper::today() : ''; + $newBranch->closedDate = $newBranch->status == 'closed' ? helper::today() : null; $this->app->loadLang('product'); $productType = $this->getProductType($branchID);