* Change date save data.

This commit is contained in:
caoyanyi
2023-06-13 14:08:03 +08:00
parent 0de10551c6
commit e2b195c11f
+1 -1
View File
@@ -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);