Fix guest invoice caused issues with the alert Query on certain client names, will need reworking and testing in other areas of the code as well

This commit is contained in:
johnnyq
2022-01-28 20:38:48 -05:00
parent 21a0feb625
commit dd9fcd57d2
4 changed files with 18 additions and 13 deletions

View File

@@ -217,7 +217,11 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
}
$client_tag_id_array[] = $client_tag_id;
$client_tag_name_display_array[] = "<span class='badge bg-$client_tag_color'><i class='fa fa-fw fa-$client_tag_icon'></i> $client_tag_name</span> ";
if(empty($client_tag_color)){
$client_tag_name_display_array[] = "<small class='text-secondary'>$client_tag_name</small> ";
}else{
$client_tag_name_display_array[] = "<span class='badge bg-$client_tag_color'><i class='fa fa-fw fa-$client_tag_icon'></i> $client_tag_name</span> ";
}
}
$client_tags_display = implode('', $client_tag_name_display_array);