Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from webmasterskaya/fix-import-for-new-items
Browse files Browse the repository at this point in the history
Фикс создания нового материала из импорта
  • Loading branch information
AlekVolsk authored Apr 15, 2021
2 parents d3c8763 + eff672a commit 1627901
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cfi.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ private function _importData()
$inserts++;
}

// reload article from model
$article = (array) $model->getItem();

// get article custom fields
$jsFields = FieldsHelper::getFields('com_content.article', $article, true);
foreach($jsFields as $key => $jsField) {
Expand Down

0 comments on commit 1627901

Please sign in to comment.