Skip to content

Commit cc9a797

Browse files
author
Chris Gårdenberg
committed
fix(Programme): Added check for StatusId, so that we only show programme starts with statusid 1 (Booked)
1 parent 79764ed commit cc9a797

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

includes/edu-shortcodes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ function eduadmin_get_programme_list( $attributes ) {
691691
'ProgrammeStarts(' .
692692
'$filter=' .
693693
'HasPublicPriceName' .
694+
' and StatusId eq 1' .
694695
' and (ApplicationOpenDate le ' . date_i18n( 'c' ) . ' or ApplicationOpenDate eq null)' .
695696
' and StartDate ge ' . date_i18n( 'c' ) .
696697
';' .
@@ -740,6 +741,7 @@ function eduadmin_get_programme_details( $attributes ) {
740741
'ProgrammeStarts(' .
741742
'$filter=' .
742743
'HasPublicPriceName' .
744+
' and StatusId eq 1' .
743745
' and (ApplicationOpenDate le ' . date_i18n( 'c' ) . ' or ApplicationOpenDate eq null)' .
744746
' and StartDate ge ' . date_i18n( 'c' ) .
745747
';' .

0 commit comments

Comments
 (0)