Bug 10072 - "my suggestions" always says "There are no pending purchase suggestions."
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 17 Apr 2013 18:07:55 +0000 (14:07 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 20 Apr 2013 03:16:56 +0000 (23:16 -0400)
Test Plan:
1) Switch off the IndependantBranches syspref
2) Log into the OPAC
3) Place a suggestions
4) Instead of seeing your suggestion, you will see "There are no pending
   purchase suggestions."
5) Apply this patch
6) Reload the page
7) You should now see your suggestions

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Suggestions.pm

index 131f117..c55968a 100644 (file)
@@ -149,10 +149,6 @@ sub SearchSuggestion {
                 push @sql_params, $suggestion->{branchcode};
                 push @query,      qq{ AND suggestions.branchcode=? };
             }
-        } else {
-            push @query, qq{
-                AND (suggestions.branchcode='' OR suggestions.branchcode IS NULL)
-            };
         }
     }