From: Matt S Trout Date: Sun, 9 Jul 2006 23:50:00 +0000 (+0000) Subject: yeah, cos two hash copies in five lines is really handy and essential X-Git-Tag: v0.07002~75^2~35 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f0f574202686a5b7f79a15d0839f8cec68e8e5f;p=dbsrgits%2FDBIx-Class.git yeah, cos two hash copies in five lines is really handy and essential --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 7a405ce..56dac88 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -710,7 +710,7 @@ sub _resolved_attrs { # XXX - lose storable dclone my $record_filter = delete $attrs->{record_filter}; #$attrs = Storable::dclone($attrs || {}); # { %{ $attrs || {} } }; - $attrs = { %{ $attrs || {} } }; + $attrs->{record_filter} = $record_filter if $record_filter; $attrs->{columns} ||= delete $attrs->{cols} if exists $attrs->{cols};