⚠ 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() breaks callback_column() operation



davidoster
  • profile picture
  • Member

Posted 03 January 2013 - 13:39 PM

On, /topic/1087-updated-24112012-dependent-dropdown-library/page__st__100#entry4959

Victor said that
"[color=#282828][font=helvetica, arial, sans-serif]As I see we can't to use the callback_column when we use the set_relation for these columns.[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]in your case :[/font][/color]

[color=#000000]$this[/color][color=#666600]->[/color][color=#000000]grocery_crud[/color][color=#666600]->[/color][color=#000000]set_relation[/color][color=#666600]([/color][color=#008800]'customers_id'[/color][color=#666600],[/color][color=#008800]'customers'[/color][color=#666600],[/color][color=#008800]'{lname} {fname}'[/color][color=#666600]);[/color][color=#000000] [/color]
[color=#282828][font=helvetica, arial, sans-serif]and[/font][/color]

[color=#000000] $this[/color][color=#666600]->[/color][color=#000000]grocery_crud[/color][color=#666600]->[/color][color=#000000]callback_column[/color][color=#666600]([/color][color=#008800]'customers_id'[/color][color=#666600],[/color][color=#000000]array[/color][color=#666600]([/color][color=#000000]$this[/color][color=#666600],[/color][color=#008800]'_callback_attend_edit_url'[/color][color=#666600]));[/color]
[color=#666600]"[/color]

It seems that when set_relation() is used the use of callback_column() is problematic!

davidoster
  • profile picture
  • Member

Posted 03 January 2013 - 14:03 PM

I believe the problem is at the get_columns() function under application/libraries/grocery_crud.php

davidoster
  • profile picture
  • Member

Posted 04 January 2013 - 03:52 AM

Well it's been documented before!
Solution is here, http://www.grocerycr...urned/#entry982