* Fix bug #45749, If the plan's begin and end date are in the future, set them to emtpy.

This commit is contained in:
liumengyi
2024-02-01 14:30:43 +08:00
parent c7520261c9
commit a66a15044c
+2
View File
@@ -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)