summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrenatog2017-07-27 21:46:07 (GMT)
committerRenato Goncalves de Araujo2017-07-27 21:46:07 (GMT)
commit0b72aa3d5dcae77cbeca198ab43d9c9b097d1620 (patch)
tree8fcb5cc6284a543b6ca500543117d8542948f666
parent9747344e5d489882b0acf3885e4c32c92f78a5cd (diff)
Issue #2297511 by RenatoG, paullwolborsky: Notice: Undefined index: node in node_reference_field_formatter_view()
-rw-r--r--node_reference/node_reference.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_reference/node_reference.module b/node_reference/node_reference.module
index 1e01b8d..903e4ce 100644
--- a/node_reference/node_reference.module
+++ b/node_reference/node_reference.module
@@ -444,6 +444,7 @@ function node_reference_field_formatter_view($entity_type, $entity, $field, $ins
foreach ($items as $delta => $item) {
if (!empty($item['access'])) {
+ // Checking if exists the node. If not exists use node_load to load.
if (!empty($item['node'])) {
$node = $item['node'];
}