⚠ 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 forum is read-only and soon will be archived. ⚠


'set_relation' & column issue

Set a relation set_relation callback_column

  • Please log in to reply
2 replies to this topic

#1 Sparkle

Sparkle

    Newbie

  • Members
  • Pip
  • 3 posts

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.

#2 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,166 posts

Posted 25 January 2012 - 10: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.

#3 Sparkle

Sparkle

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 30 January 2012 - 10:29 PM

Thanks! Working now. Great new features!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users