Bug 28909: Fix handling if backend doesn't support

If a backend hasn't been updated to support this functionality, we need
to handle that gracefully

Also, this commit fixes some indentation.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Andrew Isherwood 2021-08-31 10:06:03 +01:00 committed by Tomas Cohen Arazi
parent 80e179edd7
commit 4e516da529
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 5 additions and 3 deletions

View file

@ -722,9 +722,9 @@ sub backend_illview {
my ( $self, $params ) = @_;
my $response = $self->_backend_capability('illview',{
request => $self,
other => $params,
});
request => $self,
other => $params,
});
return $self->expandTemplate($response) if $response;
return $response;
}

View file

@ -484,7 +484,9 @@
</div>
[% ELSIF query_type == 'illview' %]
[% IF whole.template.length > 0 %]
[% PROCESS $whole.template %]
[% END %]
[% req_status = request.status %]
[% IF error %]