From: Jonathan Prykop Date: Wed, 28 Sep 2016 20:08:53 +0000 (-0500) Subject: 72456: Directions - override company_address [context bug fix] X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=081c6b3eeb0d2627e00bc39683748622acce87ef 72456: Directions - override company_address [context bug fix] --- diff --git a/httemplate/elements/coord-links.html b/httemplate/elements/coord-links.html index 586a7109d..db04dad97 100644 --- a/httemplate/elements/coord-links.html +++ b/httemplate/elements/coord-links.html @@ -51,8 +51,9 @@ my $apikey = $conf->config('google_maps_api_key'); #for directions link my @origin = $opt{company_address} ? @{ $opt{company_address} } - : ( $conf->config('company_physical_address', $agentnum) || - $conf->config('company_address', $agentnum) ); + : ( $conf->config('company_physical_address', $agentnum) + ? $conf->config('company_physical_address', $agentnum) + : $conf->config('company_address', $agentnum) ); my $origin = uri_escape(join(',', @origin));