set_relation() breaks callback_column() operation
- Single Page
Posted 03 January 2013 - 13:39 PM
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!
Posted 03 January 2013 - 14:03 PM
Posted 04 January 2013 - 03:52 AM
Solution is here, http://www.grocerycr...urned/#entry982