[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 7b30260fa461f642ac790943884fa17419c50a18

Evergreen Git git at git.evergreen-ils.org
Thu Aug 4 17:48:03 EDT 2011


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_0 has been updated
       via  7b30260fa461f642ac790943884fa17419c50a18 (commit)
      from  f167eedc06b11f6c4813b723e4e6deb966486725 (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 7b30260fa461f642ac790943884fa17419c50a18
Author: Bill Erickson <berick at esilibrary.com>
Date:   Thu Aug 4 16:54:45 2011 -0400

    Repaired copy private/public note vandelay bug
    
    Previously, all copy notes imported through vandelay were coming in as
    public copy notes.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Cat/AssetCommon.pm b/Open-ILS/src/perlmods/OpenILS/Application/Cat/AssetCommon.pm
index b2dffc5..e469d87 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Cat/AssetCommon.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Cat/AssetCommon.pm
@@ -388,7 +388,7 @@ sub create_copy_note {
     my $note = Fieldmapper::asset::copy_note->new;
     $note->owning_copy($copy->id);
     $note->creator($e->requestor->id);
-    $note->pub('t');
+    $note->pub($pub ? 't' : 'f');
     $note->value($value);
     $note->title($title);
     $e->create_asset_copy_note($note) or return $e->die_event;
diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
index d177022..9c496c1 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
@@ -1080,7 +1080,7 @@ sub import_record_asset_list_impl {
             }
 
             $evt = OpenILS::Application::Cat::AssetCommon->create_copy_note(
-                $e, $copy, '', $item->priv_note, 1) if $item->priv_note;
+                $e, $copy, '', $item->priv_note) if $item->priv_note;
 
             if($evt) {
                 respond_with_status($conn, $total, $try_count, $in_count, $evt);

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

Summary of changes:
 .../OpenILS/Application/Cat/AssetCommon.pm         |    2 +-
 .../src/perlmods/OpenILS/Application/Vandelay.pm   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list