Skip to content

Commit

Permalink
pick up the addon instance when detecting delayed actions
Browse files Browse the repository at this point in the history
fixed: editing a feed loses detected delayed actions for add-ons using the Add-on framework
  • Loading branch information
webaware committed Jul 3, 2019
1 parent ca454f1 commit 9e77af8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Changelog

### 2.3.2, 2019-07-03

* fixed: editing a feed loses detected delayed actions for add-ons using the Add-on framework

### 2.3.1, 2019-07-03

* fixed: crash on PHP 5.6 when adding a new feed to a form
Expand Down
4 changes: 2 additions & 2 deletions gravityforms-dps-pxpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Gravity Forms DPS PxPay
Plugin URI: https://wordpress.org/plugins/gravity-forms-dps-pxpay/
Description: Easily create online payment forms with Gravity Forms and DPS Payment Express (Windcave) PxPay
Version: 2.3.1
Version: 2.3.2
Author: WebAware
Author URI: https://shop.webaware.com.au/
Text Domain: gravity-forms-dps-pxpay
Expand Down Expand Up @@ -35,7 +35,7 @@
define('GFDPSPXPAY_PLUGIN_NAME', basename(dirname(__FILE__)) . '/' . basename(__FILE__));
define('GFDPSPXPAY_PLUGIN_FILE', __FILE__);
define('GFDPSPXPAY_PLUGIN_MIN_PHP', '5.6');
define('GFDPSPXPAY_PLUGIN_VERSION', '2.3.1');
define('GFDPSPXPAY_PLUGIN_VERSION', '2.3.2');

require GFDPSPXPAY_PLUGIN_ROOT . 'includes/functions-global.php';

Expand Down
2 changes: 1 addition & 1 deletion includes/class.GFDpsPxPayAddOn.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ public function gformAddSettingsDelayed($fields) {
// handle add-ons that support delayed payment conventions
foreach ($addons as $class_name) {
if (method_exists($class_name, 'get_instance')) {
call_user_func([$class_name, 'get_instance']);
$addon = call_user_func([$class_name, 'get_instance']);
if (!empty($addon->delayed_payment_integration)) {
$fields = $addon->add_paypal_post_payment_actions($fields);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gravity-forms-dps-pxpay",
"version": "2.3.1",
"version": "2.3.2",
"description": "Gravity Forms DPS PxPay",
"homepage": "https://shop.webaware.com.au/downloads/gravity-forms-dps-pxpay/",
"main": "Gruntfile.js",
Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Donate link: https://shop.webaware.com.au/donations/?donation_for=Gravity+Forms+
Tags: gravity forms, dps, payment express, pxpay, donations, payment, payment gateway, ecommerce
Requires at least: 4.9
Tested up to: 5.2
Stable tag: 2.3.1
Stable tag: 2.3.2
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -145,14 +145,20 @@ Developers can run processes on these actions (e.g. load classes required to han

## Upgrade Notice

### 2.3.1
### 2.3.2

fixed crash on PHP 5.6 when adding a new feed to a form in v2.3.0; prevent duplicate emails / feed processing

## Changelog

The full changelog can be found [on GitHub](https://github.com/webaware/gravity-forms-dps-pxpay/blob/master/changelog.md). Recent entries:

### 2.3.2

Released 2019-07-03

* fixed: editing a feed loses detected delayed actions for add-ons using the Add-on framework

### 2.3.1

Released 2019-07-03
Expand Down

0 comments on commit 9e77af8

Please sign in to comment.