[3.0.x](bug #4930) fix inventory

this delete duplicate code that generate an error in a sql query and can't work when "pass on loan items" is checked.

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Nahuel ANGELINETTI 2010-07-02 14:23:48 +02:00 committed by Henri-Damien LAURENT
parent 87ef2aee7c
commit 8def2ebb0a
1 changed files with 0 additions and 5 deletions

View File

@ -1080,11 +1080,6 @@ END_SQL
push @where_strings, 'issues.date_due IS NULL';
}
if ( $ignoreissued) {
$query .= "LEFT JOIN issues ON items.itemnumber = issues.itemnumber ";
push @where_strings, 'issues.date_due IS NULL';
}
if ( @where_strings ) {
$query .= 'WHERE ';
$query .= join ' AND ', @where_strings;