Skip to content

Commit

Permalink
Merge pull request #7 from dkloepfer/4_4_seepex
Browse files Browse the repository at this point in the history
spx ILIAS-eLearning#1734 call gevCrsUtils::setMemberListActive during job
  • Loading branch information
klees committed Oct 21, 2015
2 parents 1012bfa + 9f4ea78 commit 2f0dd4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Services/GEV/Utils/classes/class.gevCourseUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@ public function setWaitingListActive($a_active, $a_update_course = true) {
$this->amd->setField($this->crs_id, gevSettings::CRS_AMD_WAITING_LIST_ACTIVE, $a_active ? gevSettings::YES : gevSettings::NO);

if ($a_update_course) {
$this->getCourse()->enableSubscriptionMembershipLimitation(true);
$this->getCourse()->enableWaitingList(true);
$this->getCourse()->enableSubscriptionMembershipLimitation($a_active);
$this->getCourse()->enableWaitingList($a_active);
$this->getCourse()->update();
}
}
Expand Down Expand Up @@ -1631,6 +1631,7 @@ public function fillFreePlacesFromWaitingList() {

public function cleanWaitingList() {
$ws = $this->getBookings()->cleanWaitingList();
$this->setWaitingListActive(false);
}

public function cancel() {
Expand Down

0 comments on commit 2f0dd4d

Please sign in to comment.