]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1491875: avoid erroneous "unsaved data" popup during MARC record creation
authorJason Etheridge <jason@esilibrary.com>
Wed, 26 Apr 2017 21:23:26 +0000 (17:23 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 19 May 2017 00:30:25 +0000 (20:30 -0400)
commit7f8b9d297f8ccbf033e905d1716953ce78f81605
tree7a2d98339f2ba261d45294dcadc3a3bc52825ba1
parentc07401c3c2f727b2165dd37dfe7f183b32f7a3c1
LP#1491875: avoid erroneous "unsaved data" popup during MARC record creation

Test plan
---------
[1] Navigate to Cataloging -> Create New MARC Record.
[2] Choose a template, click Load
[3] Enter data in a fixed field, for example, Date1
[4] Enter data in a MARC field such as 100
[5] Click Create Record:

    The "This tab may have unsaved data. ..." pop up will appear.
    Clicking OK will save the record and take the user to their default
    view of the record.
    Clicking Cancel will save the record and return the user to the MARC
    Edit screen.
    The behavior when clicking Cancel can lead to confusion as to
    whether the record has actually been saved.

[6] Apply the patch and repeats steps #1-#5.
[7] This time, no extraneous unsaved data warning should appear.

Note that this patch's kludge doesn't fix all possible instances
of the warning; see https://bugs.launchpad.net/evergreen/+bug/1491875/comments/6
for details.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
SIgned-off-by: Andrea Neiman <abneiman@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/xul/staff_client/server/cat/marcedit.js