unfleshing age_protect on copy before update
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Sep 2006 13:09:25 +0000 (13:09 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Sep 2006 13:09:25 +0000 (13:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5961 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm

index 40d7fe3..df1d561 100644 (file)
@@ -794,6 +794,7 @@ sub update_copy {
        $copy->circ_lib($circ_lib->id) if $circ_lib;
        $copy->editor($self->editor->requestor->id);
        $copy->edit_date('now');
+       $copy->age_protect($copy->age_protect->id) if ref $copy->age_protect;
 
        return $self->bail_on_events($self->editor->event)
                unless $self->editor->update_asset_copy($self->copy);