RT56179: insert change_id, not change object, into audit log
Arthur Axel "fREW" Schmidt [Wed, 21 Apr 2010 21:49:22 +0000 (21:49 +0000)]
lib/DBIx/Class/Journal.pm

index 7002e5e..43ae0c7 100644 (file)
@@ -69,9 +69,9 @@ sub journal_log_update {
     if($self->in_storage) {
         my $j = $self->_journal_schema;
 
-        my $change = $j->journal_create_change;
+        my $change_id = $j->journal_create_change->id;
         my $prev = $self->result_source->resultset->find( $self->ident_condition );
-        $j->journal_record_in_history( $prev, audit_change_id => $change );
+        $j->journal_record_in_history( $prev, audit_change_id => $change_id );
     }
 }