[open-ils-commits] [GIT] Evergreen ILS branch master updated. aeaa63cf14da616358ef1f15da478491328ed873

Evergreen Git git at git.evergreen-ils.org
Thu Aug 4 17:46:38 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, master has been updated
       via  aeaa63cf14da616358ef1f15da478491328ed873 (commit)
      from  7adaf791e10d6d5af28389104723e098547f85d8 (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 aeaa63cf14da616358ef1f15da478491328ed873
Author: Bill Erickson <berick at esilibrary.com>
Date:   Thu Aug 4 16:46:54 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/lib/OpenILS/Application/Cat/AssetCommon.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
index 11ecdfc..626a9a1 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
@@ -523,7 +523,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/lib/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
index c2811d1..78c6f38 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
@@ -1543,7 +1543,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) {
                 $$report_args{evt} = $evt;

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

Summary of changes:
 .../lib/OpenILS/Application/Cat/AssetCommon.pm     |    2 +-
 .../perlmods/lib/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