Closed (fixed)
Project:
Vertical Tabs
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 May 2009 at 19:20 UTC
Updated:
20 Nov 2009 at 23:50 UTC
Jump to comment: Most recent file
Hello.
When you don't have 'administer content' permission, in your node form there's a revision tab, and it doesn't contains the "Create a new revison" checkbox. But it is enabled by default under the hood, so, you will create a new revision on form submit.
So, the bug is that vertical tab contains "Don't create new revision" text, that is wrong, because you _are_ creating a new revision. Here's a patch to fix this bug.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | vertical_tabs.patch | 945 bytes | neochief |
| vertical_tabs.patch | 692 bytes | neochief |
Comments
Comment #1
quicksketchSeems like the text should be omitted entirely if the option doesn't exist. This patch isn't necessary correct if the default setting for the content type is to not create a new revision and a user doesn't have administer content permission.
Comment #2
neochief commentedIf default settings for content type is not to create revision and you have no administre rights, you'll see no revision tab at all. I tested it ;)
But I agree with your point about empty message. Here's a new patch.
Comment #3
alexanderpas commentedComment #4
dave reidWill get committed tonight.
Comment #5
dave reidTested that the revision information tab doesn't come up if the user doesn't have admin nodes permission, tested with create story permission and access disabled on the 'Create new revision' checkbox, and got the bug as discovered and fixed with the patch. Committed to CVS (http://drupal.org/cvs?commit=285310). Thanks!