Concatenated fields working in listview, not in detailview


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',
  '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:

  array (
    'type' => 'relate',
    'link' => true,
    '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?


Sorry, im not able to replicate

I’ve created two custom person modules, and related them to one another with a 1toMany relationship

The relate field seems to show the full name in both Listview and Detailview

Would you be able to pass over a little more info, to help replication?

–In your scenario, is this two custom modules related to one another?
If so, by which type of relationship?

–Is the Detailview field that you’re having issues with:

  • A relate field, but on a different module
  • Or, the “othermodule_member_name” field itself on the module that the field belongs to?

–Is the “othermodule_member_name” a custom field that you’ve created a vardef for, or is it just the standard “full_name”, but renamed?

A little more info might help clear things up!