From edca0430a3c442627c6c771a774a0e3fc34dee99 Mon Sep 17 00:00:00 2001 From: Alexander Hartmaier Date: Mon, 4 Oct 2010 17:43:13 +0200 Subject: [PATCH] simplification --- lib/DBIx/Class/ResultSet/RecursiveUpdate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm index dcf3707..2f50ee1 100644 --- a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm +++ b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm @@ -307,7 +307,7 @@ sub _update_relation { ); } } - elsif ( !ref $updates ) { + else { $sub_object = $related_resultset->find($updates) unless ( !$updates -- 2.45.2