Skip to content

Commit

Permalink
Bugfix, maxparticipantnr = 0 should be selectable..
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Feb 22, 2017
1 parent 04d556c commit cb633c2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
## [Unreleased]
### Added

## [0.9.17.16]
### Added
- Bugfix: Pricenames with zero max participants should be selectable

## [0.9.17.15]
### Added
- Rudimentary support to block people from booking with certain price names (Only when it's selectable)
Expand Down Expand Up @@ -215,7 +219,8 @@
### Added
- Added inquiry support in course

[Unreleased]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.9.17.15...HEAD
[Unreleased]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.9.17.16...HEAD
[0.9.17.16]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.9.17.15...v0.9.17.16
[0.9.17.15]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.9.17.14...v0.9.17.15
[0.9.17.14]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.9.17.13...v0.9.17.14
[0.9.17.13]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.9.17.12...v0.9.17.13
Expand Down
4 changes: 2 additions & 2 deletions content/template/bookingTemplate/participantView.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
data-pricelnkid="<?php echo esc_attr($price->OccationPriceNameLnkID); ?>"
data-maxparticipants="<?php echo @esc_attr($price->MaxPriceNameParticipantNr); ?>"
data-currentparticipants="<?php echo @esc_attr($price->ParticipantNr); ?>"
<?php if($price->MaxPriceNameParticipantNr >= 0 && $price->ParticipantNr >= $price->MaxPriceNameParticipantNr) { ?>
<?php if($price->MaxPriceNameParticipantNr > 0 && $price->ParticipantNr >= $price->MaxPriceNameParticipantNr) { ?>
disabled
<?php } ?>
value="<?php echo esc_attr($price->OccationPriceNameLnkID); ?>">
Expand Down Expand Up @@ -229,7 +229,7 @@
data-pricelnkid="<?php echo esc_attr($price->OccationPriceNameLnkID); ?>"
data-maxparticipants="<?php echo @esc_attr($price->MaxPriceNameParticipantNr); ?>"
data-currentparticipants="<?php echo @esc_attr($price->ParticipantNr); ?>"
<?php if($price->MaxPriceNameParticipantNr >= 0 && $price->ParticipantNr >= $price->MaxPriceNameParticipantNr) { ?>
<?php if($price->MaxPriceNameParticipantNr > 0 && $price->ParticipantNr >= $price->MaxPriceNameParticipantNr) { ?>
disabled
<?php } ?>
value="<?php echo esc_attr($price->OccationPriceNameLnkID); ?>">
Expand Down
2 changes: 1 addition & 1 deletion content/template/bookingTemplate/template_A.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
data-pricelnkid="<?php echo esc_attr($price->OccationPriceNameLnkID); ?>"
data-maxparticipants="<?php echo @esc_attr($price->MaxPriceNameParticipantNr); ?>"
data-currentparticipants="<?php echo @esc_attr($price->ParticipantNr); ?>"
<?php if($price->MaxPriceNameParticipantNr >= 0 && $price->ParticipantNr >= $price->MaxPriceNameParticipantNr) { ?>
<?php if($price->MaxPriceNameParticipantNr > 0 && $price->ParticipantNr >= $price->MaxPriceNameParticipantNr) { ?>
disabled
<?php } ?>
value="<?php echo esc_attr($price->OccationPriceNameLnkID); ?>">
Expand Down
4 changes: 2 additions & 2 deletions eduadmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Plugin URI: http://www.eduadmin.se
* Description: EduAdmin plugin to allow visitors to book courses at your website
* Tags: booking, participants, courses, events, eduadmin, lega online
* Version: 0.9.17.15
* Version: 0.9.17.16
* Requires at least: 3.0
* Tested up to: 4.7.1
* Author: Chris Gårdenberg, MultiNet Interactive AB
Expand Down Expand Up @@ -77,7 +77,7 @@ function edu_call_home()
'wpVersion' => $wp_version,
'token' => get_option('eduadmin-api-key'),
'officialVersion' => file_exists(dirname(__FILE__) . "/.official.plugin.php"),
'pluginVersion' => '0.9.17.15'
'pluginVersion' => '0.9.17.16'
);

$callHomeUrl = 'http://ws10.multinet.se/edu-plugin/wp_phone_home.php';
Expand Down

0 comments on commit cb633c2

Please sign in to comment.