summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrenatog2017-07-27 20:51:56 (GMT)
committerRenato Goncalves de Araujo2017-07-27 20:51:56 (GMT)
commit9747344e5d489882b0acf3885e4c32c92f78a5cd (patch)
treeafb47e3a30bacebb8927beabe383c9d6034fec82
parentd0772fb6d2707cfa5a47c5e7239bc082841b38bd (diff)
Issue #2575343 by RenatoG, phandolin: Undefined index: access in node_reference_node_reference_field_formatter_prepare_view()
-rw-r--r--node_reference/node_reference.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/node_reference/node_reference.module b/node_reference/node_reference.module
index cf2b961..1e01b8d 100644
--- a/node_reference/node_reference.module
+++ b/node_reference/node_reference.module
@@ -409,6 +409,7 @@ function node_reference_field_formatter_prepare_view($entity_type, $entities, $f
foreach ($displays as $id => $display) {
if ($display['type'] != 'node_reference_nid') {
foreach ($items[$id] as $delta => $item) {
+ // Checking item 'access' before the use.
if (!empty($item['access'])) {
$ids[$item['nid']] = $item['nid'];
}
@@ -421,6 +422,7 @@ function node_reference_field_formatter_prepare_view($entity_type, $entities, $f
foreach ($displays as $id => $display) {
if ($display['type'] != 'node_reference_nid') {
foreach ($items[$id] as $delta => $item) {
+ // Checking item 'access' before the use.
if (!empty($item['access'])) {
$items[$id][$delta]['node'] = $entities[$item['nid']];
}