From b8d5d677cff9cfd9b6b5a2734321953e01340247 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 8 Mar 2019 09:48:51 -0500 Subject: [PATCH] Update export to check for archived billing accounts. Archived accounts only show when checked for show archived is selected. --- index.php | 6 +++--- models/admin/ajax/accountsListExport.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 3a3540e..71a72d4 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.24 + * Version: 1.0.25 * 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.24 + * @version 1.0.25 */ /* @@ -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.24'); +define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.25'); 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/ajax/accountsListExport.php b/models/admin/ajax/accountsListExport.php index a9d00d7..7feaa44 100644 --- a/models/admin/ajax/accountsListExport.php +++ b/models/admin/ajax/accountsListExport.php @@ -116,13 +116,13 @@ class GlmMembersAdmin_ajax_accountsListExport extends GlmDataAccounts // Check if this is a request to show archived accounts if (isset($_REQUEST['filterArchived'])) { - // $where_params[] = "T.archived"; + $where_params[] = "T.archived"; $filterArchived = true; $haveFilter = true; // If not, don't show them } else { - // $where_params[] = "T.archived <> true"; + $where_params[] = "T.archived <> true"; } // When searching -- 2.17.1