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 66b3385 commit b1e8f3c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ protected function getOrganisationalUnitsActivationInput(): ?Checkbox
$this->lng->txt('obj_orgunit_positions_info')
)->withValue(
(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 b1e8f3c

Please sign in to comment.