LP#1730470 Restore XUL serial receive compatibility
authorDan Wells <dbw2@calvin.edu>
Wed, 27 Dec 2017 13:36:23 +0000 (08:36 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 11 Jan 2018 19:14:54 +0000 (14:14 -0500)
commitd90f69feb04cb1ebf345a2f7457d2a4886cdf9e6
treefe0fba797ad1dc53ed3b7068b504048030c9789c
parentce4b51e6d9472036fef6169432934bffa97c71c5
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