Skip to content

Commit

Permalink
Issue #15: Use entity_load_multiple().
Browse files Browse the repository at this point in the history
Fixes #15.
  • Loading branch information
laryn committed Feb 7, 2023
1 parent ecb0d1b commit 9d743a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/references_dialog_plugin_display.inc
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class references_dialog_plugin_display extends views_plugin_display {
foreach ($this->view->result as $row => $result) {
$entity_ids[] = $result->{$this->view->base_field};
}
$entities = entity_load($entity_type, $entity_ids);
$entities = entity_load_multiple($entity_type, $entity_ids);
foreach ($this->view->result as $result) {
$js_result[] = array(
'entity_id' => $result->{$this->view->base_field},
Expand Down

0 comments on commit 9d743a7

Please sign in to comment.