From d9dddaebab7c2999e0e04c7e9328c6670557ee22 Mon Sep 17 00:00:00 2001 From: AlexC <40072887+alexdcrane@users.noreply.github.com> Date: Fri, 10 Dec 2021 13:29:05 -0700 Subject: [PATCH] Add required class to labels (#6183) --- app/contacts/contact_edit.php | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index 59e6fd2cfd..2cc7b28919 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -415,7 +415,7 @@ $y = 0; if (is_array($contact_settings)) { foreach ($contact_settings as $row) { - if (strlen($row['contact_setting_name']) > 0) { + if (strlen($row['contact_setting_category']) > 0 && strlen($row['contact_setting_subcategory']) > 0 && strlen($row['contact_setting_name']) > 0) { $array['contacts'][0]['contact_settings'][$y]['domain_uuid'] = $_SESSION['domain_uuid']; $array['contacts'][0]['contact_settings'][$y]['contact_uuid'] = $contact_uuid; $array['contacts'][0]['contact_settings'][$y]['contact_setting_uuid'] = $row["contact_setting_uuid"]; @@ -1601,7 +1601,7 @@ if (permission_exists('contact_phone_view')) { //echo $text['description-phone_extension']."\n"; echo " \n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-phone_number']."\n"; echo "
\n"; echo "
\n"; @@ -1808,7 +1808,7 @@ if (permission_exists('contact_address_view')) { echo " \n"; echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-address_address']."\n"; echo "
\n"; echo "
\n"; @@ -1944,7 +1944,7 @@ if (permission_exists('contact_email_view')) { echo " \n"; echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-email_address']."\n"; echo "
\n"; echo "
\n"; @@ -2058,11 +2058,10 @@ if (permission_exists('contact_url_view')) { //echo " \n"; echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-url_address']."\n"; echo "
\n"; echo "
\n"; - echo " \n"; echo "
\n"; @@ -2115,7 +2114,6 @@ if (permission_exists('contact_relation_view')) { $x = 0; foreach($contact_relations as $row) { - $sql = "select contact_uuid, contact_organization, contact_name_given, contact_name_family from v_contacts "; $sql .= "where domain_uuid = :domain_uuid "; $sql .= "and contact_uuid <> :contact_uuid "; @@ -2127,7 +2125,9 @@ if (permission_exists('contact_relation_view')) { echo "
\n"; echo "
\n"; - echo " ".$text['label-contact_relation_label']."\n"; + echo " \n"; + echo " ".$text['label-contact_relation_label']."\n"; + echo " \n"; if (permission_exists('contact_relation_delete')) { echo "
\n"; echo " \n"; @@ -2138,13 +2138,12 @@ if (permission_exists('contact_relation_view')) { } echo "
\n"; echo "
\n"; - - echo "
\n"; + + echo "
\n"; echo " ".$text['label-contact_relation_label']."\n"; echo "
\n"; echo "
\n"; - - + //if there are no custom labels add defaults if (is_array($_SESSION["contact"]["relation_label"])) { $relation_labels = $_SESSION["contact"]["url_label"]; @@ -2173,7 +2172,7 @@ if (permission_exists('contact_relation_view')) { echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-contact_relation_contact']."\n"; echo "
\n"; echo "
\n"; @@ -2236,14 +2235,14 @@ if (permission_exists('contact_setting_view')) { echo " \n"; echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-contact_setting_subcategory']."\n"; echo "
\n"; echo "
\n"; echo " \n"; echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-name']."\n"; echo "
\n"; echo "
\n"; @@ -2425,7 +2424,7 @@ if (permission_exists('contact_attachment_view')) { echo " \n"; echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-description']."\n"; echo "
\n"; echo "
\n"; @@ -2461,7 +2460,7 @@ if (permission_exists('contact_time_view')) { echo "
\n"; echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-time_start']."\n"; echo "
\n"; echo "
\n"; @@ -2519,7 +2518,7 @@ if (permission_exists('contact_note_view')) { echo "
\n"; echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-contact_note']."\n"; echo "
\n"; echo "
\n";