Changing Case Layout Removes Case Updates View

Hi All,

Just though I would share this bit of information with you, so if can be added as a feature fix to stop it from happening.

If you edit/change the Cases view using the SuiteCRM Studio, it removes the cases updates view from the Cases module.

I found that when you save and deploy the changes if sets the (custom/modules/Cases/metadata)detailsviewdefs.php/editviewdefs.php files with the following values for the case update fields which stops the layouts from displaying properly.

These are the wrong values.


        10 => 
        array (
          0 => 
          array (
            'name' => 'update_text',
            'studio' => 'visible',
            'label' => 'LBL_UPDATE_TEXT',
          ),
          1 => 
          array (
            'name' => 'internal',
            'studio' => 'visible',
            'label' => 'LBL_INTERNAL',
          ),
        ),
      ),
      'LBL_PANEL_ASSIGNMENT' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'assigned_user_name',
            'label' => 'LBL_ASSIGNED_TO',
          ),
        ),
      ),
    ),
  ),
);
?>

These are the correct values


'LBL_AOP_CASE_UPDATES' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'aop_case_updates_threaded',
            'studio' => 'visible',
            'label' => 'LBL_AOP_CASE_UPDATES_THREADED',
          ),
        ),
      ),
      'LBL_PANEL_ASSIGNMENT' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'assigned_user_name',
            'label' => 'LBL_ASSIGNED_TO',
          ),
          1 => 
          array (
            'name' => 'date_modified',
            'label' => 'LBL_DATE_MODIFIED',
            'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'name' => 'date_entered',
            'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
          ),
        ),
      ),
    ),
  ),
);
?>

So the best way to make layout changes at the moment on the cases module is edit the custom/modules/Cases/metadata/ files manually.

Hope this help someone and saves them a little time :slight_smile:

Matt

2 Likes

Hi Matt,

There were some fixes added to the latest portal release but we haven’t been able to replicate your issue. Can you detail the steps you took when changing the cases view in Studio?

Thanks,

Will.

Hi Will,

Not a problem…

I have just re-tested on 7.01 and the issue still exists.

So In Studio -> Cases

Create a New Field (Any Type I used Textfield)

GoTo Layouts -> EditView

Add a new Row (Anywhere but I put mine under Status and account name)
Drag the ‘New Field’ in to the new Row

Check Sync to DetailView

Click Save and Deploy.

If you look at a case now the update field no longer appears properly on both edit and details view.

I have attached screenshots.

Let me know if you still need more Info.

Just to add my workaround till works on 7.0.1.

Regards,

Matt

Hi Matt,

Thanks for highlighting this. It seems when you create a new field, it removes the Cases Update Thread field. You can add this in again in the edit view once you have added your new field and this should make the case update thread visible.

Thanks,

Will.

2 Likes

I have just tried dragging the case update thread back in and it does make it visible again.

Thanks for the help.

Regards,

Matt

1 Like