From 913ad234cf145a55e5f2faaab08d776d83c1699b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 12 Aug 2019 20:04:05 -0600 Subject: [PATCH] Update contact_addresses.php --- app/contacts/contact_addresses.php | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/app/contacts/contact_addresses.php b/app/contacts/contact_addresses.php index c66b5ff76e..54a17dc762 100644 --- a/app/contacts/contact_addresses.php +++ b/app/contacts/contact_addresses.php @@ -38,6 +38,11 @@ exit; } +//set the uuid + if (is_uuid($_GET['id'])) { + $contact_uuid = $_GET['id']; + } + //show the content echo "\n"; echo "\n"; @@ -46,21 +51,23 @@ echo "\n"; echo "
\n"; - //get the contact list - $sql = "select * from v_contact_addresses "; - $sql .= "where domain_uuid = :domain_uuid "; - $sql .= "and contact_uuid = :contact_uuid "; - $sql .= "order by address_primary desc, address_label asc "; - $parameters['domain_uuid'] = $_SESSION['domain_uuid']; - $parameters['contact_uuid'] = $contact_uuid; - $database = new database; - $result = $database->select($sql, $parameters, 'all'); - unset($sql, $parameters); +//get the contact list + $sql = "select * from v_contact_addresses "; + $sql .= "where domain_uuid = :domain_uuid "; + $sql .= "and contact_uuid = :contact_uuid "; + $sql .= "order by address_primary desc, address_label asc "; + $parameters['domain_uuid'] = $_SESSION['domain_uuid']; + $parameters['contact_uuid'] = $contact_uuid; + $database = new database; + $result = $database->select($sql, $parameters, 'all'); + unset($sql, $parameters); +//set the row style $c = 0; $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; +//show the content echo "\n"; echo "\n"; @@ -72,7 +79,7 @@ echo "\n"; echo "\n"; echo "\n";
".$text['label-address_description'].""; if (permission_exists('contact_address_add')) { - echo "$v_link_label_add"; + echo "$v_link_label_add"; } echo "