Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

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.

## [2.4.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v2.4.0...v2.4.1) (2019-06-04)


### Bug Fixes

* 🐛 Only one event = add hidden field ([25c813d](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/25c813d))



# [2.4.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v2.3.1...v2.4.0) (2019-05-31)


Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"php": ">=5.2",
"composer/installers": "~1"
},
"version": "2.4.0"
"version": "2.4.1"
}
1 change: 1 addition & 0 deletions content/template/bookingTemplate/course-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
}

$event_id = $event['EventId'];
$eventid = $event_id;

$questions = EDU()->get_transient( 'eduadmin-event_questions', function() use ( $event_id ) {
return EDUAPI()->REST->Event->BookingQuestions( $event_id, true );
Expand Down
5 changes: 4 additions & 1 deletion content/template/bookingTemplate/event-selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
echo esc_html( date( 'H:i', strtotime( $event['EndDate'] ) ) ) . '</span>';
echo esc_html( edu_output_event_venue( array( $event['AddressName'], $event['City'] ), ', ' ) );
echo '</div>';
else:
if ( !isset( $_GET['eid'] ) || !is_numeric( $_GET['eid'] ) ) :
?><input type="hidden" name="eid" value="<?php echo esc_attr( $event['EventId'] ); ?>" /><?php
endif;
else :
echo '<div class="dateInfo">' . esc_html_x( 'No events planned for this course yet.', 'frontend', 'eduadmin-booking' ) . '</div>';
endif;
2 changes: 1 addition & 1 deletion eduadmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin URI: https://www.eduadmin.se
* Description: EduAdmin plugin to allow visitors to book courses at your website
* Tags: booking, participants, courses, events, eduadmin, lega online
* Version: 2.4.0
* Version: 2.4.1
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
* Requires at least: 4.7
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "eduadmin-wordpress-plugin",
"private": true,
"version": "2.4.0",
"version": "2.4.1",
"repository": "https://github.com/MultinetInteractive/EduAdmin-WordPress.git",
"author": "Chris Gårdenberg <chga@multinet.se>",
"license": "MIT",
"scripts": {
"dev": "yarn gulp",
"commit": "npx git-cz",
"bump-version": "yarn standard-version && yarn gulp debug && git add . && git add . && git commit -m \"chore: versionbump\" && git push --follow-tags"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: mnchga
Tags: booking, participants, courses, events, eduadmin, lega online
Requires at least: 4.7
Tested up to: 5.2
Stable tag: 2.4.0
Stable tag: 2.4.1
Requires PHP: 5.2
License: GPL3
License-URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Expand Down