From 3c4b34dc9caa12e83473c0329c3b90ed1f40b4fc Mon Sep 17 00:00:00 2001 From: zhengrunyu Date: Thu, 6 Jan 2022 11:32:56 +0800 Subject: [PATCH] *Fix bug --- module/productplan/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/productplan/model.php b/module/productplan/model.php index 71725b6530..848a221976 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -464,8 +464,8 @@ class productplanModel extends model { $oldPlan = $this->dao->findByID((int)$planID)->from(TABLE_PRODUCTPLAN)->fetch(); $plan = fixer::input('post')->stripTags($this->config->productplan->editor->edit['id'], $this->config->allowedTags) - ->setIF($this->post->future and empty($_POST['begin']), 'begin', $this->config->productplan->future) - ->setIF($this->post->future and empty($_POST['end']), 'end', $this->config->productplan->future) + ->setIF($this->post->future or empty($_POST['begin']), 'begin', $this->config->productplan->future) + ->setIF($this->post->future or empty($_POST['end']), 'end', $this->config->productplan->future) ->remove('delta,uid,future') ->get();