LP#1171984 vandelay authority rec attr create repair
authorBill Erickson <berickxx@gmail.com>
Fri, 19 Dec 2014 15:53:23 +0000 (10:53 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 18 Feb 2015 20:21:49 +0000 (15:21 -0500)
After selecting a bib attribute to view then attempting to create an
authority record attribute, the editor would get confused and think it
was trying to update an existing attribute.  This clears the "we are
editing attr X" flag so create will create instead of update.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/vandelay/vandelay.js

index ba6c9bb..64bef54 100644 (file)
@@ -1782,6 +1782,10 @@ function onAttrEditorOpen() {
        dijit.byId('attr-editor-dialog').reset();
        create_bar.style.display='table-row';
        update_bar.style.display='none';
+
+        // clear the currently-editing attribute ID, 
+        // since we're creating a new attribute.
+        ATTR_EDIT_ID = null;
     }
 }