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

Commit

Permalink
Fix load users' feed
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Jun 21, 2016
1 parent 29aad73 commit 208838a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/plugins/feed.sql/class.AJXP_SqlFeedStore.php
Expand Up @@ -142,12 +142,13 @@ public function loadEvents($filterByRepositories, $filterByPath, $userGroup, $of
if($filterByPath[strlen($filterByPath)-1]=='/'){
//$groupByClause = " GROUP BY [index_path] ";
}
$index_path = "%://".$filterByRepositories[0].$filterByPath."%";
$index_path[] = array("[index_path] LIKE %s","%://".$filterByRepositories[0].$filterByPath."%");
$index_path[] = array("[index_path] LIKE %s","%://".$userId."@".$filterByRepositories[0].$filterByPath."%");
$res = dibi::query("SELECT * FROM [ajxp_feed] WHERE [etype] = %s
AND
( %or )
AND
([index_path] LIKE %s)
( %or )
AND (
[repository_scope] = 'ALL'
OR ([repository_scope] = 'USER' AND [user_id] = %s )
Expand Down

0 comments on commit 208838a

Please sign in to comment.