[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:
parent
87ef2aee7c
commit
8def2ebb0a
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue