Skip to content
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

'Variable "user" does not exist' with Date Fields inside Collection #1515

Closed
benplummer opened this issue Jun 19, 2020 · 4 comments · Fixed by #1521
Closed

'Variable "user" does not exist' with Date Fields inside Collection #1515

benplummer opened this issue Jun 19, 2020 · 4 comments · Fixed by #1521

Comments

@benplummer
Copy link

When using Date fields within a Collection field, the following RuntimeError takes place in the Admin Panel:

Variable "user" does not exist.

The line causing the error is vendor/bolt/core/templates/_partials/fields/date.html.twig (line 33)

My field definition is:

        price_list:
            type: collection
            fields:
                start_date:
                    type: date
                    label: Start Date
                    required: true
                end_date:
                    type: date
                    label: End Date
                    required: true
                price:
                    type: text
                    required: true

Details

Question Answer
Relevant Bolt Version 4.0.0-rc.25
Install type Composer install
PHP version 7.3.17
@I-Valchev
Copy link
Member

Great issue details, thanks! Fix coming 🚂🚃🚃

@benplummer
Copy link
Author

Thanks @I-Valchev! I didn't know it was such a simple fix. I'm keeping my eye on solutions so that I get to know the architecture more and can contribute.

@I-Valchev
Copy link
Member

fantastic! if you spot something else and want to fix it, but feel a bit uncertain, let me know on Slack I'd happily provide pointers :-) and then the PR will be in your name 😉

@benplummer
Copy link
Author

@I-Valchev Thanks, appreciate it! Will do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants