From 149cc28282bc45cd0d8c7bf42583166814628450 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Wed, 28 Dec 2016 13:56:45 +0800 Subject: [PATCH 1/3] * adjust code for task #2810. --- module/productplan/view/view.html.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/productplan/view/view.html.php b/module/productplan/view/view.html.php index 0985770fc5..5ddafbd5cf 100644 --- a/module/productplan/view/view.html.php +++ b/module/productplan/view/view.html.php @@ -17,6 +17,8 @@
icons['plan']);?> id;?> title;?> + type !== 'normal') echo "" . $branches[$branch] . '';?> + begin . '~' . $plan->end;?> deleted):?> plan->deleted;?> From 830d4091215450d9262fae24d08e2ee55beaf760 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Wed, 28 Dec 2016 14:31:28 +0800 Subject: [PATCH 2/3] * adjust code for task #2808. --- module/project/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/project/control.php b/module/project/control.php index d333791e5d..664766da5d 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -386,8 +386,7 @@ class project extends control $this->loadModel('task'); foreach($mails as $mail) $this->task->sendmail($mail->taskID, $mail->actionID); - /* Locate the browser. */ - die(js::locate($this->createLink('project', 'task', "projectID=$projectID"), 'parent')); + die(js::locate($this->createLink('project', 'importBug', "projectID=$projectID"), 'parent')); } /* Set browseType, productID, moduleID and queryID. */ From d77aae1feb609f9387439f91e189543de79e397a Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Wed, 28 Dec 2016 14:49:42 +0800 Subject: [PATCH 3/3] * merge two mails subject as the subject. --- module/mail/lang/zh-cn.php | 1 + module/mail/model.php | 28 ++++++++++++++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/module/mail/lang/zh-cn.php b/module/mail/lang/zh-cn.php index 359eeb1568..0ce9fda6bd 100755 --- a/module/mail/lang/zh-cn.php +++ b/module/mail/lang/zh-cn.php @@ -68,6 +68,7 @@ $lang->mail->secureList[''] = '不加密'; $lang->mail->secureList['ssl'] = 'ssl'; $lang->mail->secureList['tls'] = 'tls'; +$lang->mail->more = '更多...'; $lang->mail->inputFromEmail = '请输入发信邮箱:'; $lang->mail->nextStep = '下一步'; $lang->mail->successSaved = '配置信息已经成功保存。'; diff --git a/module/mail/model.php b/module/mail/model.php index c58c580def..d6fa4df0e7 100644 --- a/module/mail/model.php +++ b/module/mail/model.php @@ -568,10 +568,20 @@ class mailModel extends model $firstMail = array_shift($mails); $lastMail = array_pop($mails); - $mail->id = $firstMail->id; - $mail->toList = $firstMail->toList; - $mail->ccList = $firstMail->ccList; - $mail->subject = $firstMail->subject; + /* Set mail info.*/ + $mail->id = $firstMail->id; + $mail->toList = $firstMail->toList; + $mail->ccList = $firstMail->ccList; + $mail->subject = $firstMail->subject; + if($mails) + { + $secondMail = reset($mails); + $mail->subject .= '|' . $secondMail->subject . '|' . $this->lang->mail->more; + } + else + { + $mail->subject .= '|' . $lastMail->subject; + } /* Remove html tail for first mail. */ $endPos = strripos($firstMail->body, ''); @@ -582,8 +592,7 @@ class mailModel extends model { foreach($mails as $middleMail) { - $mail->id .= ',' . $middleMail->id; - $mail->subject .= '|' . $middleMail->subject; + $mail->id .= ',' . $middleMail->id; /* Remove html head and tail for middle mails. */ $beginPos = strpos($middleMail->body, ''); @@ -595,12 +604,11 @@ class mailModel extends model } } - $mail->id .= ',' . $lastMail->id; - $mail->subject .= '|' . $lastMail->subject; + $mail->id .= ',' . $lastMail->id; /* Remove html head for last mail. */ - $beginPos = strpos($lastMail->body, ''); - $mailBody = substr($lastMail->body, $beginPos); + $beginPos = strpos($lastMail->body, ''); + $mailBody = substr($lastMail->body, $beginPos); $mail->body .= trim(ltrim($mailBody, '')); return $mail;