File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ function edu_render_general_settings() {
7878 $ eduPages [] = $ p ;
7979 }
8080 }
81+
82+ if ( 0 === count ( $ eduPages ) ) {
83+ $ eduPages = $ pages ;
84+ }
8185 ?>
8286 <h3><?php esc_html_e ( 'Course templates ' , 'eduadmin-booking ' ); ?> </h3>
8387 <table>
@@ -258,6 +262,10 @@ function edu_render_general_settings() {
258262 $ programme_pages [] = $ p ;
259263 }
260264 }
265+
266+ if ( 0 === count ( $ programme_pages ) ) {
267+ $ programme_pages = $ pages ;
268+ }
261269 ?>
262270 <h3><?php _e ( 'Programmes ' , 'eduadmin-booking ' ); ?> </h3>
263271 <table>
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ and redo your own customization.
5252- add: When you activate/deactivate the plugin, all transients are now cleaned
5353- add: Programme start list in detail view
5454- add: Save ` customerId ` and ` personId ` in hidden variables on booking page, so we won't lose logged in users if the session times out.
55+ - add: If we cannot find anything related to ` [eduadmin ` in the pages, show all pages.
5556
5657### 2.0.1 ###
5758- chg: Better check against ` customtemplate `
You can’t perform that action at this time.
0 commit comments