From 15e9cb6b21625fad49a006257be7f2ec7ca80252 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Mon, 4 Apr 2011 15:14:16 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 6043: SQL error when IndependantBranches=ON on suggestion Content-Type: text/plain; charset="utf-8" On suggestion page, when IndependantBranch=ON, the SQL built is wrong: branchcode is ambiguous Signed-off-by: Katrin Fischer --- C4/Suggestions.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/Suggestions.pm b/C4/Suggestions.pm index 9cb2c18..779cc7c 100644 --- a/C4/Suggestions.pm +++ b/C4/Suggestions.pm @@ -127,7 +127,7 @@ sub SearchSuggestion { if ($userenv) { if (($userenv->{flags} % 2) != 1 && !$suggestion->{branchcode}){ push @sql_params,$$userenv{branch}; - push @query,q{ and (branchcode = ? or branchcode ='')}; + push @query,q{ and (suggestions.branchcode = ? or suggestions.branchcode ='')}; } } } -- 1.7.1