Prevent hold activation date being a date in the past

Bug #985957 reported by Jennifer Pringle
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned

Bug Description

Evergreen 2.0.10
OpenSRF 2.0.1
Postgress 8.4
OS: Ubu Lucid

When a patron suspends a hold in the OPAC they are able to enter a date that has already passed as the activation date. The system accepts this date and never activates the hold. The hold can only be activated manually by either the patron or a staff member.

This behaviour of allowing a past date is present in the TPac for 2.2 as well.

The staff client recognizes past dates and does not allow staff to set a past date.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

I am removing the "opac" tag because this will not be fixed in JSPAC at this point. It is still a valid issue for tpac and possibly kpac as well. (I've not looked at kpac, yet.)

tags: removed: opac
Revision history for this message
Jason Stephenson (jstephenson) wrote :

I plan to roll the fix for this into my fix for https://bugs.launchpad.net/evergreen/+bug/1076399 .

Should we mark this as a duplicate? I don't see much of a way to link bugs other than that.

Changed in evergreen:
assignee: nobody → Jason Stephenson (jstephenson)
milestone: none → 2.4.0-alpha
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Not going to do this one at this time. It is a tad more complicated than messing with expiration dates, since we'll likely need to interact with the user.

Changed in evergreen:
assignee: Jason Stephenson (jstephenson) → nobody
Changed in evergreen:
status: New → Confirmed
importance: Undecided → Low
importance: Low → Wishlist
importance: Wishlist → Low
importance: Low → Wishlist
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-alpha1 → 2.4.0-beta
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-beta → 2.4.0-rc
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-rc → 2.5.0-alpha
Dan Wells (dbw2)
Changed in evergreen:
milestone: 2.5.0-m1 → none
Revision history for this message
Garry Collum (gcollum) wrote :

This behavior is still true in TPac 3.0.7 and current master. The webclient also allows staff to input past activation dates.

tags: added: webstaffclient
Revision history for this message
Jennifer Pringle (jpringle-u) wrote :

Confirming this is still an issue in 3.1.7

Revision history for this message
Terran McCanna (tmccanna) wrote :

Confirmed still an issue in 3.2.3

tags: added: opac
removed: tpac
Revision history for this message
Suzanne Paterno (paterno) wrote :

The OPAC also allows values that are not dates or even numbers. Dates that are not valid dates (outside the range of months, days or years) area also accepted.

Revision history for this message
Suzanne Paterno (paterno) wrote :

I wrote a new Javascript function to holds_validation.js to check that the date entered is a valid date in the future. Will post fix shortly.

Revision history for this message
Suzanne Paterno (paterno) wrote :
tags: added: pullrequest
Michele Morgan (mmorgan)
Changed in evergreen:
milestone: none → 3.3.4
milestone: 3.3.4 → 3.4-beta1
Galen Charlton (gmc)
Changed in evergreen:
importance: Wishlist → Medium
Galen Charlton (gmc)
Changed in evergreen:
milestone: 3.4-beta1 → 3.4-beta2
Galen Charlton (gmc)
Changed in evergreen:
milestone: 3.4-beta2 → 3.4.1
Revision history for this message
Jason Etheridge (phasefx) wrote :

Suzanne, I squashed your two commits into one, added my signoff, and pushed it to collab/phasefx/lp985957 @ working/Evergreen.git

Could you add your signoff? Also, one other suggested tweak, disallow today's date as well as past dates, though I'd be happy pushing it in as is.

Thanks!

Revision history for this message
Suzanne Paterno (paterno) wrote :

I have tested this code and consent to signing off on it with my name, Suzanne Paterno, and my email address, <email address hidden>.

tags: added: signedoff
Changed in evergreen:
assignee: nobody → Jason Etheridge (phasefx)
Revision history for this message
Jason Etheridge (phasefx) wrote :

Thanks! Pushed to master.

Changed in evergreen:
assignee: Jason Etheridge (phasefx) → nobody
tags: removed: pullrequest signedoff
Changed in evergreen:
status: Confirmed → Fix Committed
tags: added: signedoff
Remington Steed (rjs7)
Changed in evergreen:
milestone: 3.4.1 → 3.5-alpha
Revision history for this message
Jennifer Pringle (jpringle-u) wrote :

I tested this on our server running 3.5.0 and I can still enter and save an activation date that falls in the past.

Changed in evergreen:
status: Fix Committed → Fix Released
Revision history for this message
Galen Charlton (gmc) wrote :

I've opened bug 1888554 based on Jennifer's report. The patch for this bug only affects the hold placement form, not the hold editing form.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.