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'].

Comments

pgillis’s picture

Status: Active » Needs review
StatusFileSize
new844 bytes
rdeboer’s picture

Thanks Pete,
Well-spotted!
Patch makes sense.
Commited with attribution.
Rik

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Needs review » Fixed
pgillis’s picture

Status: Fixed » Closed (fixed)