From: erickson Date: Thu, 21 Sep 2006 13:41:06 +0000 (+0000) Subject: un-fleshing age_protect object on copy update to prevent update failure X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=95ee62ebae189f602500ccb39f68076c62ed1bc7;p=Evergreen.git un-fleshing age_protect object on copy update to prevent update failure git-svn-id: svn://svn.open-ils.org/ILS/trunk@6174 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm b/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm index fce55b42bb..c9f1ba5e27 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm @@ -1049,6 +1049,9 @@ sub update_copy { $copy->editor($editor->requestor->id); $copy->edit_date('now'); + $copy->age_protect( $copy->age_protect->id ) + if ref $copy->age_protect; + fix_copy_price($copy); return $editor->event unless $editor->update_asset_copy(