|
|
@ -146,12 +146,10 @@ class FileManager |
|
|
|
$fileNewIdStr = $dataModel->$fileIdStrName; |
|
|
|
$dataModel->save(); |
|
|
|
$saveFileRes = GoodsManager::saveFile(explode(',', $fileNewIdStr), $dataModel, explode(',', $fileOldIdStr), $fileType); |
|
|
|
if ($fileNameInModel) { |
|
|
|
if ($saveFileRes['status']) { |
|
|
|
if ($fileNameInModel && $saveFileRes['status'] && $saveFileRes['first_file_id']) { |
|
|
|
$dataModel->$fileNameInModel = $saveFileRes['first_file_id']; |
|
|
|
$dataModel->save(); |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|