Problem/Motivation

On a new node, before the e-r field is set for access_by_ref the following error will appear:

Notice: Undefined index: target_id in access_by_ref_node_access() (line 66 of modules/contrib/access_by_ref/access_by_ref.module).

Steps to reproduce

1. Config module
2. Add entity_reference field to user entity to a
3. Add content

Proposed resolution

Check if field is set.

Comments

joel_osc created an issue. See original summary.

joel_osc’s picture

StatusFileSize
new551 bytes

Here is a patch.

joel_osc’s picture

Status: Active » Needs review

marceldeb’s picture

Status: Needs review » Fixed

Thanks a lot, fixed in dev!

joel_osc’s picture

Awesome, thank-you! And, thanks for you work on this module. Cheers.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.