Jump to content


Has the problem(set_relation with callback_column problem solved) been solved with new version?

set_relation callback_column

  • Please log in to reply
No replies to this topic

#1 Sonelal Singh

Sonelal Singh

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 30 September 2015 - 07:25 AM

Hi friends,
 
Problem : - callback_column and set_relation together - set_relation overrides callback_column.
 
‚ÄčI am struggling with this from long time and just want to know if this issue has been fixed or not from new version of Grocerycrud
 
Even below provided workaround is also not working in my case.
 
$crud->callback_column($this->unique_field_name('vrsta_id'),array($this,'valueToEuro'));
$crud->set_relation('vrsta_id','vrsta','{vrsta_id}');
 
 
function unique_field_name($field_name) {
     return 's'.substr(md5($field_name),0,8); //This s is because is better for a string to begin with a letter and not with a number
}
 
 
 
 
 
 
 

 







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users