⚠ 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

always empty field



adlahd
  • profile picture
  • Member

Posted 01 July 2012 - 10:04 AM

i have database schema such as as
Resturants {

id INT PK AI
name varchar(100)
contact_info TEXT()
langauge_id (INT)
}

when i use grocery crud to list all the items i always get the name field empty . when i click edit button i find it populated.
also i found it stored in the database.

can anyone tell me why is that happening to me ?

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 01 July 2012 - 10:32 AM

Yes this is a bug . You can fix that with this simple one-line bug fix https://github.com/scoumbourdis/grocery-crud/commit/b972963

adlahd
  • profile picture
  • Member

Posted 01 July 2012 - 10:39 AM

Thanks . for reply ..

it worked also by renaming the table fields. which had the same name : 'name'..

mztriz
  • profile picture
  • Member

Posted 08 August 2012 - 14:27 PM

I'm having the exact same problem, even with the bug fix...

My table looks like this:
building_id
building_name
building_code
building_description *
building_latitude *
building_longitude *

* Only shows on the edit page; never shows on list.