Bug 9184: Acq - Don't show authority batches when ordering from staged file
When ordering from a staged file, the list of files should only include imports of bilbiographic and no authority data. To test - start without the patch: 1) Stage an authority file 2) Stage a bilbiographic file 3) Create a new basked in acquisitions 4) Create a new order line selecting "From a staged file" 5) Verify that both files are shown 6) Apply patch 7) Verify that only the bibliographc file shows in the list now Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as advertised Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> (cherry picked from commit169015af94) Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> (cherry picked from commit0fba468262) Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
800c2df2e3
commit
53eef72a20
|
|
@ -329,7 +329,7 @@ sub import_batches_list {
|
|||
|
||||
my @list = ();
|
||||
foreach my $batch (@$batches) {
|
||||
if ( $batch->{'import_status'} =~ /^staged$|^reverted$/ ) {
|
||||
if ( $batch->{'import_status'} =~ /^staged$|^reverted$/ && $batch->{'record_type'} eq 'biblio') {
|
||||
# check if there is at least 1 line still staged
|
||||
my $stagedList=GetImportRecordsRange($batch->{'import_batch_id'}, undef, 1, $batch->{import_status}, { order_by_direction => 'ASC' });
|
||||
if (scalar @$stagedList) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue