]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1745427: account for change in prediction patterns
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 20 Sep 2018 22:26:47 +0000 (18:26 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 21 Sep 2018 15:18:52 +0000 (11:18 -0400)
commit1c3b4a9fac28e1e49234837debb275a8665abb40
treed479387ac9d503d1c18597a7b9995ae917d6c560
parent437e7f826a9a36be2db65f96ad6862c9bea1094d
LP#1745427: account for change in prediction patterns

This patch fixes a bug in the web staff client where changing
the active prediction pattern for a subscription would not
reset the base issue when predicting the next run of issues.

To test
-------
1. Set up a subscription in the web staff client with a prediction
   pattern (e.g., monthly).  Predict some issues.
2. Create/select a new prediction pattern for a new publishing schedule,
   e.g., quarterly.
3. Activate the new pattern and deactivate the old pattern.
4. Click Predict New Issues.
5. Enter in the new publication date/enumerations/chronology as needed.
6. Enter a prediction count and select Save. Note that new issues
   appear to be based on the previous pattern.
7. Apply the patch, delete the issues created in step 6, then repeat
   steps 4-6.  This time, new issues should be created using the new
   prediction pattern.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/serials/services/core.js