From 9d743a7c440b7e11b47a3b5e441a0435fee188ac Mon Sep 17 00:00:00 2001 From: laryn Date: Tue, 7 Feb 2023 10:45:48 -0600 Subject: [PATCH] Issue #15: Use entity_load_multiple(). Fixes #15. --- views/references_dialog_plugin_display.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/references_dialog_plugin_display.inc b/views/references_dialog_plugin_display.inc index 6dafe03..fb203a5 100644 --- a/views/references_dialog_plugin_display.inc +++ b/views/references_dialog_plugin_display.inc @@ -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},