I successfully copied the ForActivites.php file for Tasks to custom and added a custom field.
However, I cannot see how to make the panel default to sorting by the custom field.
In modules/Cases/metadata I found subpaneldefs.php
I changed:
‘activities’ => array( ‘order’ => 10,
‘sort_order’ => ‘asc’,
‘sort_by’ => ‘name’,
to
‘activities’ => array( ‘order’ => 10,
‘sort_order’ => ‘asc’,
‘sort_by’ => ‘wf_order_c’,
However that doesn’t work. It seems you can’t use this file to sort by custom field.
The other thing strange is, isn’t modifying this subpaneldefs.php NOT upgrade safe, yet if you copy to same place in custom folder changes do not have any effect?