Update export to check for archived billing accounts.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 8 Mar 2019 14:48:51 +0000 (09:48 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 8 Mar 2019 14:48:51 +0000 (09:48 -0500)
Archived accounts only show when checked for show archived is selected.

index.php
models/admin/ajax/accountsListExport.php

index 3a3540e..71a72d4 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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.
index a9d00d7..7feaa44 100644 (file)
@@ -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