In a use case where another module is calling hook_node_update it is possible for revision information not to be passed.

Should the presence of '$node->revision' be assumed?

In a situation where we are using entity reference module and updating node parents in a custom module via a call... the following errors were generated.

Should the 'context_node_node_update($node)' function on line 211 rightly assume that '$node->revision' will or should always be available?

If no then this patch might be incorporated into the module.

Attached: Comment #1 for Patch

Comments

webdeli’s picture

webdeli’s picture

Updated issue summary.

lelizondo’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Needs review » Fixed

Fixed, please test and report back since I didn't do any deep testing.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Updated issue summary.