From: Bill Erickson Date: Fri, 19 Dec 2014 15:53:23 +0000 (-0500) Subject: LP#1171984 vandelay authority rec attr create repair X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fbaa6bbef84e80a9ad68ebc9d326a0d9c2a2f820;p=Evergreen.git LP#1171984 vandelay authority rec attr create repair 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 Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js index ba6c9bbd54..64bef5478e 100644 --- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js +++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js @@ -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; } }