Serials: Issuance "Date Published" Should be Required Field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.5 |
Fix Released
|
Undecided
|
Unassigned | ||
2.6 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
2.6 and Master as of August 23rd 2014
Using the Serials Control View it is currently possible to create a serial issuance leaving the Date Published field blank. If this field is blank the system returns the following errors when you attempt to make predictions because it has no date to base the predictions on.
Error Message 1:
Network or server failure. Please check your Internet connection to training1.
method=
params=
THROWN:
{"payload"
STATUS:
Error Message 2:
Successfully predicted undefined item(s) for subscription # 1
Nothing is actually predicted.
My suggestion is make the Date Published field a required field so that the issuance cannot be saved without it.
tags: | added: serials |
Changed in evergreen: | |
assignee: | nobody → Jennifer Pringle (jpringle-u) |
tags: | added: signedoff |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
The quick fix is to add a "requiredFields" parameter to the issuance.tt2 autogrid as follows:
- requiredFields= "['date_ published' ,'holding_ code']"
This prevents the form from being saved until you fill in the required fields (which fixes the error message on predicting new issuances). However, it doesn't provide any indication that those fields are required, even when you try to submit an empty form. It simply does nothing until you fill in all the required fields. So I'm providing a branch with the above addition, but I will also open a bug for the necessary UI changes to make our dojo forms more usable.
Here is my branch:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ rsteed/ serial_ issuance_ required_ fields