Restaurant Reservations - Version 2.0.4

Version Description

(2019-10-29) = - Corrects an error that was coming up on submission when there was a custom field in the form.

Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Restaurant Reservations
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

includes/CustomFields.class.php CHANGED
@@ -125,6 +125,7 @@ class rtbCustomFields {
125
  * @since 0.1
126
  */
127
  public function add_notification_template_tags( $tags, $notification ) {
 
128
 
129
  $fields = rtb_get_custom_fields();
130
 
@@ -138,7 +139,7 @@ class rtbCustomFields {
138
  }
139
 
140
  if ( isset( $cf[ $field->slug ] ) ) {
141
- $display_val = apply_filters( 'cffrtb_display_value_notification', $this->fields->get_display_value( $cf[ $field->slug ], $field, $checkbox_icon ), $cf[ $field->slug ], $field, $notification );
142
  } else {
143
  $display_val = '';
144
  }
125
  * @since 0.1
126
  */
127
  public function add_notification_template_tags( $tags, $notification ) {
128
+ global $rtb_controller;
129
 
130
  $fields = rtb_get_custom_fields();
131
 
139
  }
140
 
141
  if ( isset( $cf[ $field->slug ] ) ) {
142
+ $display_val = apply_filters( 'cffrtb_display_value_notification', $rtb_controller->fields->get_display_value( $cf[ $field->slug ], $field, $checkbox_icon ), $cf[ $field->slug ], $field, $notification );
143
  } else {
144
  $display_val = '';
145
  }
readme.txt CHANGED
@@ -175,6 +175,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
175
 
176
  == Changelog ==
177
 
 
 
 
178
  = 2.0.3 (2019-10-28) =
179
  - Fixing a class conflict with the email designer
180
 
175
 
176
  == Changelog ==
177
 
178
+ = 2.0.4 (2019-10-29) =
179
+ - Corrects an error that was coming up on submission when there was a custom field in the form.
180
+
181
  = 2.0.3 (2019-10-28) =
182
  - Fixing a class conflict with the email designer
183
 
restaurant-reservations.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Five Star Restaurant Reservations
4
  * Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
5
  * Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
6
- * Version: 2.0.3
7
  * Author: FiveStarPlugins
8
  * Author URI: https://profiles.wordpress.org/fivestarplugins/
9
  * Text Domain: restaurant-reservations
3
  * Plugin Name: Five Star Restaurant Reservations
4
  * Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
5
  * Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
6
+ * Version: 2.0.4
7
  * Author: FiveStarPlugins
8
  * Author URI: https://profiles.wordpress.org/fivestarplugins/
9
  * Text Domain: restaurant-reservations