craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
286 stars 140 forks source link

Bugfix/1403 comparing values #1447

Closed i-just closed 1 month ago

i-just commented 1 month ago

Description

I’ve extrapolated the logic of preparing dates for comparison into a separate method and started using it in both compareElementContent and _recursiveCompare (when comparing complex values).

I’ve adjusted the comparison of empty values so that if the existing value is, for example, null and the new value is empty (but not null), the data is not unnecessarily reported as changed.

All the hard work done by @jeffreyzant - thanks!

Related issues

1403