* [error] fix import case error.

This commit is contained in:
sunguangming
2024-10-18 14:21:56 +08:00
committed by 王怡栋
parent 025e06eab8
commit e46ad67cf4
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -296,6 +296,7 @@ class caselibModel extends model
$this->dao->begin();
foreach($cases as $key => $caseData)
{
$key = (int)$key;
if(!empty($data->id[$key]) && !$this->post->insert)
{
$this->caselibTao->updateImportedCase($key, $caseData, $data, $forceNotReview);
+2
View File
@@ -18,6 +18,7 @@ class caselibTao extends caselibModel
foreach($data->lib as $key => $lib)
{
$key = (int)$key;
$caseData = new stdclass();
$caseData->lib = $lib;
@@ -36,6 +37,7 @@ class caselibTao extends caselibModel
foreach($fieldList as $field)
{
if(empty($field->show)) continue;
if(!isset($data->{$field->field}[$key])) continue;
$fieldValue = $data->{$field->field}[$key];
$caseData->{$field->field} = $fieldValue;
+1
View File
@@ -885,6 +885,7 @@ class transferModel extends model
$tmpArray = new stdClass();
foreach($row as $currentColumn => $cellValue)
{
$cellValue = trim($cellValue);
/* 第一行是标题字段。*/
/* First row is title field. */
if($currentRow == 1)