From 019b1c77323adcfbb038597755d4cd64d51b7e46 Mon Sep 17 00:00:00 2001 From: Tim Schmitz Date: Mon, 13 Jan 2025 15:19:46 +0100 Subject: [PATCH] AdvMD: type fix for missing select translations (43520) --- .../classes/Types/class.ilAdvancedMDFieldDefinitionSelect.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ILIAS/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionSelect.php b/components/ILIAS/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionSelect.php index 38d64305b0b7..e0f8191de90f 100755 --- a/components/ILIAS/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionSelect.php +++ b/components/ILIAS/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionSelect.php @@ -179,14 +179,14 @@ protected function addEditOptionsFieldsToDefinitionForm( foreach ($options->getOptions() as $option) { $position_identifiers[(string) ($option->getPosition() + 1)] = sprintf( $this->lng->txt('meta_advmd_select_position_identifier'), - $option->getTranslationInLanguage($this->default_language)->getValue() + $option->getTranslationInLanguage($this->default_language)?->getValue() ?? '' ); } $disabled_checkbox_overwrites = []; foreach ($options->getOptions() as $option) { - $option_value = $option->getTranslationInLanguage($this->default_language)->getValue(); + $option_value = $option->getTranslationInLanguage($this->default_language)?->getValue() ?? ''; $hidden = $this->addRadioToEntriesGroup( $entries, $position_identifiers,