⚠ 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

Bug (fixed): ENUM/SET with a value with parenthesis



Julien
  • profile picture
  • Member

Posted 25 June 2013 - 10:39 AM

Dear all,

 

There's a bug in GroceryCrud where it would cut your ENUM/SET value if it contains a "(", eg. Lorem,Ipsum (Latin) will be rendered as Lorem,Ipsu.

 

I don't know how to push the fix, but it's very straight forward: in grocery_crud_model::get_field_types_basic_table, change:

 

$type = explode("(",$db_field_type->Type);

 

to:

 

$type = explode("(",$db_field_type->Type,2);

 

Hope this helps someone else :)

 

Julien

 


davidoster
  • profile picture
  • Member

Posted 25 June 2013 - 20:46 PM

Hmmm. Thanks for posting this [member=julien] and welcome to the forums.

I will inform [member=web-johnny] about this.