* code for task#1562.

* refactory the batchEdit of task and bug.
This commit is contained in:
chencongzhi520@gmail.com
2013-07-12 01:28:54 +00:00
parent e52cecbf85
commit d4ce0f265e
6 changed files with 54 additions and 48 deletions
+3 -4
View File
@@ -509,15 +509,14 @@ class bug extends control
/* Initialize vars.*/
$bugs = $this->dao->select('*')->from(TABLE_BUG)->where('id')->in($bugIDList)->fetchAll('id');
$product = $this->product->getByID($productID);
$columns = 9;
$showSuhosinInfo = false;
$product = $this->product->getByID($productID);
/* Set product menu. */
$this->bug->setMenu($this->products, $productID);
/* Judge whether the editedTasks is too large and set session. */
$showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($bugs), $columns);
$showSuhosinInfo = false;
$showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($bugs), $this->config->bug->batchEdit->columns);
$this->app->session->set('showSuhosinInfo', $showSuhosinInfo);
if($showSuhosinInfo) $this->view->suhosinInfo = $this->lang->suhosinInfo;