From 939602ade2fcb134f391f3a820604be103f3a3af Mon Sep 17 00:00:00 2001 From: liuruogu Date: Thu, 15 Sep 2022 00:48:26 +0000 Subject: [PATCH] * Do task #69012. --- module/weekly/model.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/module/weekly/model.php b/module/weekly/model.php index 400c59ac5d..d45302657b 100755 --- a/module/weekly/model.php +++ b/module/weekly/model.php @@ -47,14 +47,9 @@ class weeklyModel extends model $weeks = $this->getWeekPairs($begin, $end); $current = zget($weeks, $date, current($weeks)); - $selectHtml = ''; - - if(!empty($project->hasProduct)) - { - $selectHtml .= "
"; - $selectHtml .= html::a('###', $this->lang->weekly->common . $this->lang->colon . $project->name, '', "class='btn'"); - $selectHtml .= '
'; - } + $selectHtml = "
"; + $selectHtml .= html::a('###', $this->lang->weekly->common . $this->lang->colon . $project->name, '', "class='btn'"); + $selectHtml .= '
'; $selectHtml .= "
"; $selectHtml .= "
";