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

Commit

Permalink
Fix events when filtering by URL
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 17, 2016
1 parent b117ba4 commit 362f7f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/feed.sql/class.AJXP_SqlFeedStore.php
Expand Up @@ -126,7 +126,7 @@ public function loadEvents($filterByRepositories, $filterByPath, $userGroup, $of
if(count($masks)){
$pathesOr = array();
foreach($masks as $mask){
$filterLike = "://".$repoId.rtrim($mask, "/") . "/";
$filterLike = "://%@".$repoId.rtrim($mask, "/") . "/";
$pathesOr[] = array("[index_path] LIKE %~like~", $filterLike);
}
if(count($pathesOr)){
Expand All @@ -153,7 +153,7 @@ public function loadEvents($filterByRepositories, $filterByPath, $userGroup, $of
if($filterByPath[strlen($filterByPath)-1]=='/'){
//$groupByClause = " GROUP BY [index_path] ";
}
$index_path = "%://".$filterByRepositories[0].$filterByPath."%";
$index_path = "%://%@".$filterByRepositories[0].$filterByPath."%";
$res = dibi::query("SELECT * FROM [ajxp_feed] WHERE [etype] = %s
AND
( %or )
Expand Down

0 comments on commit 362f7f8

Please sign in to comment.