Changeset 1512544
- Timestamp:
- 10/11/2016 08:35:07 AM (9 years ago)
- Location:
- bluecube-mighty-gravity-forms
- Files:
-
- 5 added
- 3 edited
-
tags/1.1.2 (added)
-
tags/1.1.2/bluecube-mighty-gravityforms.php (added)
-
tags/1.1.2/class (added)
-
tags/1.1.2/class/Mighty_Gravity_Forms.php (added)
-
tags/1.1.2/readme.txt (added)
-
trunk/bluecube-mighty-gravityforms.php (modified) (1 diff)
-
trunk/class/Mighty_Gravity_Forms.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bluecube-mighty-gravity-forms/trunk/bluecube-mighty-gravityforms.php
r1504489 r1512544 6 6 * Description: This plugin adds some advanced features to Gravity Forms e.g. custom validation rules etc. 7 7 * Author: Blue Cube Communications Ltd 8 * Version: 1.1. 18 * Version: 1.1.2 9 9 * Author URI: https://thebluecube.com 10 10 * License: GPLv2 or later -
bluecube-mighty-gravity-forms/trunk/class/Mighty_Gravity_Forms.php
r1504489 r1512544 40 40 add_filter('gform_field_input', [$this, 'addFrontEndNumberRangeChange'], 10, 5); 41 41 42 // Adding a shortcode to have advanced conditional logic in email notifications43 add_shortcode('gf_notification_conditional_block', [$this, 'notificationConditionalBlockShortcode']);42 // Adding a shortcode to have advanced conditional logic in email notifications 43 add_shortcode('gf_notification_conditional_block', [$this, 'notificationConditionalBlockShortcode']); 44 44 } 45 45 … … 619 619 $ruler_field_expected_value = (isset($validation_rule[2]) && $validation_rule[2] != '') ? $validation_rule[2] : null; 620 620 621 $error_msg = 'This field is required.'; 621 622 if (is_null($ruler_field_expected_value)) { 622 623 // This means we only need to check the existence of the ruler field (which we are already sure about if you have a look at the previous lines) … … 624 625 if ($this->fieldValueIsEmpty($field) && ! $this->fieldValueIsEmpty($ruler_field)) { 625 626 // The field value is empty so we should invalidate the form 626 $this->invalidateTheField($field, 'The input "'.$field->label.'" is mandatory when you have filled the input "'.$ruler_field->label.'".');627 $this->invalidateTheField($field, $error_msg); 627 628 } 628 629 … … 631 632 if ($this->fieldHasTheValue($ruler_field, $ruler_field_expected_value) && $this->fieldValueIsEmpty($field)) { 632 633 // The field value is empty while the ruler field has the expected value 633 $this->invalidateTheField($field, 'The input "'.$field->label.'" is mandatory when the input "'.$ruler_field->label.'" has the value of "'.$ruler_field_expected_value.'".');634 $this->invalidateTheField($field, $error_msg); 634 635 } 635 636 } -
bluecube-mighty-gravity-forms/trunk/readme.txt
r1504489 r1512544 5 5 Requires at least: 4.6 6 6 Tested up to: 4.6.1 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 This plugin adds some additional features to the Gravity Forms plugin: Advanced input validations, Input ID change, Form access control , Advanced conditional logic for email notifications11 This plugin adds some additional features to the Gravity Forms plugin: Advanced input validations, Input ID change, Form access control etc. 12 12 13 13 == Description == … … 35 35 == Changelog == 36 36 37 = 1.1.2 = 38 * Changing the error message for the 'requiredWith' validation rule to a simpler one. 39 37 40 = 1.1.1 = 38 41 * Fixing a bug in the maybeMarkTheFormAsValid method
Note: See TracChangeset
for help on using the changeset viewer.