From 06f3c9b2ff9cb4b31ee351844e5d01d71afa7416 Mon Sep 17 00:00:00 2001 From: SinergiaCRM Date: Tue, 29 Oct 2024 12:34:09 +0000 Subject: [PATCH] Fix salesagility#10562 - Include start date in the Activities subpanel --- modules/Calls/metadata/subpanels/ForActivities.php | 4 ++++ modules/Meetings/metadata/subpanels/ForActivities.php | 4 ++++ modules/Tasks/Task.php | 4 ++++ modules/Tasks/metadata/subpanels/ForActivities.php | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/modules/Calls/metadata/subpanels/ForActivities.php b/modules/Calls/metadata/subpanels/ForActivities.php index 9aa35f13e15..8b3bee7f117 100755 --- a/modules/Calls/metadata/subpanels/ForActivities.php +++ b/modules/Calls/metadata/subpanels/ForActivities.php @@ -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%', diff --git a/modules/Meetings/metadata/subpanels/ForActivities.php b/modules/Meetings/metadata/subpanels/ForActivities.php index 4f6ec3679f5..2a766e5182a 100755 --- a/modules/Meetings/metadata/subpanels/ForActivities.php +++ b/modules/Meetings/metadata/subpanels/ForActivities.php @@ -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%', diff --git a/modules/Tasks/Task.php b/modules/Tasks/Task.php index b2b562df839..5d1e1dad14c 100755 --- a/modules/Tasks/Task.php +++ b/modules/Tasks/Task.php @@ -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']= "$date_due"; if ($override_date_for_subpanel) { $task_fields['DATE_START']= "$date_due"; diff --git a/modules/Tasks/metadata/subpanels/ForActivities.php b/modules/Tasks/metadata/subpanels/ForActivities.php index 53e1eef9473..96e54c30618 100755 --- a/modules/Tasks/metadata/subpanels/ForActivities.php +++ b/modules/Tasks/metadata/subpanels/ForActivities.php @@ -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%',