Index: trunk/extensions/EducationProgram/sql/EducationProgram.sql |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | CREATE INDEX /*i*/ep_course_year ON /*_*/ep_courses (course_year); |
69 | 69 | CREATE INDEX /*i*/ep_course_start ON /*_*/ep_courses (course_start); |
70 | 70 | CREATE INDEX /*i*/ep_course_end ON /*_*/ep_courses (course_end); |
71 | | -CREATE UNIQUE INDEX /*i*/ep_trem_period ON /*_*/ep_courses (course_org_id, course_start, course_end); |
| 71 | +CREATE INDEX /*i*/ep_trem_period ON /*_*/ep_courses (course_org_id, course_start, course_end); |
72 | 72 | CREATE INDEX /*i*/ep_course_students ON /*_*/ep_courses (course_students); |
73 | 73 | |
74 | 74 | |
Index: trunk/extensions/EducationProgram/specials/SpecialEnroll.php |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | if ( count( $args ) === 2 ) { |
60 | 60 | $token = $args[1]; |
61 | 61 | } |
62 | | - elseif ( $this->getRequest()->wasPosted() && $this->getRequest()->getCheck( 'wptoken' ) ) { |
| 62 | + elseif ( $this->getRequest()->getCheck( 'wptoken' ) ) { |
63 | 63 | $token = $this->getRequest()->getText( 'wptoken' ); |
64 | 64 | } |
65 | 65 | |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | $out->addHTML( Html::openElement( |
130 | 130 | 'form', |
131 | 131 | array( |
132 | | - 'method' => 'post', |
| 132 | + 'method' => 'get', |
133 | 133 | 'action' => $this->getTitle( $this->subPage )->getLocalURL(), |
134 | 134 | ) |
135 | 135 | ) ); |
Index: trunk/extensions/EducationProgram/includes/EPStudent.php |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | foreach ( $courses as /* EPCourse */ $course ) { |
95 | 95 | EPMC::updateSummaryFields( 'students', array( 'id' => $course->getField( 'mc_id' ) ) ); |
96 | 96 | EPOrg::updateSummaryFields( 'students', array( 'id' => $course->getField( 'org_id' ) ) ); |
97 | | - EPCourse::updateSummaryFields( 'students', array( 'id' => $this->getId() ) ); |
| 97 | + EPCourse::updateSummaryFields( 'students', array( 'id' => $course->getId() ) ); |
98 | 98 | } |
99 | 99 | |
100 | 100 | return $success; |
Index: trunk/extensions/EducationProgram/includes/EPMC.php |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | } |
134 | 134 | |
135 | 135 | if ( $this->updateSummaries && $orgId !== false ) { |
136 | | - EPCourse::updateSummaryFields( array( 'mcs', 'students', 'courses', 'active' ), array( 'id' => $orgId ) ); |
| 136 | + EPOrg::updateSummaryFields( array( 'mcs', 'students', 'courses', 'active' ), array( 'id' => $orgId ) ); |
137 | 137 | } |
138 | 138 | |
139 | 139 | return $success; |
Index: trunk/extensions/EducationProgram/includes/EPCourse.php |
— | — | @@ -235,7 +235,7 @@ |
236 | 236 | $success = parent::removeFromDB(); |
237 | 237 | |
238 | 238 | if ( $success && $this->updateSummaries ) { |
239 | | - EPCourse::updateSummaryFields( 'students', array( 'id' => $courseId ) ); |
| 239 | + EPMC::updateSummaryFields( 'students', array( 'id' => $courseId ) ); |
240 | 240 | EPOrg::updateSummaryFields( array( 'terms', 'students', 'active' ), array( 'id' => $orgId ) ); |
241 | 241 | } |
242 | 242 | |
— | — | @@ -274,7 +274,7 @@ |
275 | 275 | |
276 | 276 | if ( $oldCourseId !== false && $oldCourseId !== $this->getField( 'org_id' ) ) { |
277 | 277 | $conds = array( 'id' => array( $oldCourseId, $this->getField( 'mc_id' ) ) ); |
278 | | - EPCourse::updateSummaryFields( array( 'active', 'students' ), $conds ); |
| 278 | + EPMC::updateSummaryFields( array( 'active', 'students' ), $conds ); |
279 | 279 | } |
280 | 280 | } |
281 | 281 | |