also check entry title

This commit is contained in:
Athou
2013-04-03 13:41:30 +02:00
parent ed189c1c31
commit bb73eb18ae
2 changed files with 2 additions and 2 deletions

View File

@@ -31,6 +31,6 @@
</named-query>
<named-query name="Entry.allByKeywords">
<query>select e, s from FeedEntry e LEFT JOIN e.statuses s WITH (s.user.id=:userId) where exists (select s2 from FeedSubscription s2 where s2.user=:user and s2.feed = e.feed) and lower(e.content) like :keywords order by e.updated desc</query>
<query>select e, s from FeedEntry e LEFT JOIN e.statuses s WITH (s.user.id=:userId) where exists (select s2 from FeedSubscription s2 where s2.user=:user and s2.feed = e.feed) and (lower(e.content) like :keywords or lower(e.title) like :keywords) order by e.updated desc</query>
</named-query>
</entity-mappings>

View File

@@ -221,7 +221,7 @@ module.directive('toolbar', function($state, $stateParams, $route, $location,
};
$scope.showButtons = function() {
return !$stateParams._keywords;
}
};
$scope.toAdmin = function() {
$location.path('admin');