[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch rel_2_5 updated. 6297e1441f8b8f9082e7040fe122393c1b2801dd

Evergreen Git git at git.evergreen-ils.org
Wed Aug 27 00:33:47 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, rel_2_5 has been updated
       via  6297e1441f8b8f9082e7040fe122393c1b2801dd (commit)
      from  d25029ef179856810b79fd4bafc971ae27f1376d (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 6297e1441f8b8f9082e7040fe122393c1b2801dd
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 27f5870..d7b8c3a 100644
--- a/Open-ILS/xul/staff_client/server/cat/marcedit.js
+++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js
@@ -1064,7 +1064,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