⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Possible bug when specifying columns with a certain column name format



cletourneau

cletourneau
  • profile picture
  • Member

Posted 29 June 2018 - 02:42 AM

grocery-crud-enterprise version : 2.5.7

php version : 5.6

database : postgres 9.6

 

Columns with multiple underscores in their name won't appear when manually specifying them. 

 

Example :

$this->crud->setTable('my_table')->columns(['column_a', 'column_b', 'column_with_multiple_underscore']);

The last column will not appear in the grid.

 

When NOT specifying the columns

$this->crud->setTable('my_table');

The last column will appear correctly in the grid.


larasmith

larasmith
  • profile picture
  • Member

Posted 29 June 2018 - 05:08 AM

I haven't tried naming my fields with multiple underscores, just one.

 

Wouldn't it be a hassle if you just use one underscore instead?

 

Thanks!


cletourneau

cletourneau
  • profile picture
  • Member

Posted 29 June 2018 - 13:32 PM

It is in fact a work around that works.

 

Problem is we don't always have control over the naming. I would prefer the bug would be fixed :)