From: Laury GvR Date: Thu, 22 Aug 2019 15:32:50 +0000 (-0400) Subject: Fix contact list view to show full city name X-Git-Tag: v1.1.14^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=91873b18f971be642fae6c52ece0c484bf8628b5;p=WP-Plugins%2Fglm-member-db-contacts.git Fix contact list view to show full city name Fix contact front list view to show city name instead of a single letter due to using the nonexistent property city.name --- diff --git a/index.php b/index.php index 9f028f9..b562609 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Contacts * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.1.13 + * Version: 1.1.14 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabaseContacts * @author Gaslight Media * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.1.13 + * @version 1.1.14 */ // Check that we're being called by WordPress. @@ -39,7 +39,7 @@ if (!defined('ABSPATH')) { * version when there's a change in the database!! Use the * version nunmber of that release for the DB version. */ -define('GLM_MEMBERS_CONTACTS_PLUGIN_VERSION', '1.1.13'); +define('GLM_MEMBERS_CONTACTS_PLUGIN_VERSION', '1.1.14'); /** * Database Version */ diff --git a/readme.txt b/readme.txt index 11436ab..314fa00 100644 --- a/readme.txt +++ b/readme.txt @@ -29,6 +29,9 @@ e.g. (none at this time) == Changelog == += 1.1.14 = +* Fix contact front list view to show city name instead of a single letter due to using nonexistent property city.name + = 1.1.13 = * Add filter for billing notifications diff --git a/views/front/contacts/list.html b/views/front/contacts/list.html index 0f7127c..65009d9 100644 --- a/views/front/contacts/list.html +++ b/views/front/contacts/list.html @@ -92,9 +92,9 @@ and open the template in the editor. {/if} {if $contact.addr1}
{$contact.addr1}
{/if} {if $contact.addr2}
{$contact.addr2}
{/if} - {if $contact.zip or $contact.city.name or $contact.state.name} + {if $contact.zip or $contact.city or $contact.state.name}
- {if $contact.city.name}{$contact.city.name},{/if} + {if $contact.city}{$contact.city},{/if} {if $contact.state.name}{$contact.state.name}{/if} {if $contact.zip}{$contact.zip}{/if}
{/if}