Performance: inject_results in linked_records
[kivitendo-erp.git] / SL / DB / Helper / LinkedRecords.pm
index 2ed5d20..026131b 100644 (file)
@@ -89,6 +89,7 @@ sub _linked_records_implementation {
       $manager_class->get_all(
         query         => [ id => $link->$sub_wanted_id, @get_objects_query ],
         (with_objects => $params{with_objects}) x !!$params{with_objects},
+        inject_results => 1,
       )
     };
   };