Crud: [4.0.9][BUG] 'visibleInTable' column attribute not working

Created on 15 Oct 2019  路  5Comments  路  Source: Laravel-Backpack/CRUD

Bug report

What I did

Added visibleInTable => false attribute to a column

What I expected to happen

The column is hidden in list (table view)

What happened

The column is not hidden in list (table view)

Backpack, Laravel, PHP, DB version

Backpack 4.0.9
Laravel 6.2
PHP 7.2

When I run php artisan backpack:version the output is:

WIP (Work in Progress)

Most helpful comment

@maganius check if you are using the latest BP version and clear your browser localStorage.

Best,
Pedro

All 5 comments

Heeelo @drionix

Thanks for spotting this.

I have sent a PR to try to fix this. If you have please take a look. It's here: #2220

I will be closing this issue, we can continue the conversation in the PR thread :)

Best,
Pedro

I have same problem, I have this

$this->crud->addColumn([
            'label' => "Empresa", // Table column heading
            'type' => "text",
            'name' => 'empresa_nombre', // the column that contains the ID of that connected entity;
            'visibleInTable' => false, // no point, since it's a large text
        ]);

but the column still is visible

@maganius check if you are using the latest BP version and clear your browser localStorage.

Best,
Pedro

@pxpm you're right, this was localStorage, I disabled it and works, thanks you.

@maganius I would not advise you to disable it, might break other functionality.

It's enough to clear it and everything should work.

Best,
Pedro

Was this page helpful?
0 / 5 - 0 ratings