We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96f7202 commit b2f74a6Copy full SHA for b2f74a6
1 file changed
components/ILIAS/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionSelect.php
@@ -902,12 +902,14 @@ public function prepareElementForEditor(ilADTFormBridge $a_bridge): void
902
903
protected function readOptions(): void
904
{
905
+ $options = null;
906
if ($this->getFieldId()) {
- $this->options = $this->db_gateway->readByID($this->getFieldId());
907
+ $options = $this->db_gateway->readByID($this->getFieldId());
908
}
- if (!isset($this->options)) {
909
- $this->options = new SelectSpecificDataImplementation();
+ if ($options === null) {
910
+ $options = new SelectSpecificDataImplementation();
911
912
+ $this->options = $options;
913
914
$record = ilAdvancedMDRecord::_getInstanceByRecordId($this->getRecordId());
915
$this->default_language = $record->getDefaultLanguage();
0 commit comments