Bug 37856: Consider absence of 'Report_Items'
The SUSHI provider in question for this patchset also does not return any Report_Items entry. This patch accounts for that. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commit72b38a1dbf) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit730ca49e06) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
18d8d0effd
commit
c03e2ff206
|
|
@ -488,7 +488,7 @@ sub _sushi_errors {
|
|||
return 1;
|
||||
}
|
||||
|
||||
if ( scalar @{ $decoded_response->{Report_Items} } == 0 ) {
|
||||
if ( $decoded_response->{Report_Items} && scalar @{ $decoded_response->{Report_Items} } == 0 ) {
|
||||
$self->{job_callbacks}->{add_message_callback}->(
|
||||
{
|
||||
type => 'error',
|
||||
|
|
|
|||
Loading…
Reference in New Issue