This commit is contained in:
zhaoke
2023-08-08 15:36:54 +08:00
parent 6d58023f75
commit cbade64264
5 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -461,7 +461,7 @@ class testcaseModel extends model
{
$case = $this->dao->findById($caseID)->from(TABLE_CASE)->fetch();
if(!$case) return false;
foreach($case as $key => $value) if(strpos($key, 'Date') !== false and !(int)substr($value, 0, 4)) $case->$key = '';
foreach($case as $key => $value) if(strpos($key, 'Date') !== false and !(int)substr(is_null($value) ? '' : $value, 0, 4)) $case->$key = '';
/* Get project and execution. */
if($this->app->tab == 'project')