Skip to content

Commit

Permalink
Fix salesagility#10562 - Include start date in the Activities subpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
SinergiaCRM committed Oct 29, 2024
1 parent 80ee82d commit 06f3c9b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/Calls/metadata/subpanels/ForActivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
'contact_id' => [
'usage' => 'query_only',
],
'date_start' => [
'vname' => 'LBL_LIST_DATE',
'width' => '10%',
],
'date_end' => [
'vname' => 'LBL_LIST_DUE_DATE',
'width' => '10%',
Expand Down
4 changes: 4 additions & 0 deletions modules/Meetings/metadata/subpanels/ForActivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
'usage' => 'query_only',
'force_exists' => true
],
'date_start' => [
'vname' => 'LBL_LIST_DATE',
'width' => '10%',
],
'date_end' => [
'vname' => 'LBL_LIST_DUE_DATE',
'width' => '10%',
Expand Down
4 changes: 4 additions & 0 deletions modules/Tasks/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ protected function formatStartAndDueDates(&$task_fields, $dbtime, $override_date
$taskClass = 'todaysTask';
}
}

// Correct date start of Tasks on subpanel
$date_due = $timedate->to_display_date_time($dbtime);

$task_fields['DATE_DUE']= "<font class='$taskClass'>$date_due</font>";
if ($override_date_for_subpanel) {
$task_fields['DATE_START']= "<font class='$taskClass'>$date_due</font>";
Expand Down
4 changes: 4 additions & 0 deletions modules/Tasks/metadata/subpanels/ForActivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
'vname' => 'LBL_LIST_CONTACT',
'width' => '11%',
],
'date_start' => [
'vname' => 'LBL_LIST_START_DATE',
'width' => '10%',
],
'date_due' => [
'vname' => 'LBL_LIST_DUE_DATE',
'width' => '10%',
Expand Down

0 comments on commit 06f3c9b

Please sign in to comment.