Sylius: [Grid] Exception when customising grid fields' options

Created on 20 Jun 2017  路  5Comments  路  Source: Sylius/Sylius

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
Potential Bug

Most helpful comment

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

All 5 comments

You should quote your date format :

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

Same exception unfortunately 馃槥

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

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

Still the same exception on Beta 3 馃槥

Was this page helpful?
0 / 5 - 0 ratings