From 8bbd609d56a1634f71868f98169c0e7677b4da97 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 30 Aug 2023 16:19:14 +0800 Subject: [PATCH] * Fix error for date. --- module/task/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/task/model.php b/module/task/model.php index 75fb9d6741..8f4e4830c5 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -121,6 +121,8 @@ class taskModel extends model ->setIF(is_numeric($this->post->estimate), 'estimate', (float)$this->post->estimate) ->setIF(is_numeric($this->post->consumed), 'consumed', (float)$this->post->consumed) ->setIF(is_numeric($this->post->left), 'left', (float)$this->post->left) + ->setIF(!$this->post->estStarted, 'estStarted', null) + ->setIF(!$this->post->deadline, 'deadline', null) ->setDefault('openedBy', $this->app->user->account) ->setDefault('openedDate', helper::now()) ->setDefault('vision', $this->config->vision) @@ -128,8 +130,6 @@ class taskModel extends model ->stripTags($this->config->task->editor->create['id'], $this->config->allowedTags) ->join('mailto', ',') ->remove('after,files,labels,assignedTo,uid,storyEstimate,storyDesc,storyPri,team,teamSource,teamEstimate,teamConsumed,teamLeft,teamMember,multiple,teams,contactListMenu,selectTestStory,testStory,testPri,testEstStarted,testDeadline,testAssignedTo,testEstimate,sync,otherLane,region,lane,estStartedDitto,deadlineDitto') - ->removeIF(!$this->post->estStarted, 'estStarted') - ->removeIF(!$this->post->deadline, 'deadline') ->add('version', 1) ->get();