From be2033a859bb6d6d58d95f620337b787ee453e2c Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 13 May 2020 17:29:27 +0800 Subject: [PATCH] * finish task #7183. --- module/bug/control.php | 2 +- module/caselib/control.php | 2 +- module/testcase/control.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index ba672e10cc..451d9fc624 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -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); diff --git a/module/caselib/control.php b/module/caselib/control.php index 04d6ecbb28..cdbcd4cee3 100644 --- a/module/caselib/control.php +++ b/module/caselib/control.php @@ -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); diff --git a/module/testcase/control.php b/module/testcase/control.php index 6cdda645e2..c0a959fa30 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -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);