Skip to content

Commit

Permalink
Test: Fix Default Settings for PositionAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Jan 6, 2025
1 parent 2ae27e8 commit a14eac7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a14eac7

Please sign in to comment.