From a66422cbefc7c396bb7530c294e56c9f51eb4643 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 11 Aug 2017 15:41:08 -0400 Subject: [PATCH] Fixed uninitialized parameter problem for $filterFeatured in membersListExport model Fixed bad referencs to .value in certain output fields in the Member Profile Export views when those values didn't exist. Updated index.php with new version Updated readme.txt with new version notes. --- index.php | 6 +++--- models/admin/ajax/membersListExport.php | 2 ++ readme.txt | 4 ++++ views/admin/ajax/membersListExport.html | 8 ++++---- views/admin/ajax/membersListExportCsv.html | 8 ++++---- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/index.php b/index.php index 575d5d9a..b3aeebc1 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 2.10.6 + * Version: 2.10.7 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabase * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 2.10.6 + * @version 2.10.7 */ /* @@ -38,7 +38,7 @@ * */ -define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.6'); +define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.7'); define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.32'); // Check if plugin version is not current in WordPress option and if needed updated it diff --git a/models/admin/ajax/membersListExport.php b/models/admin/ajax/membersListExport.php index 012f0397..6453a2f3 100644 --- a/models/admin/ajax/membersListExport.php +++ b/models/admin/ajax/membersListExport.php @@ -192,6 +192,7 @@ class GlmMembersAdmin_ajax_membersListExport extends GlmDataMemberInfo } // Check for "Featured Only + $filterFeatured = false; if (isset($_REQUEST['filterFeatured'])) { // Refine search only to members with pending Info data @@ -220,6 +221,7 @@ class GlmMembersAdmin_ajax_membersListExport extends GlmDataMemberInfo //echo '
$where: ' . print_r( $where, true ) . '
'; // Get a current list of members without paging $list = $this->getList($where, "member_name"); + //echo '
$list: ' . print_r( $list, true ) . '
'; //exit; diff --git a/readme.txt b/readme.txt index 897ae9f2..178a38a2 100644 --- a/readme.txt +++ b/readme.txt @@ -66,6 +66,10 @@ There is of course much more to this. (none) == Changelog == += 2.10.7 = +* Fixed problems with Member Profile Export view files. +* Fixed uninitialized value in Members Profile Export model. + = 2.10.6 = * Updated the member export to member profile export. * Fixed the member export file. diff --git a/views/admin/ajax/membersListExport.html b/views/admin/ajax/membersListExport.html index ede0c66b..bcb2e4b8 100644 --- a/views/admin/ajax/membersListExport.html +++ b/views/admin/ajax/membersListExport.html @@ -53,14 +53,14 @@ {if $select.exportAddr1}{$m.addr1}{/if} {if $select.exportAddr2}{$m.addr2}{/if} {if $select.exportCity}{$m.city}{/if} - {if $select.exportState}{$m.state.value}{/if} + {if $select.exportState}{if $m.state}{$m.state.value}{/if}{/if} {if $select.exportZip}{$m.zip}{/if} - {if $select.exportCounty}{$m.county.value}{/if} - {if $select.exportRegion}{$m.region.value}{/if} + {if $select.exportCounty}{if $m.county}{$m.county.value}{/if}{/if} + {if $select.exportRegion}{$m.region}{/if} {if $select.exportMailingAddr1}{$m.mailing_addr1}{/if} {if $select.exportMailingAddr2}{$m.mailing_addr2}{/if} {if $select.exportMailingCity}{$m.mailing_city}{/if} - {if $select.exportMailingState}{$m.mailing_state.value}{/if} + {if $select.exportMailingState}{if $m.mailing_state}{$m.mailing_state.value}{/if}{/if} {if $select.exportMailingZip}{$m.mailing_zip}{/if} {if $select.exportPhone}{$m.phone}{/if} {if $select.exportTollFree}{$m.toll_free}{/if} diff --git a/views/admin/ajax/membersListExportCsv.html b/views/admin/ajax/membersListExportCsv.html index 92340dc6..1175533c 100644 --- a/views/admin/ajax/membersListExportCsv.html +++ b/views/admin/ajax/membersListExportCsv.html @@ -32,14 +32,14 @@ {if $select.exportAddr1}"{$m.addr1}",{/if} {if $select.exportAddr2}"{$m.addr2}",{/if} {if $select.exportCity}"{$m.city}",{/if} -{if $select.exportState}"{$m.state.value}",{/if} +{if $select.exportState}"{if $m.state}{$m.state.value}{/if}",{/if} {if $select.exportZip}"{$m.zip}",{/if} -{if $select.exportCounty}"{$m.county.value}",{/if} -{if $select.exportRegion}"{$m.region.value}",{/if} +{if $select.exportCounty}"{if $m.county}{$m.county.value}{/if}",{/if} +{if $select.exportRegion}"{$m.region}",{/if} {if $select.exportMailingAddr1}"{$m.mailing_addr1}",{/if} {if $select.exportMailingAddr2}"{$m.mailing_addr2}",{/if} {if $select.exportMailingCity}"{$m.mailing_city}",{/if} -{if $select.exportMailingState}"{$m.mailing_state.value}",{/if} +{if $select.exportMailingState}"{if $m.mailing_state}{$m.mailing_state.value}{/if}",{/if} {if $select.exportMailingZip}"{$m.mailing_zip}",{/if} {if $select.exportPhone}"{$m.phone}",{/if} {if $select.exportTollFree}"{$m.toll_free}",{/if} -- 2.17.1