To reproduce:
- Deselect all the workflow options for a particular content type via the admin->settings->content types page
- Edit a node of said content type
In the Publishing Options section of the node edit form the 'Create new revision' option will be checked (despite being unchecked in step 1).
It seems to relate to the following line in the node_form_array() function in node.module: $node->revision = in_array('revision', $node_options);. When no options are selected for a content type, $node_options is an array = (0=>0). The in_array('revision', $node_options) function call will always returns TRUE.
The attached patch adds a condition to the 'else': elseif ($node_options !== array(0)) {.
This may be related to the fix for #17158.
Comments
Comment #1
mleicester commentedPatch added
Comment #2
tones commentedThis bug was fixed as part of Patch 77919 - "FormAPI: Enable programmaticaly submitted forms via the pull model"