From a66a15044cdf95dd2ba4f178ce72f8b8639f7115 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 1 Feb 2024 14:30:43 +0800 Subject: [PATCH] * Fix bug #45749, If the plan's begin and end date are in the future, set them to emtpy. --- module/execution/zen.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/execution/zen.php b/module/execution/zen.php index 6265e63822..41ed3e1283 100644 --- a/module/execution/zen.php +++ b/module/execution/zen.php @@ -1771,6 +1771,8 @@ class executionZen extends execution if($planID) { $plan = $this->loadModel('productplan')->fetchByID($planID); + if($plan->begin == $this->config->productplan->future) $plan->begin = ''; + if($plan->end == $this->config->productplan->future) $plan->end = ''; $products = $this->dao->select('t1.id, t1.name, t1.type, t2.branch')->from(TABLE_PRODUCT)->alias('t1') ->leftJoin(TABLE_PROJECTPRODUCT)->alias('t2')->on('t1.id = t2.product') ->where('t1.id')->eq($plan->product)