Skip to content

Commit

Permalink
Merge pull request #16 from laryn/1.x-1.x-issue-15
Browse files Browse the repository at this point in the history
Issue #15: Use entity_load_multiple().

Thanks @laryn !
  • Loading branch information
robertgarrigos authored Jul 2, 2023
2 parents ecb0d1b + 9d743a7 commit a6e7ae8
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 a6e7ae8

Please sign in to comment.