From a14eac7ec8a91a40eca8939942427cbcc73f6600 Mon Sep 17 00:00:00 2001 From: Stephan Kergomard Date: Mon, 6 Jan 2025 16:54:11 +0200 Subject: [PATCH] Test: Fix Default Settings for PositionAccess --- .../classes/MainSettings/class.ilObjTestSettingsMainGUI.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Test/classes/MainSettings/class.ilObjTestSettingsMainGUI.php b/Modules/Test/classes/MainSettings/class.ilObjTestSettingsMainGUI.php index 4037eb0d1cd6..f7bf9b00d798 100644 --- a/Modules/Test/classes/MainSettings/class.ilObjTestSettingsMainGUI.php +++ b/Modules/Test/classes/MainSettings/class.ilObjTestSettingsMainGUI.php @@ -717,7 +717,8 @@ protected function getOrganisationalUnitsActivationInput(): ?Checkbox $this->lng->txt('obj_orgunit_positions'), $this->lng->txt('obj_orgunit_positions_info') )->withValue( - (new ilOrgUnitObjectPositionSetting($this->test_object->getId()))->isActive() + (new \ilOrgUnitObjectPositionSetting($this->test_object->getId()))->isActive() + ?? $position_settings->getActivationDefault() === \ilOrgUnitObjectTypePositionSetting::DEFAULT_ON ); if (!$position_settings->isChangeableForObject()) { return $enable_organisational_units_access->withDisabled(true);