@@ -, +, @@
- Before applying the patch view the ILL requests table
- TEST: Observe that the Request number column displays as NaN
- Apply the patch
- Refresh the page
- TEST: Observe that the request number now displays correctly
- Add the following block to your koha-conf.xml:
**The code of a branch that has an ILL request attached to
it**
YAY
- Refresh the page
- TEST: Observe the request made on the branch that you specified in the
---
Koha/Illrequest.pm | 1 -
Koha/REST/V1/Illrequests.pm | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
--- a/Koha/Illrequest.pm
+++ a/Koha/Illrequest.pm
@@ -1018,7 +1018,6 @@ sub TO_JSON {
my ( $self, $embed ) = @_;
my $object = $self->SUPER::TO_JSON();
- $object->{id_prefix} = $self->id_prefix;
return $object;
}
--- a/Koha/REST/V1/Illrequests.pm
+++ a/Koha/REST/V1/Illrequests.pm
@@ -107,6 +107,7 @@ sub list {
my @output = ();
foreach my $req(@requests) {
my $to_push = $req->unblessed;
+ $to_push->{id_prefix} = $req->id_prefix;
foreach my $p(@{$patron_arr}) {
if ($p->{borrowernumber} == $req->borrowernumber) {
$to_push->{patron} = {
--