diff --git a/README.md b/README.md index 532f9cc4..695f22b9 100644 --- a/README.md +++ b/README.md @@ -170,8 +170,11 @@ This project has been licensed under the MIT License (MIT). Please see [License ## Changelog +###3.3.2### +- Allow 'singles' as a source + ###3.3.1### -- Return empty string when field source not found at import +- Return empty string when field source not found at import ###3.3.0### - Schematic now also exports and imports category groups (thanks to @smcyr, closes #31) diff --git a/src/Models/Field.php b/src/Models/Field.php index 5eaefa6f..e6957e3a 100644 --- a/src/Models/Field.php +++ b/src/Models/Field.php @@ -161,6 +161,10 @@ private function getMappedSources($fieldType, $sources, $indexFrom, $indexTo) */ private function getSource($fieldType, $source, $indexFrom, $indexTo) { + if ($source == 'singles') { + return $source; + } + /** @var BaseElementModel $sourceObject */ $sourceObject = null;