-
Notifications
You must be signed in to change notification settings - Fork 119
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
Grid field storing data when rows are empty. #3715
Comments
I'm a little confused- are you saying it works on preview, but not after you save?
Reading it, it sounds like there's no content in the grid field in both cases? Also- I don't THINK the latest version directly fixed a bug concerning grid conditionals, but I know there have been a few tweaks. Is it possible to double check on the latest version? |
Got it- so when you save an entry the first time with no info in the grid, conditional works. When you EDIT that entry and save, without altering the grid at all, conditional does not work. If you add info to the grid, save, it works. DELETE that info from the grid, it doesn't work. Let's see if I can replicate- yell if I don't understand correctly. |
That's correct. |
EE 7.3.11
PHP Version 8.0.24
I have a grid field with a minimum entry requirement of two rows.
I check if the field is not empty in the template code
{if product_how_it_works}Show content{/if}
This works if the entry has no content in the grid field. If you then save the entry without adding any content to the grid field the conditional does not work.
Likewise if the grid field has content and it's deleted it's as if the content is still there.
The text was updated successfully, but these errors were encountered: