Hi,
I have a few custom modules. One of those modules has the following in its vardefs file:
'othermodule_member_name' => array (
'name' => 'othermodule_member_name',
'type' => 'relate',
'source' => 'non-db',
'vname' => 'LBL_OTHERMODULE_MEMBER_NAME',
'save' => true,
'id_name' => 'othermodule_member_id',
'link' => 'othermodule_member',
'table' => 'othermodule_member',
'module' => 'othermodule_MEMBER',
'rname' => 'name',
'db_concat_fields'=> array(0=>'first_name', 1=>'name', ),
In the listview I refer to this field like this:
'OTHERMODULE_MEMBER_NAME' =>
array (
'type' => 'relate',
'link' => true,
'label' => 'LBL_OTHERMODULE_MEMBER_NAME',
'id' => 'OTHERMODULE_MEMBER_ID',
'width' => '10%',
'default' => true,
),
And it works⦠the list view shows the member name as first name + name.
In the detailview I refer in a similar way to this field like this:
'panels' =>
array (
'default' =>
array (
0 =>
array (
0 =>
array (
'name' => 'othermodule_member_name',
'label' => 'LBL_OTHERMODULE_MEMBER_NAME',
),
And here it only shows the last name (the ānameā field from the member module) and not the concatenated field with first name + name.
Any idea whatās happening here?