diff --git a/src/elements/Asset.php b/src/elements/Asset.php index 8a07120c..7d5e0167 100644 --- a/src/elements/Asset.php +++ b/src/elements/Asset.php @@ -255,13 +255,14 @@ protected function parseFolderId($feedData, $fieldInfo) { $value = $this->fetchSimpleValue($feedData, $fieldInfo); $create = Hash::get($fieldInfo, 'options.create'); - + $node = Hash::get($fieldInfo, 'node'); + $assets = Craft::$app->getAssets(); $volumeId = $this->element->volumeId; $rootFolder = $assets->getRootFolderByVolumeId($volumeId); - if (is_numeric($value)) { + if ($node == 'usedefault' && is_numeric($value)) { return $value; }