Bug 23081: Revert "Bug 24443: Consider NULL as 0 for issues in items search"

This reverts commit 80f1374f26.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-04-27 11:51:35 +02:00 committed by Martin Renvoize
parent e116f744a0
commit abc00eb1cf
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 0 additions and 3 deletions

View File

@ -1342,9 +1342,6 @@ sub _SearchItems_build_where_fragment {
}
$column = "ExtractValue($sqlfield, '$xpath')";
}
} elsif ($field eq 'issues') {
# Consider NULL as 0 for issues count
$column = 'COALESCE(issues,0)';
} else {
$column = $field;
}