[Koha-bugs] [Bug 26498] Add option to set a default expire date for holds at reservation time

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 11 10:54:30 CET 2020


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

Emmi Takkinen <emmi.takkinen at koha-suomi.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |ASSIGNED

--- Comment #6 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
 (In reply to Andrew Isherwood from comment #5)
> Hi Emmi
> 
> I tried to sign this off but ran into a few problems, sorry!
> 
> 1. prove -v t/db_dependent/Hold.t fails with:
> t/db_dependent/Hold.t .. 1/34 found extra parameters: []# Looks like your
> test exited with 2 just after 1.
> t/db_dependent/Hold.t .. Dubious, test returned 2 (wstat 512, 0x200)
> Failed 33/34 subtests 
> 
> Test Summary Report
> -------------------
> t/db_dependent/Hold.t (Wstat: 512 Tests: 1 Failed: 0)
>   Non-zero exit status: 2
>   Parse errors: Bad plan.  You planned 34 tests but ran 1.
> Files=1, Tests=1,  4 wallclock secs ( 0.04 usr  0.01 sys +  3.28 cusr  0.42
> csys =  3.75 CPU)
> Result: FAIL
> 
> 2. In your test plan, you say "Holds expiration date should be set according
> your settings", this doesn't appear to be happening. The expiry date is not
> being populated according to the value in the
> DefaultHoldExpirationdatePeriod syspref. Maybe I'm misunderstanding the test
> plan? You can see what I mean here: https://nimb.ws/Sw048R
> 
> 3. In the video I manually selected a date and the hold was created,
> however, if I leave the date selection blank I receive an error page (the
> relevant part of which is here https://nimb.ws/pWzZNO), I note the error is
> the same as the one in the failing test.
> 
> Sorry to report bad news!

Hi Andrew and thanks for your feedback.

1. There is something wrong with the tests but mine fail for other reason(s):
"attempting to use non-existent class sorting routine CIG" followed by bunch of
"Use of uninitialized value $cn_class in concatenation", then fail to insert
into special_holidays and lastly "The method age is not covered by tests!". But
they fail also on master.  

2. I should have been more clear with my test plan, sorry! These sysprefs have
effect only if expiration date is left blank. As Fiona above said: "A member of
staff or a user can manually enter an expiry date when placing the hold but if
they do not, then the expiry date is blank which means that the hold never
expires."         

3. Hmm, I'm unable to repeat this. I'll set this back to assigned and see if I
can figure this out.

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


More information about the Koha-bugs mailing list