From: Arthur Axel "fREW" Schmidt Date: Wed, 21 Apr 2010 21:49:22 +0000 (+0000) Subject: RT56179: insert change_id, not change object, into audit log X-Git-Tag: v0.900201~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e0a0e1929b85710266f8ddaaadbbaea81b50bf2a;p=dbsrgits%2FDBIx-Class-Journal.git RT56179: insert change_id, not change object, into audit log --- diff --git a/lib/DBIx/Class/Journal.pm b/lib/DBIx/Class/Journal.pm index 7002e5e..43ae0c7 100644 --- a/lib/DBIx/Class/Journal.pm +++ b/lib/DBIx/Class/Journal.pm @@ -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 ); } }