Closed (fixed)
Project:
Revisioning
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Apr 2013 at 12:55 UTC
Updated:
29 Apr 2013 at 18:16 UTC
Jump to comment: Most recent file
When you create an instance of a content type that has a file field associated with it in moderation the result is to return the root home page of the site rather than the revisions list like everywhere else.
The cause of this appears to be that $form['#node'] is not completely populated in these cases and the logic in function _revisioning_form_submit($form, &$form_state) fails to execute properly.
I have noticed in node.pages.inc it says:
// @todo D8: Remove. Modules should access the node using $form_state['node'].
$form['#node'] = $node;
Also, the second part of the conditional in the above mentioned function uses $form_state['node'].
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | revisioning-form_submit_redirect-1982456-1.patch | 844 bytes | pgillis |
Comments
Comment #1
pgillis commentedComment #2
rdeboerThanks Pete,
Well-spotted!
Patch makes sense.
Commited with attribution.
Rik
Comment #3
rdeboerComment #4
pgillis commented