From: erickson Date: Thu, 31 Aug 2006 19:52:06 +0000 (+0000) Subject: ignoring all stat cat updates if the copy is deleted X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4ea297abb6958632c0aeccbea96d3ad662183d8b;p=evergreen%2Fpines.git ignoring all stat cat updates if the copy is deleted git-svn-id: svn://svn.open-ils.org/ILS/trunk@5812 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 42b80d15b1..adcd295483 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm @@ -1148,6 +1148,8 @@ sub create_copy { sub update_copy_stat_entries { my( $editor, $copy, $delete_stats ) = @_; + return undef if $copy->isdeleted; + my $evt; my $entries = $copy->stat_cat_entries; @@ -1174,8 +1176,6 @@ sub update_copy_stat_entries { } } - return undef if $copy->isdeleted; - # go through the stat cat update/create process for my $entry (@$entries) { next unless $entry;