[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. dcc5475a0328da91ec7a006cd130b51422da3491

Evergreen Git git at git.evergreen-ils.org
Wed Aug 27 00:33:39 EDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  dcc5475a0328da91ec7a006cd130b51422da3491 (commit)
      from  085ab000eab2834b5a6905ce3f7d768ab5279406 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dcc5475a0328da91ec7a006cd130b51422da3491
Author: Blake Henderson <blake at mobiusconsortium.org>
Date:   Tue Jul 1 17:06:30 2014 -0500

    LP1277556 Fast Item Add no longer opens record after copy is created
    
    Altered save_attempt to handle undefined and true cases for replace_on_complete
    When fastItemAdd is not used, replace_on_complete is undefined
    When it is used, and successful, replace_on_complete will be set to true
    then we need it to execute result.on_complete()
    
    Signed-off-by: Blake Henderson <blake at mobiusconsortium.org>
    Signed-off-by: Remington Steed <rjs7 at calvin.edu>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js
index 8359afc..b404510 100644
--- a/Open-ILS/xul/staff_client/server/cat/marcedit.js
+++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js
@@ -1228,7 +1228,10 @@ function save_attempt(xml_string) {
             if (result.id) {
                 replace_on_complete = fastItemAdd_attempt(result.id);
             }
-            if (!replace_on_complete && typeof result.on_complete == 'function') {
+	// When fastItemAdd is not used, replace_on_complete is undefined
+	// When it is used, and successful, replace_on_complete will be set to true 
+	// then we need it to execute on_complete()
+            if ((replace_on_complete==undefined || replace_on_complete ) && typeof result.on_complete == 'function') {
                 result.on_complete();
             }
         }

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/xul/staff_client/server/cat/marcedit.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list