X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FHelper%2FLinkedRecords.pm;fp=SL%2FDB%2FHelper%2FLinkedRecords.pm;h=2ed5d20363a4354487f379ae6bf856ec63c941c2;hb=0ff17226240249b036073f696ecc6e15017f98be;hp=c7de25b743c66a5454954db8e063054fb58578a7;hpb=a8cba95a2844190deb3efd99ba37294981981234;p=kivitendo-erp.git diff --git a/SL/DB/Helper/LinkedRecords.pm b/SL/DB/Helper/LinkedRecords.pm index c7de25b74..2ed5d2036 100644 --- a/SL/DB/Helper/LinkedRecords.pm +++ b/SL/DB/Helper/LinkedRecords.pm @@ -85,7 +85,12 @@ sub _linked_records_implementation { $_->{_record_link_direction} = $wanted; $_->{_record_link} = $link; $_ - } @{ $manager_class->get_all(query => [ id => $link->$sub_wanted_id, @get_objects_query ]) }; + } @{ + $manager_class->get_all( + query => [ id => $link->$sub_wanted_id, @get_objects_query ], + (with_objects => $params{with_objects}) x !!$params{with_objects}, + ) + }; }; # If no 'via' is given then use a simple(r) method for querying the wanted objects.