This commit is contained in:
zhengrunyu
2022-01-06 11:32:56 +08:00
parent 666760a95c
commit 3c4b34dc9c
+2 -2
View File
@@ -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();