Showing 2 changed files with 1 additions and 2 deletions
-1
Changes
... ...
@@ -1,5 +1,4 @@
1 1
 0.1728
2
-    
3 2
     - added {key => ..., value => ...} syntax to DBIx::Custom::Mapper map method
4 3
       ,and argument of string and code reference is DEPRECATED!
5 4
     - update_param is DEPRECATED, use assing_clause instead.
+1 -1
lib/DBIx/Custom/Mapper.pm
... ...
@@ -34,7 +34,7 @@ sub map {
34 34
         if (ref $mapping eq 'ARRAY') {
35 35
             $new_key = $mapping->[0];
36 36
             $value = $mapping->[1];
37
-            $condition = $mapping->[2];
37
+            $condition = ref $mapping->[2] eq 'HASH' ? $mapping->[2]->{condition} : $mapping->[2];
38 38
         }
39 39
         elsif (ref $mapping eq 'HASH') {
40 40
             $new_key = $mapping->{key};