Skip to content

Commit 2b0ffd2

Browse files
authored
Merge pull request #510 from MultinetInteractive/master
v4.1.2
2 parents f960171 + 9adb988 commit 2b0ffd2

9 files changed

Lines changed: 44 additions & 27 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [4.1.2](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.1.1...v4.1.2) (2023-12-13)
6+
7+
8+
### Bug Fixes
9+
10+
* Filtering the events if we're looking at a specific one for prices as well ([144762e](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/144762e9e3c9c14f7c1c0ce68dafa7feb50cb4e2))
11+
512
### [4.1.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.1.0...v4.1.1) (2023-11-10)
613

714

PLUGIN-CHECKSUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1407e9f00b0c4a8134ce1402b1da499e
1+
cdd0ea0b06aff3d7785588cc028f49ea

content/template/detailTemplate/blocks/event-list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
if ( ! empty( $prices ) ) {
6060
foreach ( $events as $ev ) {
6161
if ( ! empty( $_GET['eid'] ) ) { // Input var okay.
62-
if ( $ev['EventId'] !== $_GET['eid'] ) { // Input var okay.
62+
if ( $ev['EventId'] != $_GET['eid'] ) { // Input var okay.
6363
continue;
6464
}
6565
}

content/template/detailTemplate/course-info.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
$events = array();
3737

3838
foreach ( $selected_course['Events'] as $event ) {
39+
if ( ! empty( $_GET['eid'] ) ) { // Input var okay.
40+
if ( $event['EventId'] != $_GET['eid'] ) { // Input var okay.
41+
continue;
42+
}
43+
}
3944
$event['CourseTemplate'] = $selected_course;
4045
unset( $event['CourseTemplate']['Events'] );
4146

eduadmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin URI: https://www.eduadmin.se
1010
* Description: EduAdmin plugin to allow visitors to book courses at your website
1111
* Tags: booking, participants, courses, events, eduadmin, lega online
12-
* Version: 4.1.1
12+
* Version: 4.1.2
1313
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
1515
* Requires at least: 5.8

includes/edu-ajax-functions.php

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function edu_api_listview_eventlist() {
158158
$order = array();
159159
$custom_order = explode( ' ', $custom_order_by_order );
160160
foreach ( $custom_order as $coVal ) {
161-
! isset( $coVal ) || $coVal === "asc" ? array_push( $order, 1 ) : array_push( $order, -1 );
161+
! isset( $coVal ) || $coVal === "asc" ? array_push( $order, 1 ) : array_push( $order, - 1 );
162162
}
163163
}
164164
} else {
@@ -351,7 +351,7 @@ function edu_api_listview_eventlist_template_A( $data, $request ) {
351351
}
352352

353353
include EDUADMIN_PLUGIN_PATH . '/content/template/listTemplate/blocks/event-block-a.php';
354-
$current_events++;
354+
$current_events ++;
355355
}
356356
}
357357

@@ -429,7 +429,7 @@ function edu_api_listview_eventlist_template_B( $data, $request ) {
429429
}
430430

431431
include EDUADMIN_PLUGIN_PATH . '/content/template/listTemplate/blocks/event-block-b.php';
432-
$current_events++;
432+
$current_events ++;
433433
}
434434
}
435435

