-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Image field types in a collection of sets should by default return empty #1378
Comments
@nealmarques I couldn't reproduce this, just yet.. Could you post the contenttype from |
@nealmarques I am not able to reproduce this yet as well. Using the
The image value is an array with |
I should also mention that I'm just using sqllite. |
Right, I see. {% dump(row_background_image.value) %} This should output the array like it did in my earlier comment. Make sure that you dump that in a place where row_background_image is defined, of course :-) |
With the .value I can see that filename is empty, as expected. The question is, should I be using .value.filename to see if its empty; or should it be expected that "row_background_image is empty" will return true if the filename is empty. |
@nealmarques I think it'd be really nice if |
Okay. |
let's just keep this open for a bit: we might be able to pull it off with the countable interface. |
Empty image field types that are part of set in a collection are returning '/files/' when empty. I'm expecting an empty string. I'm having to check for '/files/' instead of using "is empty" condition.
| Relevant Bolt Version | version4.0.0 RC 17
| Install type | Composer install
| BC Break | yes/no
| PHP version | 7.3
| Web server | Built-in
The text was updated successfully, but these errors were encountered: