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 "