Adding additional column to activities subpanel for date_due alwasy display date_start

Hello everybody,

I have tried to make slight chages to the activities subpanel. In particular, I want to see the start date and dthe due date of a task. I ahve made changes to the subpaneldef/ForActivities.php for Calls, Meetings and Tasks. Calls and Meetings seem to work fine. Only taks always display the start date (see attachment).

Here is the excerpt of the ForActivities.php of Task defining the two date field.
‘vname’ => ‘LBL_LIST_START_DATE’,
‘width’ => ‘10%’,
‘sort_by’ => ‘date_start’,
‘vname’ => ‘LBL_LIST_DUE_DATE’,
‘width’ => ‘10%’,
‘alias’ => ‘date_start’,
‘sort_by’ => ‘date_entered’,

any ideas where the problem is?

Any help would be appreciated.

Thank you and best greetings,

I know it is old but… if somebody comes for an answer. I believe the solution is to remove the alias under due_date. So the code should look like this:

'vname' => 'LBL_LIST_START_DATE',
'width' => '10%',
'sort_by' => 'date_start',
'vname' => 'LBL_LIST_DUE_DATE',
'width' => '10%',
'sort_by' => 'date_entered',

Make sure file custom/modules/Activities/subpaneldefs.php contains the change as well (If it doesn’t exits, copy it from /modules/Activities/subpaneldefs.php and modify it accordingly)

Your might need to add the below to custom/modules/Activities/language/en_us.lang.php (Again copy it from modules/Activities/language/en_us.lang.php if it doesn’t exits)

'LBL_LIST_ENTERED_DATE' => 'Date Created',