AnsweredAssumed Answered

Cannot edit contact in an accounts calls subpanel

Question asked by Steve Cox on Nov 4, 2015

Hi,

 

I've customized (slightly) the calls subpanel under accounts to include the related contact (guest). Note, I've used the related_to field for accounts.

 

However, if I edit the call using the inline editor, then any changes to the contact do not stick.

 

I've added the contact field by creasting the file: custom/modules/Calls/clients/views/subpanel-for-accounts-calls/subpanel-for-accounts-calls.php with the code:

 

$viewdefs['Calls']['base']['view']['subpanel-for-accounts-calls'] = array (
  'panels' =>
  array (
    0 =>
    array (
      'name' => 'panel_header',
      'label' => 'LBL_PANEL_1',
      'fields' =>
      array (
        0 =>
        array (
          'label' => 'LBL_LIST_SUBJECT',
          'enabled' => true,
          'default' => true,
          'link' => true,
          'name' => 'name',
        ),
        1 =>
        array (
          'label' => 'LBL_STATUS',
          'enabled' => true,
          'default' => true,
          'name' => 'status',
          'type' => 'event-status',
          'css_class' => 'full-width',
        ),
        2 =>
        array (
          'target_record_key' => 'contact_id',
          'target_module' => 'Contacts',
          'sortable' => false,
          'label' => 'LBL_LIST_CONTACT',
          'default' => true,
          'enabled' => true,
          'name' => 'contact_name',
          'link' => true,
          'type' => 'relate',
        ),
        3 =>
        array (
          'name' => 'parent_name',
          'label' => 'LBL_LIST_RELATED_TO',
          'enabled' => true,
          'id' => 'PARENT_ID',
          'link' => true,

.......

 

Any thought's on what's needed to be changed so that a save will stick?

Outcomes