Fix contact list view to show full city name
authorLaury GvR <laury@gaslightmedia.com>
Thu, 22 Aug 2019 15:32:50 +0000 (11:32 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 22 Aug 2019 15:32:50 +0000 (11:32 -0400)
Fix contact front list view to show city name instead of a single
letter due to using the nonexistent property city.name

index.php
readme.txt
views/front/contacts/list.html

index 9f028f9..b562609 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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
  */
index 11436ab..314fa00 100644 (file)
@@ -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
 
index 0f7127c..65009d9 100644 (file)
@@ -92,9 +92,9 @@ and open the template in the editor.
                                 {/if}
                                 {if $contact.addr1}<div class="glm-contact-info-address1">{$contact.addr1}</div>{/if}
                                 {if $contact.addr2}<div class="glm-contact-info-address2">{$contact.addr2}</div>{/if}
-                                {if $contact.zip or $contact.city.name or $contact.state.name}
+                                {if $contact.zip or $contact.city or $contact.state.name}
                                 <div>
-                                    {if $contact.city.name}<span class="glm-contact-info-city">{$contact.city.name},</span>{/if}
+                                    {if $contact.city}<span class="glm-contact-info-city">{$contact.city},</span>{/if}
                                     {if $contact.state.name}<span class="glm-contact-info-state">{$contact.state.name}</span>{/if}
                                     {if $contact.zip}<span class="glm-contact-info-zip">{$contact.zip}</span>{/if}
                                 </div>{/if}