LP#1730470 Restore XUL serial receive compatibility
authorDan Wells <dbw2@calvin.edu>
Wed, 27 Dec 2017 13:36:23 +0000 (08:36 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 14 Feb 2018 18:17:46 +0000 (13:17 -0500)
commitdad5479f20dfb7a9e6eb3389013b6201cc5ccc17
treefe0fba797ad1dc53ed3b7068b504048030c9789c
parentf60206801b8d5eb2f204ebe334bd25592db3a18e
LP#1730470 Restore XUL serial receive compatibility

The older XUL interface does not have quite the same fleshing as the
new web-staff, so adding the 'move previous' code into the unitize
function breaks the old interface.

Since we already are looking up the distribution to get the setting,
let's just tack it on when it is missing.

To test
-------
[1] Set up a serial subscription with predicted issuances, then from
    the XUL serials control view attempt to receive an issue. Note
    that there will be a crash.
[2] Apply the patch and repeat step #1; this time, the issuance
    receive should work.
[3] Verify that receiving issues via the web staff interface continues
    to work.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm