* Fix for export case.

This commit is contained in:
wangyidong
2023-12-08 14:36:36 +08:00
parent 261a542c04
commit 7fddab02aa
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -977,7 +977,7 @@ class testcase extends control
if($_POST)
{
$fields = $this->testcaseZen->getExportFields($product->type);
$cases = $this->testcase->getCasesToExport($this->post->exportType, $taskID, $orderBy, $this->post->limit);
$cases = $this->testcase->getCasesToExport($this->post->exportType, $taskID, $orderBy, (int)$this->post->limit);
$cases = $this->testcaseZen->processCasesForExport($cases, $productID, $taskID);
if($this->config->edition != 'open') list($fields, $cases) = $this->loadModel('workflowfield')->appendDataFromFlow($fields, $cases);
+2 -2
View File
@@ -511,11 +511,11 @@ class testcaseModel extends model
* @param string $exportType
* @param int $taskID
* @param string $orderBy
* @param int|bool $limit
* @param int $limit
* @access public
* @return array
*/
public function getCasesToExport(string $exportType, int $taskID, string $orderBy, int|bool $limit): array
public function getCasesToExport(string $exportType, int $taskID, string $orderBy, int $limit): array
{
if(strpos($orderBy, 'case') !== false)
{