-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If photo url is blank, the search still finds a photo #582
Comments
I should probably clarify that the feed itself is what has the blank photo, and the import still sets a photo on the user element. |
I am also encountering the same issue, users with no photos seem to find a random existing photo and save that against the user, the fix above worked but i would assume hacking the core file in this way isnt ideal. Any ideas @engram-design @angrybrad ? |
anyone? |
Same problem here on Feed me 5.0.4 |
I'd really hoped this would have been fixed after the recent bunch of updates, but still happening. |
Resolved in #1283 for the next v4 and v5 releases |
Description
When a user element's photo url is blank, the import still finds a photo.
It seems like the fix is to just add an
empty($value)
check and return before running theAssetElement
search. I am not sure if this is a bug with theAssetElement
query or if this was how it is intended to work, so I didn't submit a PR.It does seem to me that the AssetElement should not return a value if the filename being passed in is blank.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: