Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
/ cfi Public archive

Commit 1627901

Browse files
authored
Merge pull request #6 from webmasterskaya/fix-import-for-new-items
Фикс создания нового материала из импорта
2 parents d3c8763 + eff672a commit 1627901

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cfi.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ private function _importData()
430430
$inserts++;
431431
}
432432

433+
// reload article from model
434+
$article = (array) $model->getItem();
435+
433436
// get article custom fields
434437
$jsFields = FieldsHelper::getFields('com_content.article', $article, true);
435438
foreach($jsFields as $key => $jsField) {

0 commit comments

Comments
 (0)