mirror of https://github.com/itflow-org/itflow
Fix primary contact text not showing
This commit is contained in:
parent
f443ae9203
commit
d942badec8
|
|
@ -226,7 +226,13 @@ $sql_asset_retired = mysqli_query(
|
||||||
$contact_mobile_country_code = nullable_htmlentities($row['contact_mobile_country_code']);
|
$contact_mobile_country_code = nullable_htmlentities($row['contact_mobile_country_code']);
|
||||||
$contact_mobile = nullable_htmlentities(formatPhoneNumber($row['contact_mobile'], $contact_mobile_country_code));
|
$contact_mobile = nullable_htmlentities(formatPhoneNumber($row['contact_mobile'], $contact_mobile_country_code));
|
||||||
$contact_photo = nullable_htmlentities($row['contact_photo']);
|
$contact_photo = nullable_htmlentities($row['contact_photo']);
|
||||||
|
$contact_primary = intval($row['contact_primary']);
|
||||||
$contact_initials = initials($contact_name);
|
$contact_initials = initials($contact_name);
|
||||||
|
if ($contact_primary == 1) {
|
||||||
|
$contact_primary_display = "<small class='text-success'>Primary Contact</small>";
|
||||||
|
} else {
|
||||||
|
$contact_primary_display = false;
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -256,11 +262,11 @@ $sql_asset_retired = mysqli_query(
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<?php echo $contact_tags_display; ?>
|
<?php echo $contact_tags_display; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php if (!empty($contact_phone)) { ?>
|
<?php if (!empty($contact_phone)) { ?>
|
||||||
|
|
@ -303,7 +309,7 @@ $sql_asset_retired = mysqli_query(
|
||||||
$item_type = nullable_htmlentities($row['item_type']);
|
$item_type = nullable_htmlentities($row['item_type']);
|
||||||
$item_related_id = intval($row['item_related_id']);
|
$item_related_id = intval($row['item_related_id']);
|
||||||
$item_note = nullable_htmlentities($row['item_note']);
|
$item_note = nullable_htmlentities($row['item_note']);
|
||||||
$item_recipient = nullable_htmlentities($row['item_recipient']);
|
$item_recipient = nullable_htmlentities($row['item_recipient']);
|
||||||
$item_views = nullable_htmlentities($row['item_views']);
|
$item_views = nullable_htmlentities($row['item_views']);
|
||||||
$item_view_limit = nullable_htmlentities($row['item_view_limit']);
|
$item_view_limit = nullable_htmlentities($row['item_view_limit']);
|
||||||
$item_created_at = nullable_htmlentities($row['item_created_at']);
|
$item_created_at = nullable_htmlentities($row['item_created_at']);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue