From 9392cbc3b5d05c95ccb75e3f26b26ac891adc234 Mon Sep 17 00:00:00 2001 From: SinergiaCRM Date: Tue, 8 Oct 2024 13:44:51 +0000 Subject: [PATCH] Fix #10547 - Incorrect visualization of task due date on subpanels --- include/ListView/ListViewSubPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ListView/ListViewSubPanel.php b/include/ListView/ListViewSubPanel.php index 50ca1d08b12..8d7fc3f88d7 100644 --- a/include/ListView/ListViewSubPanel.php +++ b/include/ListView/ListViewSubPanel.php @@ -418,7 +418,7 @@ public function process_dynamic_listview_rows($data, $parent_data, $smartyTempla $alias_field_def['name'] = $list_field['alias']; // Add alias field def into bean to can render field in subpanel $aItem->field_defs[$list_field['alias']] = $alias_field_def; - if (!isset($fields[strtoupper($list_field['alias'])]) || empty($fields[strtoupper($list_field['alias'])])) { + if (!isset($fields[strtoupper($list_field['alias'])]) || empty($fields[strtoupper($list_field['alias'])]) || !isset($aitem->field_name_map[$list_field['alias']])) { global $timedate; $fields[strtoupper($list_field['alias'])] = (!empty($aItem->$field_name)) ? $aItem->$field_name : $timedate->to_display_date_time($aItem->{$list_field['alias']}); }