Hiding closed cases in Sub Panel

Is there a setting or a way to hide closed cases on the Account Sub-panel?

Hi,

There isn’t a setting but you can create a copy of modules/Cases/metadata/subpanels/ForAccounts.php in custom/modules/Cases/metadata/subpanels/ForAccounts.php with the ‘where’ clause changed to the following:


'where' => "state = 'Open'",

This should then only show open cases.

Thanks,
Jim