View | Details | Raw Unified | Return to bug 30979
Collapse All | Expand All

(-)a/Koha/REST/V1/Checkouts.pm (-4 / +6 lines)
Lines 160-168 sub get_availability { Link Here
160
    my ( $impossible, $confirmation, $warnings ) =
160
    my ( $impossible, $confirmation, $warnings ) =
161
      $c->_check_availability( $patron, $item );
161
      $c->_check_availability( $patron, $item );
162
162
163
    my $confirm_keys = join( ":", sort keys %{$confirmation} );
163
    my @confirm_keys = sort keys %{$confirmation};
164
    $confirm_keys = $user ? $user->id : '' . ":" . $item->id . ":" . $confirm_keys;
164
    unshift @confirm_keys, $item->id;
165
    my $token = Koha::Token->new->generate_jwt( { id => $confirm_keys } );
165
    unshift @confirm_keys, $user->id
166
      if $user;
167
168
    my $token = Koha::Token->new->generate_jwt( { id => join( ':', @confirm_keys ) } );
166
169
167
    my $response = {
170
    my $response = {
168
        blockers           => $impossible,
171
        blockers           => $impossible,
169
- 

Return to bug 30979