@@ -482,6 +482,11 @@ function edu_api_eventlist() {
482482
$events = array();
483483

484484
foreach ( $selected_course['Events'] as $event ) {
485+
if ( ! empty( $_POST['eid'] ) ) { // Input var okay.
486+
if ( $event['EventId'] != $_POST['eid'] ) { // Input var okay.
487+
continue;
488+
}
489+
}
485490
$event['CourseTemplate'] = $selected_course;
486491
unset( $event['CourseTemplate']['Events'] );
487492

@@ -556,7 +561,7 @@ function edu_api_eventlist() {
556561
$order = array();
557562
$custom_order = explode( ' ', $custom_order_by_order );
558563
foreach ( $custom_order as $coVal ) {
559-
! isset( $coVal ) || $coVal === "asc" ? array_push( $order, 1 ) : array_push( $order, -1 );
564+
! isset( $coVal ) || $coVal === "asc" ? array_push( $order, 1 ) : array_push( $order, - 1 );
560565
}
561566
}
562567
} else {
@@ -574,7 +579,7 @@ function edu_api_eventlist() {
574579

575580
$last_city = '';
576581

577-
$show_more = ! empty( $_POST['showmore'] ) ? $_POST['showmore'] : -1;
582+
$show_more = ! empty( $_POST['showmore'] ) ? $_POST['showmore'] : - 1;
578583
$spot_left_option = $_POST['spotsleft'];
579584
$always_few_spots = $_POST['fewspots'];
580585
$show_event_venue = $_POST['showvenue'];
@@ -590,7 +595,7 @@ function edu_api_eventlist() {
590595
if ( ! empty( $prices ) ) {
591596
foreach ( $events as $ev ) {
592597
if ( isset( $_POST['eid'] ) ) {
593-
if ( $ev['EventId'] !== intval( $_POST['eid'] ) ) {
598+
if ( $ev['EventId'] != intval( $_POST['eid'] ) ) {
594599
continue;
595600
}
596601
}
@@ -611,7 +616,7 @@ function edu_api_eventlist() {
611616

612617
include EDUADMIN_PLUGIN_PATH . '/content/template/detailTemplate/blocks/event-item.php';
613618
$last_city = $ev['City'];
614-
$i++;
619+
$i ++;
615620
}
616621
}
617622
if ( empty( $prices ) || empty( $events ) ) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eduadmin-wordpress-plugin",
33
"private": true,
4-
"version": "4.1.1",
4+
"version": "4.1.2",
55
"repository": "https://github.com/MultinetInteractive/EduAdmin-WordPress.git",
66
"author": "Chris Gårdenberg <chga@multinet.se>",
77
"license": "MIT",

readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# EduAdmin Booking
22
- Requires at least: 5.8
33
- Tested up to: 6.4
4-
- Stable tag: 4.1.1
4+
- Stable tag: 4.1.2
55
- Requires PHP: 7.0
66
- License: GPL3
77
- License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -40,6 +40,13 @@ If you notice that your API key doesn't work any more, you have to contact us.
4040

4141
The full changelog available on [GitHub](https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/CHANGELOG.md)
4242

43+
### [4.1.2](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.1.1...v4.1.2) (2023-12-13)
44+
45+
46+
#### Bug Fixes
47+
48+
* Filtering the events if we're looking at a specific one for prices as well ([144762e](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/144762e9e3c9c14f7c1c0ce68dafa7feb50cb4e2))
49+
4350
### [4.1.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.1.0...v4.1.1) (2023-11-10)
4451

4552

@@ -73,12 +80,5 @@ were not working in the correct way.
7380

7481
* **Programme/Shortcodes:** Fixed an issue with Programme pages ([461c3bf](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/461c3bfac424d8614580ac4f7df2fe5d70161499))
7582

76-
### [3.11.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v3.11.0...v3.11.1) (2023-10-09)
77-
78-
79-
#### Bug Fixes
80-
81-
* **Programme:** Added check for StatusId, so that we only show programme starts with statusid 1 (Booked) ([cc9a797](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/cc9a7970fb7aaa989facd0aea7894edeaeb9407b))
82-
8383

8484

readme.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: mnchga
33
Tags: booking, participants, courses, events, eduadmin, lega online
44
Requires at least: 5.8
55
Tested up to: 6.4
6-
Stable tag: 4.1.1
6+
Stable tag: 4.1.2
77
Requires PHP: 7.0
88
License: GPL3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -45,6 +45,13 @@ If you notice that your API key doesn't work any more, you have to contact us.
4545

4646
The full changelog available on [GitHub](https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/CHANGELOG.md)
4747

48+
### [4.1.2](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.1.1...v4.1.2) (2023-12-13)
49+
50+
51+
#### Bug Fixes
52+
53+
* Filtering the events if we're looking at a specific one for prices as well ([144762e](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/144762e9e3c9c14f7c1c0ce68dafa7feb50cb4e2))
54+
4855
### [4.1.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.1.0...v4.1.1) (2023-11-10)
4956

5057

@@ -78,12 +85,5 @@ were not working in the correct way.
7885

7986
* **Programme/Shortcodes:** Fixed an issue with Programme pages ([461c3bf](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/461c3bfac424d8614580ac4f7df2fe5d70161499))
8087

81-
### [3.11.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v3.11.0...v3.11.1) (2023-10-09)
82-
83-
84-
#### Bug Fixes
85-
86-
* **Programme:** Added check for StatusId, so that we only show programme starts with statusid 1 (Booked) ([cc9a797](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/cc9a7970fb7aaa989facd0aea7894edeaeb9407b))
87-
8888

8989

0 commit comments

Comments
 (0)