Jump to content


Possible bug when specifying columns with a certain column name format


  • Please log in to reply
2 replies to this topic

#1 cletourneau

cletourneau

    Member

  • Members
  • PipPip
  • 15 posts
  • LocationMontreal

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.



#2 larasmith

larasmith

    Advanced Member

  • Members
  • PipPipPip
  • 184 posts
  • LocationPhilippines

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!



#3 cletourneau

cletourneau

    Member

  • Members
  • PipPip
  • 15 posts
  • LocationMontreal

Posted 29 June 2018 - 01: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 :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users