Skip to content

Commit

Permalink
Merge branch 'release/5.1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybrad committed May 2, 2023
2 parents fd8d065 + 8f15bc1 commit eaac8e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Feed Me

## 5.1.3.1 - 2023-05-02

- Fixed a bug where custom fields would not import on PostgreSQL.

## 5.1.3 - 2023-04-28

> **Warning**
Expand Down
2 changes: 1 addition & 1 deletion src/services/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public function processFeed($step, $feed, &$processedElementIds, $feedData = nul
$fieldValue = Plugin::$plugin->fields->parseField($feed, $element, $feedData, $fieldHandle, $fieldInfo);

if ($fieldValue !== null) {
if ($feed['setEmptyValues'] === 1 || ($feed['setEmptyValues'] === 0 && !empty($fieldValue))) {
if ($feed['setEmptyValues'] || !empty($fieldValue)) {
$fieldData[$fieldHandle] = $fieldValue;
}
}
Expand Down

0 comments on commit eaac8e3

Please sign in to comment.