From 98d70d0a65c4121d8b5558e0476fb9367a10d7e9 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Wed, 24 Jul 2013 16:54:05 +0200 Subject: [PATCH 2/2] Bug 10449 - Count suggestions without branch also --- C4/Suggestions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Suggestions.pm b/C4/Suggestions.pm index 3c31867..80c0a2d 100644 --- a/C4/Suggestions.pm +++ b/C4/Suggestions.pm @@ -410,7 +410,7 @@ sub CountSuggestion { }; my @params = ($status); unless ($userenv->{branch} eq 'NO_LIBRARY_SET') { - $query .= q{ AND branchcode=? }; + $query .= q{ AND (branchcode='' OR branchcode=?) }; push @params, $userenv->{branch}; } $sth = $dbh->prepare($query); -- 1.7.10.4