Bug 19454: (QA follow-up) Fix selection on categorycode
A follow-up on a preceding report introduced a join instead of a subquery. This made the categorycode ambiguous. Test plan: See former patches. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
906c9166a7
commit
5855b01543
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ WHERE bo.dateenrolled >= ?|;
|
|||
if( $no_overwrite ) {
|
||||
$sql .= " AND mp.borrowernumber IS NULL";
|
||||
}
|
||||
$sql .= " AND categorycode = ?" if $category;
|
||||
$sql .= " AND bo.categorycode = ?" if $category;
|
||||
my $sth = $dbh->prepare($sql);
|
||||
$sth->execute($since, $category || () );
|
||||
my $cnt = 0;
|
||||
|
|
Loading…
Reference in a new issue