diff --git a/db/update5.2.1.sql b/db/update5.2.1.sql
index 93f10e2b08..35954e5826 100644
--- a/db/update5.2.1.sql
+++ b/db/update5.2.1.sql
@@ -1,2 +1 @@
ALTER TABLE `zt_project` DROP `goal`;
-ALTER TABLE `zt_build` ADD `packageType` varchar(10) COLLATE 'utf8_general_ci' NOT NULL DEFAULT 'path' AFTER `scmPath`;
diff --git a/db/zentao.sql b/db/zentao.sql
index 4d95a9d17c..c5568d9152 100644
--- a/db/zentao.sql
+++ b/db/zentao.sql
@@ -67,7 +67,6 @@ CREATE TABLE IF NOT EXISTS `zt_build` (
`project` mediumint(8) unsigned NOT NULL default '0',
`name` char(150) NOT NULL,
`scmPath` char(255) NOT NULL,
- `packageType` varchar(10) COLLATE 'utf8_general_ci' NOT NULL DEFAULT 'path',
`filePath` char(255) NOT NULL,
`date` date NOT NULL,
`stories` text NOT NULL,
diff --git a/lib/front/front.class.php b/lib/front/front.class.php
index 10ab0455df..28049a743a 100644
--- a/lib/front/front.class.php
+++ b/lib/front/front.class.php
@@ -784,6 +784,7 @@ EOT;
$jsConfig->submitting = $lang->submitting;
$jsConfig->save = $lang->save;
$jsConfig->router = $app->server->PHP_SELF;
+ $jsConfig->timeout = $lang->timeout;
$js = self::start(false);
$js .= 'var config=' . json_encode($jsConfig);
diff --git a/module/bug/control.php b/module/bug/control.php
index c9f115f807..04249cae9d 100644
--- a/module/bug/control.php
+++ b/module/bug/control.php
@@ -836,9 +836,11 @@ class bug extends control
if($this->post->bugIDList)
{
$bugIDList = $this->post->bugIDList;
- foreach($_POST as $postKey => $postValue) unset($_POST[$postKey]);
- $bugs = $this->bug->getList($bugIDList);
+ /* Reset $_POST. Do not unset that because the function of close need that in model. */
+ $_POST = array();
+
+ $bugs = $this->bug->getByList($bugIDList);
foreach($bugs as $bugID => $bug)
{
if($bug->status != 'resolved')
@@ -1031,6 +1033,9 @@ class bug extends control
*/
public function sendmail($bugID, $actionID)
{
+ /* Reset $this->output. */
+ $this->clear();
+
/* Set toList and ccList. */
$bug = $this->bug->getByID($bugID);
$productName = $this->products[$bug->product];
@@ -1067,7 +1072,7 @@ class bug extends control
$this->view->bug = $bug;
$this->view->action = $action;
$this->view->users = $this->user->getPairs('noletter');
- $this->clear();
+
$mailContent = $this->parse($this->moduleName, 'sendmail');
/* Send it. */
diff --git a/module/bug/css/customfields.css b/module/bug/css/customfields.css
index d2edc24eaf..c85159f6a6 100644
--- a/module/bug/css/customfields.css
+++ b/module/bug/css/customfields.css
@@ -1,4 +1,4 @@
body{background:white; overflow:hidden;}
-.btn-group .btn{display: block;width: 80px;text-align: center;margin-top: -1px;}
+.btn-group .btn{display: block;width: 60px;text-align: center; padding: 4px; margin-bottom:2px;}
.btn-group .btn:hover{z-index: 9999;}
-.btn-group .btn i{line-height: 21px;}
\ No newline at end of file
+.btn-group .btn i{line-height: 21px;}
diff --git a/module/bug/model.php b/module/bug/model.php
index fec11d38a3..877cb4a77e 100644
--- a/module/bug/model.php
+++ b/module/bug/model.php
@@ -78,6 +78,7 @@ class bugModel extends model
$data = fixer::input('post')->get();
$actions = array();
+ /* Get pairs(moduleID => moduleOwner) for bug. */
$stmt = $this->dbh->query($this->loadModel('tree')->buildMenuQuery($productID, 'bug', $startModuleID = 0));
$moduleOwners = array();
while($module = $stmt->fetch()) $moduleOwners[$module->id] = $module->owner;
@@ -201,7 +202,7 @@ class bugModel extends model
* @access public
* @return array
*/
- public function getList($bugIDList = 0)
+ public function getByList($bugIDList = 0)
{
return $this->dao->select('*')->from(TABLE_BUG)
->where('deleted')->eq(0)
@@ -422,7 +423,7 @@ class bugModel extends model
public function batchConfirm($bugIDList)
{
$now = helper::now();
- $bugs = $this->getList($bugIDList);
+ $bugs = $this->getByList($bugIDList);
foreach($bugIDList as $bugID)
{
if($bugs[$bugID]->confirmed) continue;
@@ -482,7 +483,7 @@ class bugModel extends model
public function batchResolve($bugIDList, $resolution, $resolvedBuild)
{
$now = helper::now();
- $bugs = $this->getList($bugIDList);
+ $bugs = $this->getByList($bugIDList);
foreach($bugIDList as $bugID)
{
$oldBug = $bugs[$bugID];
diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php
index 5f5b6d3e6a..8ad4b24606 100644
--- a/module/bug/view/browse.html.php
+++ b/module/bug/view/browse.html.php
@@ -40,7 +40,7 @@ js::set('customed', $customed);
';
- echo html::a("#", " " . $lang->export, '', "id='exportAction' onclick=\"toggleSubMenu(this.id,'bottom',0)\" title='{$lang->export}'");
+ echo html::a("#", " " . $lang->export, '', "id='exportAction' onclick=\"toggleSubMenu(this.id,'bottom',0)\"");
echo '';
common::printIcon('bug', 'report', "productID=$productID&browseType=$browseType&moduleID=$moduleID");
diff --git a/module/bug/view/sendmail.html.php b/module/bug/view/sendmail.html.php
index af791bb650..003295c46f 100644
--- a/module/bug/view/sendmail.html.php
+++ b/module/bug/view/sendmail.html.php
@@ -24,15 +24,7 @@ if($onlybody) $_GET['onlybody'] = 'no';
|