diff --git a/agent/clients.php b/agent/clients.php
index 954fc632..da40e1ab 100644
--- a/agent/clients.php
+++ b/agent/clients.php
@@ -333,18 +333,12 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
$client_name = escapeHtml($row['client_name']);
$client_type = escapeHtml($row['client_type']);
$location_id = intval($row['location_id']);
- $location_country = escapeHtml($row['location_country']);
$location_address = escapeHtml($row['location_address']);
$location_city = escapeHtml($row['location_city']);
$location_state = escapeHtml($row['location_state']);
$location_zip = escapeHtml($row['location_zip']);
- $location_address_lines = formatAddress($location_address, $location_city, $location_state, $location_zip, '', '
');
- if ($location_address_lines === '') {
- $location_address_display = "-";
- } else {
- $location_country_line = $location_country ? "
$location_country
" : '';
- $location_address_display = "";
- }
+ $location_country = escapeHtml($row['location_country']);
+ $full_address = formatAddress($location_address, $location_city, $location_state, $location_zip, $location_country, '
') ?: '-';
$contact_id = intval($row['contact_id']);
$contact_name = escapeHtml($row['contact_name']);
$contact_title = escapeHtml($row['contact_title']);
@@ -501,7 +495,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- |
+ = $full_address ?> |
= 1) && $config_module_enable_accounting == 1) { ?>
diff --git a/agent/includes/inc_all_client.php b/agent/includes/inc_all_client.php
index 81f33489..24c01b7b 100644
--- a/agent/includes/inc_all_client.php
+++ b/agent/includes/inc_all_client.php
@@ -63,6 +63,7 @@ if (isset($_GET['client_id'])) {
$location_state = escapeHtml($row['location_state']);
$location_zip = escapeHtml($row['location_zip']);
$location_country = escapeHtml($row['location_country']);
+ $location_full_address = formatAddress($location_address, $location_city, $location_state, $location_zip, $location_country, ' ') ?: '-';
$location_phone_country_code = escapeHtml($row['location_phone_country_code']);
$location_phone = escapeHtml(formatPhoneNumber($row['location_phone'], $location_phone_country_code));
$location_primary = intval($row['location_primary']);
diff --git a/agent/locations.php b/agent/locations.php
index 3b7ffc30..314ecffd 100644
--- a/agent/locations.php
+++ b/agent/locations.php
@@ -264,11 +264,12 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
$location_id = intval($row['location_id']);
$location_name = escapeHtml($row['location_name']);
$location_description = escapeHtml($row['location_description']);
- $location_country = escapeHtml($row['location_country']);
$location_address = escapeHtml($row['location_address']);
$location_city = escapeHtml($row['location_city']);
$location_state = escapeHtml($row['location_state']);
$location_zip = escapeHtml($row['location_zip']);
+ $location_country = escapeHtml($row['location_country']);
+ $full_address = formatAddress($location_address, $location_city, $location_state, $location_zip, $location_country, ' ') ?: '-';
$location_phone_country_code = escapeHtml($row['location_phone_country_code']);
$location_phone = escapeHtml(formatPhoneNumber($row['location_phone'], $location_phone_country_code));
if (empty($location_phone)) {
@@ -349,7 +350,11 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
- " target="_blank">'); ?>$location_country" : ''; ?> |
+
+ "
+ target="_blank">= $full_address ?>
+
+ |
|