⚠ 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

'set_relation' & column issue



Sparkle
  • profile picture
  • Member

Posted 25 January 2012 - 04:38 AM

I'm using CodeIgniter v2.1.0 along with Grocery CRUD v.1.1.7
set_relation seems to work fine when I go to edit/add page (The drop down displays just right).
However, the issue is in the listing page. The column used in the set_relation displays blank. (It's there but with no data in).
I set a 'callback_column' which sets the display right (Instead of ID's let's say, I can display the title/name they reference).
But when set_relation is set, callback_column to the same designated column isn't triggered!
Might be a version incompatibility, as it seems to run fine in your examples.
Please let me know if there's a workaround, or if I've missed something somewhere.

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

Posted 25 January 2012 - 22:40 PM

Probably is a version incompatibility in combination with NULL-able fields. In version 1.1.8 I have fixes for 2 BUGS for the set_relation function. Try to update to grocery CRUD v.1.1.8 I think this will solve the problem. Also there is a new interface to the set_relation that you will like a lot.

Sparkle
  • profile picture
  • Member

Posted 30 January 2012 - 22:29 PM

Thanks! Working now. Great new features!