When clicking on a notificaiton on the dropdown instead of dismissing it takes you to the client page if specified otherwise its an empty click, updated some entity_id for notifications in cron.php

This commit is contained in:
johnnyq
2023-03-18 15:36:19 -04:00
parent a9c90a0c6a
commit d05aa0b829
4 changed files with 12 additions and 6 deletions

View File

@@ -55,9 +55,15 @@
$notification_type = htmlentities($row['notification_type']);
$notification = htmlentities($row['notification']);
$notification_timestamp = date('M d g:ia',strtotime($row['notification_timestamp']));
$notification_client_id = intval($row['notification_client_id']);
if($notification_client_id > 0){
$notification_link = "client_overview.php?client_id=$notification_client_id";
} else {
$notification_link = "#";
}
?>
<a href="post.php?dismiss_notification=<?php echo $notification_id; ?>" class="dropdown-item">
<a href="<?php echo $notification_link; ?>" class="dropdown-item">
<p class="mb-1">
<span class="text-bold"><i class="fas fa-bullhorn mr-2"></i><?php echo $notification_type; ?></span>
<small class="float-right text-muted"><?php echo $notification_timestamp; ?></small>