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

[Grid] Exception when customising grid fields' options #8187

Closed
sweoggy opened this issue Jun 20, 2017 · 5 comments · Fixed by #8593
Closed

[Grid] Exception when customising grid fields' options #8187

sweoggy opened this issue Jun 20, 2017 · 5 comments · Fixed by #8593
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.
Milestone

Comments

@sweoggy
Copy link
Contributor

sweoggy commented Jun 20, 2017

While trying to customise the order grid (same happens when customising any other grid) an exception occurs as soon as I am trying to change a field's default options:

An exception has been thrown during the rendering of a template ("The option "0" does not exist. Defined options are: "format".").

Code:

sylius_grid:
    grids:
        sylius_admin_order:
            fields:
                number:
                    position: 1
                customer:
                    position: 2
                    path: '.'
                total:
                    position: 3
                state:
                    position: 4
                paymentState:
                    position: 5
                shippingState:
                    position: 6
                date:
                    position: 7
                    options:
                        format: Y-m-d H:i:s
@sweoggy sweoggy changed the title [Grid] Exception when customising grid options [Grid] Exception when customising grid fields' options Jun 20, 2017
@tchapi
Copy link
Contributor

tchapi commented Jun 20, 2017

You should quote your date format :

format: "Y-m-d H:i:s"

@sweoggy
Copy link
Contributor Author

sweoggy commented Jun 20, 2017

Same exception unfortunately 😞

@Zales0123
Copy link
Member

@sweoggy does this bug happen still for you? I've just checked this for the latest master and it works fine for me.

@sweoggy
Copy link
Contributor Author

sweoggy commented Jul 24, 2017

@Zales0123 I will have to check when I am back from vacation in two weeks 😄

@sweoggy
Copy link
Contributor Author

sweoggy commented Aug 10, 2017

Still the same exception on Beta 3 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants