* fix error for task #2535: Set the second param correct for judgeSuhosinSetting function.

This commit is contained in:
chenfeiCF
2016-04-14 16:51:24 +08:00
parent d45ecec122
commit b3df46f4e5
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -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');
+1 -1
View File
@@ -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;