making sure a copy is supposed to be updated (ischanged, isnew) before
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 10 Oct 2006 14:13:25 +0000 (14:13 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 10 Oct 2006 14:13:25 +0000 (14:13 +0000)
editing any stat cats

git-svn-id: svn://svn.open-ils.org/ILS/trunk@6429 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Cat.pm

index 3523fea..4404f37 100644 (file)
@@ -1148,6 +1148,7 @@ sub update_copy_stat_entries {
        my( $editor, $copy, $delete_stats ) = @_;
 
        return undef if $copy->isdeleted;
+       return undef unless $copy->ischanged or $copy->isnew;
 
        my $evt;
        my $entries = $copy->stat_cat_entries;