[Bast-commits] r6265 - in
DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk:
lib/DBIx/Class/ResultSet t/var
zby at dev.catalyst.perl.org
zby at dev.catalyst.perl.org
Thu May 14 14:55:06 GMT 2009
Author: zby
Date: 2009-05-14 14:55:06 +0000 (Thu, 14 May 2009)
New Revision: 6265
Modified:
DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm
DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/t/var/dvdzbr.db
Log:
accepting undef instead of [] for m2m
Modified: DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm
===================================================================
--- DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm 2009-05-14 13:48:40 UTC (rev 6264)
+++ DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm 2009-05-14 14:55:06 UTC (rev 6265)
@@ -117,11 +117,14 @@
my @rows;
my $result_source = $object->$name->result_source;
my @updates;
- if( ref $updates->{$name} ){
- @updates = @{ $updates->{$name} };
+ if( ! defined $value ){
+ next;
}
+ elsif( ref $value ){
+ @updates = @{ $value };
+ }
else{
- @updates = ( $updates->{$name} );
+ @updates = ( $value );
}
for my $elem ( @updates ) {
if ( ref $elem ) {
Modified: DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/t/var/dvdzbr.db
===================================================================
(Binary files differ)
More information about the Bast-commits
mailing list