From 79f9e0d2888f4946cac8830851409b164e46a334 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 19 Dec 2014 10:53:23 -0500 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/vandelay/vandelay.js | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.11.0