diff --git a/Services/Object/classes/class.ilCachedObjectDefinition.php b/Services/Object/classes/class.ilCachedObjectDefinition.php index 78932465dd41..b27e48076b81 100644 --- a/Services/Object/classes/class.ilCachedObjectDefinition.php +++ b/Services/Object/classes/class.ilCachedObjectDefinition.php @@ -72,6 +72,7 @@ protected function loadFromRawData(array $data): void $this->grouped_rep_obj_types = $data['grouped_rep_obj_types']; $this->il_object_group = $data['il_object_group']; $this->il_object_sub_type = $data['il_object_sub_type']; + $this->cached_results = $data['cached_results']; } protected function getRawData(): array @@ -82,6 +83,7 @@ protected function getRawData(): array 'grouped_rep_obj_types' => $this->grouped_rep_obj_types, 'il_object_group' => $this->il_object_group, 'il_object_sub_type' => $this->il_object_sub_type, + 'cached_results' => $this->cached_results, ]; } @@ -161,6 +163,7 @@ protected function readFromDB(): void while ($rec = $db->fetchAssoc($set)) { $data['il_object_sub_type'][$rec['obj_type']][] = $rec; } + $data['cached_results'] = []; $this->loadFromRawData($data); }