Problem with a callback function
- Single Page
Posted 19 December 2013 - 11:17 AM
Posted 19 December 2013 - 13:07 PM
Hi, Jais -
You need to delete this line of code:
$crud->set_relation('id_user', 'users', '{prenom_user} {nom_user}');
Let us know if this works. If this doesn't, you will need to display the entire code in that particular controller so that we could see what your code is trying to do.
Regards,
Ed
P.S.
Don't forget to click the Like button.
Posted 19 December 2013 - 13:28 PM
Dear Ed,
Thanks for your reply.
Unfortunately, this did not solve my problem.
Also, I need to keep this relation as I want to display the first and last name of the user in the list view, and not the user id.
Posted 19 December 2013 - 14:16 PM
Ok now I'm feeling really shameful...
The problem came from a unique index on the id_user field... Obviously, the callback was prevented by this restriction.
SOOOO sorry...