diff --git a/module/testcase/config.php b/module/testcase/config.php index 379c4ae9a5..eacacaaa4b 100644 --- a/module/testcase/config.php +++ b/module/testcase/config.php @@ -8,9 +8,6 @@ $config->testcase->edit = new stdclass(); $config->testcase->create->requiredFields = 'title,type'; $config->testcase->edit->requiredFields = 'title,type'; -$config->testcase->batchEdit = new stdclass(); -$config->testcase->batchEdit->columns = 7; - $config->testcase->editor = new stdclass(); $config->testcase->editor->edit = array('id' => 'comment', 'tools' => 'simpleTools'); $config->testcase->editor->view = array('id' => 'comment,lastComment', 'tools' => 'simpleTools'); diff --git a/module/testcase/control.php b/module/testcase/control.php index 93bab5bbbb..e0245c59bd 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -579,7 +579,7 @@ class testcase extends control /* Judge whether the editedTasks is too large and set session. */ $showSuhosinInfo = false; - $showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($cases), $this->config->testcase->batchEdit->columns); + $showSuhosinInfo = $this->loadModel('common')->judgeSuhosinSetting(count($cases), count(explode(',', $this->config->testcase->custom->batchedit)) + 3); $this->app->session->set('showSuhosinInfo', $showSuhosinInfo); if($showSuhosinInfo) $this->view->suhosinInfo = $this->lang->suhosinInfo;