* Fix for export case.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user