From 80d47537f3a6feec7e1806e09136e6e213e32cb7 Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Wed, 18 Jun 2014 14:09:56 +0800 Subject: [PATCH] - code for task#1915: remove custom fields of bugs. --- module/bug/control.php | 9 -- module/bug/view/browse.custom.html.php | 141 ------------------------- module/bug/view/browse.html.php | 16 +-- 3 files changed, 1 insertion(+), 165 deletions(-) delete mode 100644 module/bug/view/browse.custom.html.php diff --git a/module/bug/control.php b/module/bug/control.php index 6b4004eab1..d6df4bfc4d 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -107,13 +107,6 @@ class bug extends control /* Process the sql, get the conditon partion, save it to session. */ $this->loadModel('common')->saveQueryCondition($this->dao->get(), 'bug', $browseType == 'needconfirm' ? false : true); - /* Get custom fields. */ - $customFields = $this->cookie->bugFields != false ? $this->cookie->bugFields : $this->config->bug->list->defaultFields; - $customed = !($customFields == $this->config->bug->list->defaultFields); - - /* If customed, get related name or titles. */ - if($customed) $bugs = $this->bug->formCustomedBugs($bugs); - /* Build the search form. */ $this->config->bug->search['actionURL'] = $this->createLink('bug', 'browse', "productID=$productID&browseType=bySearch&queryID=myQueryID"); $this->config->bug->search['queryID'] = $queryID; @@ -161,8 +154,6 @@ class bug extends control $this->view->param = $param; $this->view->orderBy = $orderBy; $this->view->moduleID = $moduleID; - $this->view->customed = $customed; - $this->view->customFields = explode(',', str_replace(' ', '', trim($customFields))); $this->display(); } diff --git a/module/bug/view/browse.custom.html.php b/module/bug/view/browse.custom.html.php deleted file mode 100644 index ccacee590e..0000000000 --- a/module/bug/view/browse.custom.html.php +++ /dev/null @@ -1,141 +0,0 @@ -
- -
-
-
icons['product']);?>
-
- -
- tree->manage);?> -
-
-
-
-
-
-
'> - - recTotal}&recPerPage={$pager->recPerPage}"; ?> - - - - - - - - - - - id");?> - - - - - - - - - - - - - - - -
bug->$fieldName);?>actions;?>
- - - - $fieldName); - } - elseif(preg_match('/assignedTo|by/i', $fieldName)) - { - echo $users[$bug->$fieldName]; - } - elseif(preg_match('/^(severity|pri|resolution|os|type|browse|status|confirmed)$/i', $fieldName)) - { - $key = $fieldName . 'List'; - $list = $lang->bug->$key; - echo $list[$bug->$fieldName]; - } - else - { - echo !($bug->$fieldName == '0') ? $bug->$fieldName : ''; - } - ?> - - id"; - common::printIcon('bug', 'resolve', $params, $bug, 'list', '', '', 'iframe', true); - common::printIcon('bug', 'close', $params, $bug, 'list', '', '', 'iframe text-danger', true); - common::printIcon('bug', 'edit', $params, $bug, 'list'); - ?> - -
- -
-
- -
-
- createLink('bug', 'batchEdit', "productID=$productID"); - $misc = common::hasPriv('bug', 'batchEdit') ? "onclick=\"setFormAction('$actionLink')\"" : "disabled='disabled'"; - echo html::commonButton($lang->edit, $misc); - ?> - - -
-
- -
show();?>
-
-
-
diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index 02c66ca6de..45415c0f59 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -15,7 +15,6 @@ include '../../common/view/header.html.php'; include '../../common/view/treeview.html.php'; js::set('browseType', $browseType); js::set('moduleID', $moduleID); -js::set('customed', $customed); ?>
- +
@@ -64,16 +60,6 @@ js::set('customed', $customed);
'>
- - -