* finish task #7183.

This commit is contained in:
wangyidong
2020-05-13 17:29:27 +08:00
parent d81da2876b
commit be2033a859
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -795,7 +795,7 @@ class bug extends control
$this->view->title = "BUG" . $this->lang->bug->batchEdit;
}
/* Judge whether the editedTasks is too large and set session. */
/* Judge whether the editedBugs is too large and set session. */
$countInputVars = count($bugs) * (count(explode(',', $this->config->bug->custom->batchEditFields)) + 2);
$showSuhosinInfo = common::judgeSuhosinSetting($countInputVars);
if($showSuhosinInfo) $this->view->suhosinInfo = extension_loaded('suhosin') ? sprintf($this->lang->suhosinInfo, $countInputVars) : sprintf($this->lang->maxVarsInfo, $countInputVars);
+1 -1
View File
@@ -763,7 +763,7 @@ class caselib extends control
$caseData = array_slice($caseData, ($pagerID - 1) * $maxImport, $maxImport, true);
if(empty($caseData)) die(js::locate(inlink('browse', "libID=$libID")));
/* Judge whether the editedTasks is too large and set session. */
/* Judge whether the items is too large and set session. */
$countInputVars = count($caseData) * 9 + (isset($stepVars) ? $stepVars : 0);
$showSuhosinInfo = common::judgeSuhosinSetting($countInputVars);
if($showSuhosinInfo) $this->view->suhosinInfo = extension_loaded('suhosin') ? sprintf($this->lang->suhosinInfo, $countInputVars) : sprintf($this->lang->maxVarsInfo, $countInputVars);
+3 -3
View File
@@ -766,7 +766,7 @@ class testcase extends control
// if(!$this->testcase->forceNotReview()) unset($this->lang->testcase->statusList['wait']); /* Bug#1343 */
/* Judge whether the editedTasks is too large and set session. */
/* Judge whether the editedCases is too large and set session. */
$countInputVars = count($cases) * (count(explode(',', $this->config->testcase->custom->batchEditFields)) + 3);
$showSuhosinInfo = common::judgeSuhosinSetting($countInputVars);
if($showSuhosinInfo) $this->view->suhosinInfo = extension_loaded('suhosin') ? sprintf($this->lang->suhosinInfo, $countInputVars) : sprintf($this->lang->maxVarsInfo, $countInputVars);
@@ -1694,8 +1694,8 @@ class testcase extends control
$caseData = array_slice($caseData, ($pagerID - 1) * $maxImport, $maxImport, true);
if(empty($caseData)) die(js::locate(inlink('browse', "productID=$productID&branch=$branch")));
/* Judge whether the editedTasks is too large and set session. */
$countInputVars = count($caseData) * 12 + $stepVars;
/* Judge whether the editedCases is too large and set session. */
$countInputVars = count($caseData) * 12 + (isset($stepVars) ? $stepVars : 0);
$showSuhosinInfo = common::judgeSuhosinSetting($countInputVars);
if($showSuhosinInfo) $this->view->suhosinInfo = extension_loaded('suhosin') ? sprintf($this->lang->suhosinInfo, $countInputVars) : sprintf($this->lang->maxVarsInfo, $countInputVars);