Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix non-deleting alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Feb 2, 2017
1 parent c1ecabe commit 7decbd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/plugins/feed.sql/SqlFeedStore.php
Expand Up @@ -305,6 +305,9 @@ public function dismissAlertById(ContextInterface $contextInterface, $alertId, $
return;
}
$url = $startEventNotif->getNode()->getUrl();
if($url !== $startEventRow->index_path){
$url = $startEventRow->index_path;
}
$date = $startEventRow->edate;
$newRes = dibi::query("SELECT [id] FROM [ajxp_feed] WHERE [etype] = %s AND ([user_id] = %s OR [user_group] = %s) AND [edate] <= %s AND [index_path] = %s ORDER BY [edate] DESC %lmt", "alert", $userId, $userGroup, $date, $url, $occurrences);
$a = $newRes->fetchPairs();
Expand Down

0 comments on commit 7decbd2

Please sign in to comment.