* fix error for task #2535: Set the second param correct for judgeSuhosinSetting function.
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user