diff --git a/CHANGELOG.md b/CHANGELOG.md index cd33e8be..a591562a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ - Code cleanup and refactoring field-mapping logic for performance and sanity. - Rewritten Matrix/Table mapping and processing logic. **Matrix and Table fields will need to be re-mapped**. - Fix for mapping multiple Matrix blocks being out of order from original feed. -- Removed Super Table native support - please ensure you have the 0.3.9 release of Super Table. **Super Table fields will need to be re-mapped**. +- Removed Super Table native support - please ensure you have the 0.4.0 release of Super Table. **Super Table fields will need to be re-mapped**. - Modified third-party hooks `prepForFeedMeFieldType` so it actually works! Thanks go to [@lindseydiloreto](https://github.com/lindseydiloreto). - Added `registerFeedMeMappingOptions` for third-party fieldtypes to control the options for mapping feed nodes to field data. - Added `postForFeedMeFieldType` for third-party fieldtypes to modify entry data before being saved to entry. diff --git a/changelog.json b/changelog.json index 55fe10f1..b099a029 100644 --- a/changelog.json +++ b/changelog.json @@ -1,4 +1,12 @@ [ + { + "version": "1.4.3", + "downloadUrl": "https://github.com/engram-design/FeedMe/archive/1.4.3.zip", + "date": "2015-12-01 19:35:00", + "notes": [ + "[Fixed] Check for both numeric and string single-string arrays. Particularly an issue for JSON feeds." + ] + }, { "version": "1.4.2", "downloadUrl": "https://github.com/engram-design/FeedMe/archive/1.4.2.zip", diff --git a/feedme/FeedMePlugin.php b/feedme/FeedMePlugin.php index f3cd8f60..b51c34ba 100644 --- a/feedme/FeedMePlugin.php +++ b/feedme/FeedMePlugin.php @@ -22,13 +22,9 @@ public function getName() return ($pluginNameOverride) ? $pluginNameOverride : $pluginName; } - public function getDescription(){ - return ''; - } - public function getVersion() { - return '1.4.2'; + return '1.4.3'; } public function getSchemaVersion() diff --git a/feedme/services/FeedMe_FeedService.php b/feedme/services/FeedMe_FeedService.php index 8678330b..615d1c9b 100644 --- a/feedme/services/FeedMe_FeedService.php +++ b/feedme/services/FeedMe_FeedService.php @@ -76,7 +76,7 @@ public function getFormattedMapping($data, $sep = '') { } elseif (count($value) == 0) { $return[$sep . $key . '/...'] = array(); } elseif(isset($value[0])) { - if (is_string($value[0])) { + if (is_string($value[0]) || is_numeric($value[0])) { $return[$sep . $key] = $value[0]; } else { $return = array_merge($return, $this->getFormattedMapping($value[0], $sep . $key.'/...'));