* Add default value for testcaseModel::update.

This commit is contained in:
liumengyi
2023-08-29 14:58:02 +08:00
parent 187c2f6b4a
commit bb35cce178
+1 -1
View File
@@ -652,7 +652,7 @@ class testcaseModel extends model
* @access public
* @return bool|array
*/
public function update(object $case, object $oldCase, array $testtasks): bool|array
public function update(object $case, object $oldCase, array $testtasks = array()): bool|array
{
/* Remove the require field named story when the case is a lib case.*/
$requiredFields = $this->config->testcase->edit->requiredFields;