If form_state['node] isn't unset on add and edit page types, then the following page will load the node from form_state['node']. This cause problems specially when the following page uses a different content type.
The following patch corrects this issue.

Comments

sepgil’s picture

The patch should of course called "pageroute_formstatenode_001.diff", sorry for that mistake...

fago’s picture

Status: Needs review » Needs work

hm, this line looks like being unnecessary?

+ protected $unsetNode = TRUE;

sepgil’s picture

StatusFileSize
new1.62 KB

yeah, its unnessecary. I improved my patch:

sepgil’s picture

Status: Needs work » Needs review
fago’s picture

Status: Needs review » Fixed

again quick ;) committed.

Status: Fixed » Closed (fixed)

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