From d6cea498cd6567484017e40539486fe256d9aea5 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 12 Oct 2021 10:33:07 +0800 Subject: [PATCH] * Finish task #43206. --- 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 730b949045..7a026dcc0a 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -347,7 +347,7 @@ class productplanModel extends model ->data($plan) ->autoCheck() ->batchCheck($this->config->productplan->create->requiredFields, 'notempty') - ->checkIF(!$this->post->future && !empty($_POST['begin']) && !empty($_POST['end']), 'end', 'gt', $plan->begin) + ->checkIF(!$this->post->future && !empty($_POST['begin']) && !empty($_POST['end']), 'end', 'ge', $plan->begin) ->exec(); if(!dao::isError()) { @@ -389,7 +389,7 @@ class productplanModel extends model ->data($plan) ->autoCheck() ->batchCheck($this->config->productplan->edit->requiredFields, 'notempty') - ->checkIF(!$this->post->future && !empty($_POST['begin']) && !empty($_POST['end']), 'end', 'gt', $plan->begin) + ->checkIF(!$this->post->future && !empty($_POST['begin']) && !empty($_POST['end']), 'end', 'ge', $plan->begin) ->where('id')->eq((int)$planID) ->exec(); if(!dao::isError())