Merge branch 'bug_7919' into 3.12-master
This commit is contained in:
commit
c27a981856
2 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ sub all {
|
|||
my $dbh = C4::Context->dbh;
|
||||
# The categories table is small enough for
|
||||
# `SELECT *` to be harmless.
|
||||
my $query = "SELECT * FROM categories";
|
||||
my $query = "SELECT categories.* FROM categories";
|
||||
$query .= qq{
|
||||
LEFT JOIN categories_branches ON categories_branches.categorycode = categories.categorycode
|
||||
WHERE categories_branches.branchcode = ? OR categories_branches.branchcode IS NULL
|
||||
|
|
|
@ -1491,7 +1491,7 @@ sub GetBorrowercategoryList {
|
|||
? 0
|
||||
: C4::Context->userenv ? C4::Context->userenv->{"branch"} : "";
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $query = "SELECT * FROM categories";
|
||||
my $query = "SELECT categories.* FROM categories";
|
||||
$query .= qq{
|
||||
LEFT JOIN categories_branches ON categories.categorycode = categories_branches.categorycode
|
||||
WHERE branchcode = ? OR branchcode IS NULL GROUP BY description
|
||||
|
|
Loading…
Reference in a new issue