mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user