Best,
When using the set relation function as followed
# This is the function that is used to connect two tables with a 1 to n (1:n) relation.
$crud->setRelation('fk_crud_projecten', 'crud_projecten', '{projectnr} - {beschrijving}');
$crud->setRelation('fk_crud_werknemers', 'crud_werknemers', '{voornaam} - {achternaam}');
$crud->setRelation('fk_crud_uitzendbureaus', 'crud_uitzendbureaus', 'naam');
# Depended dropdown lists for setRelation (e.g. City dropdown is depended from Country dropdown)
$crud->setDependentRelation('fk_crud_werknemers', 'fk_crud_uitzendbureaus', 'fk_crud_uitzendbureaus');
I get the error shown in the attachment of this post. The problem is with
$crud->setRelation('fk_crud_werknemers', 'crud_werknemers', '{voornaam} - {achternaam}');
When changing this to the following, to now show multiple field, no error is shown
$crud->setRelation('fk_crud_werknemers', 'crud_werknemers', 'voornaam');
The problem is that only the voornaam (first name) is shown, and achternaam (last name) not anymore. Is there a way to solve this problem with a bug fix, or maybe with a smart trick?
Al the best,
Wilfried Jonker