[Koha-bugs] [Bug 29906] When changing hold parameters over API (PUT) it forcibly gets to "suspended" state

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 20 16:08:05 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29906

--- Comment #15 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Comment on attachment 129663
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129663
Bug 29906: fix when hold record forcibly gets unwanted "suspended" state

Review of attachment 129663:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=29906&attachment=129663)
-----------------------------------------------------------------

::: Koha/REST/V1/Holds.pm
@@ +282,4 @@
>          # suspended_until can also be set to undef
>          my $suspended_until =
>            exists $body->{suspended_until}
> +          ? $body->{suspended_until} && dt_from_string( $body->{suspended_until}, 'rfc3339' )

I don't think we need this line changed.. just the second one.

At least.. it's the second line your test is testing and as Jonathan has
highlighted, it appears you can't unset the suspension by just passing 'null'
to suspend_until at the moment.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list