Changeset 1504489
- Timestamp:
- 09/28/2016 01:35:29 PM (10 years ago)
- Location:
- bluecube-mighty-gravity-forms
- Files:
-
- 5 added
- 3 edited
-
tags/1.1.1 (added)
-
tags/1.1.1/bluecube-mighty-gravityforms.php (added)
-
tags/1.1.1/class (added)
-
tags/1.1.1/class/Mighty_Gravity_Forms.php (added)
-
tags/1.1.1/readme.txt (added)
-
trunk/bluecube-mighty-gravityforms.php (modified) (1 diff)
-
trunk/class/Mighty_Gravity_Forms.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bluecube-mighty-gravity-forms/trunk/bluecube-mighty-gravityforms.php
r1504333 r1504489 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 8 * Version: 1.1.1 9 9 * Author URI: https://thebluecube.com 10 10 * License: GPLv2 or later -
bluecube-mighty-gravity-forms/trunk/class/Mighty_Gravity_Forms.php
r1504333 r1504489 575 575 */ 576 576 protected function maybeMarkTheFormAsValid($field) 577 { 578 $invalid_inputs = array_filter($this->validation_result['form']['fields'], function ($input){ 579 return $input->validation_message != ''; 580 }); 581 582 if (count($invalid_inputs) == 1 && $invalid_inputs[0]->id == $field->id) 583 $this->validation_result['is_valid'] = true; 584 } 577 { 578 $invalid_inputs = array_filter($this->validation_result['form']['fields'], function ($input){ 579 return $input->validation_message != ''; 580 }); 581 582 if ( count($invalid_inputs) == 1 ) { 583 $invalid_input = array_shift($invalid_inputs); 584 if ( $invalid_input->id == $field->id ) 585 $this->validation_result['is_valid'] = true; 586 } 587 } 585 588 586 589 /** -
bluecube-mighty-gravity-forms/trunk/readme.txt
r1504333 r1504489 5 5 Requires at least: 4.6 6 6 Tested up to: 4.6.1 7 Stable tag: 1.1 7 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 == Changelog == 36 36 37 = 1.1.1 = 38 * Fixing a bug in the maybeMarkTheFormAsValid method 39 37 40 = 1.1 = 38 41 * Adding advanced conditional logic shortcode to be used in email notifications
Note: See TracChangeset
for help on using the changeset viewer.