From 60ed0a7d617df20992b57b71683cd86eff8fc86a Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 21 Feb 2019 09:58:23 -0500 Subject: [PATCH] Update for bug when changing member types. Fixing call to update members type. --- index.php | 6 +++--- models/admin/member/billing.php | 2 +- models/front/billing/renew.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index ae3d17d..3a3540e 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Billing * Plugin URI: http://www.gaslightmedia.com/ * Description: This is glmAssociate Billing Module - * Version: 1.0.23 + * Version: 1.0.24 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersBillingAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.23 + * @version 1.0.24 */ /* @@ -37,7 +37,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.23'); +define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.24'); define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.26'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/admin/member/billing.php b/models/admin/member/billing.php index b65218f..4c71901 100644 --- a/models/admin/member/billing.php +++ b/models/admin/member/billing.php @@ -389,7 +389,7 @@ class GlmMembersAdmin_member_billing // extends GlmDataBilling ); // TODO: Need to reset account invoice_type also if ( $current_member_type != $new_member_type ) { - $this->update( + $this->wpdb->update( GLM_MEMBERS_PLUGIN_DB_PREFIX . 'members', array( 'member_type' => $new_member_type ), array( 'id' => $member_id ), diff --git a/models/front/billing/renew.php b/models/front/billing/renew.php index f0a3d95..18cf554 100644 --- a/models/front/billing/renew.php +++ b/models/front/billing/renew.php @@ -368,7 +368,7 @@ class GlmMembersFront_billing_renew // extends GlmDataBilling ) ); if ( $current_member_type != $new_member_type ) { - $this->update( + $this->wpdb->update( GLM_MEMBERS_PLUGIN_DB_PREFIX . 'members', array( 'member_type' => $new_member_type ), array( 'id' => $member_id ), -- 2.17.1