From: Steve Sutton Date: Thu, 2 Nov 2017 14:19:45 +0000 (-0400) Subject: Going through list template and remove any template errors X-Git-Tag: v1.0.0^2~305 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=01ef13197f2840481aeadc0212c3f91ec3431a87;p=WP-Plugins%2Fglm-member-db-registrations.git Going through list template and remove any template errors For undefined variables. --- diff --git a/classes/data/dataRegEvent.php b/classes/data/dataRegEvent.php index a045828..8ab8fac 100644 --- a/classes/data/dataRegEvent.php +++ b/classes/data/dataRegEvent.php @@ -379,6 +379,9 @@ class GlmDataRegistrationsRegEvent extends GlmDataAbstract if ( isset( $eventData['locations'] ) && $eventData['locations'] ) { $result_data['locations'] = $eventData['locations']; } + if ( isset( $eventData['other_ref_dest'] ) && $eventData['other_ref_dest'] ) { + $result_data['other_ref_dest'] = $eventData['other_ref_dest']; + } } } diff --git a/views/front/registrations/list.html b/views/front/registrations/list.html index 658ed51..6ea9e0d 100644 --- a/views/front/registrations/list.html +++ b/views/front/registrations/list.html @@ -28,13 +28,13 @@ Location:
- {if !$event.use_member_location.value && ($event.locations.name || $event.locations.address)} + {if !$event.use_member_location.value && isset($event.locations) && ($event.locations.name || $event.locations.address)} {if $event.locations.name}{$event.locations.name}
{/if} {if $event.locations.address} {$event.locations.address}
{/if} {if $event.locations.city.name}{$event.locations.city.name}{/if}{if $event.locations.state.value}, {$event.locations.state.value} {/if} {if $event.locations.zip} {$event.locations.zip} {/if} {if $event.locations.phone} {apply_filters('glm_associate_phone_filter', $event.locations.phone)} {/if} - {elseif $event.use_member_location.value || $event.other_ref_dest} + {elseif $event.use_member_location.value} {if $event.member.member} {$event.member.member}
{/if} {if $event.member.addr1} {$event.member.addr1}
{/if} {if $event.member.city}{$event.member.city}{/if}{if $event.member.state.value}, {$event.member.state.value}{/if}