From: Matt S Trout Date: Sat, 19 May 2007 15:05:13 +0000 (+0000) Subject: result_source must be passed to new_result X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=511dfcecba1bbc6984b6b106de8911a43472a411;hp=2bc2ddc7025ff7123e2a31f367c608ae68e104b6;p=dbsrgits%2FDBIx-Class-Historic.git result_source must be passed to new_result --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 39ca196..58a411a 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -1311,7 +1311,8 @@ sub new_result { my %new = ( %{ $self->_remove_alias($values, $alias) }, %{ $self->_remove_alias($collapsed_cond, $alias) }, - -source_handle => $self->_source_handle + -source_handle => $self->_source_handle, + -result_source => $self->result_source, # DO NOT REMOVE THIS, REQUIRED ); return $self->result_class->new(\%new);