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

Tab breaks sorting in Grid #642

Closed
donnysim opened this issue Dec 3, 2014 · 1 comment
Closed

Tab breaks sorting in Grid #642

donnysim opened this issue Dec 3, 2014 · 1 comment

Comments

@donnysim
Copy link
Contributor

donnysim commented Dec 3, 2014

I have a grid with fields:

'fields' => array(
            array(
                'label' => 'First',
                'type' => 'Tab',
                'preview' => false
            ),
            array(
                'field' => 'lang',
                'field_ref' => 'ref',
                'label' => 'Languages',
                'type' => 'Plugin\ReQ_Faq\Grid\Field\LanguageBar',
                'target' => array('title', 'content')
            ),
            array(
                'field' => 'title',
                'label' => 'Title',
                'type' => 'Text'
            ),
            array(
                'label' => 'Second',
                'type' => 'Tab',
                'preview' => false
            ),
            array(
                'field' => 'content',
                'label' => 'Content',
                'type' => 'RichText'
            )
        )

If I want to sort by column it throws undefined index "field" error. If I add field => '' to the first tab, I can sort by columns until the second tab. If I want to sort by content, I'd get the same error unless I add field to the second tab.

@maskas
Copy link
Member

maskas commented Dec 5, 2014

Looking

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

No branches or pull requests

2 participants