Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Feb 2010 at 05:33 UTC
Updated:
29 Dec 2010 at 04:00 UTC
Jump to comment: Most recent file
Problem:
Currently the 'Revision information' vertical tab summary text is linked to the state of a nodes 'Create new revision' checkbox. If a user without 'administer content' permissions edits a node type that has revisioning on by default, that checkbox doesn't appear. As a result the tab summary will incorrectly tell the user that 'No revision' will be created.
Fix:
Attach the summary text to the checkbox state only when the checkbox is available. When it is not, attach it to the presence of the log textarea. For non-'administer content' users the log will only appear for nodes that have 'create new revision' on by default.
Patch attached.
Comments
Comment #1
alexjarvis commentedSmall change: added leading space to comment per code standard.
Comment #2
aspilicious commentedCan you wrap the comment in 80 characters?
==> make it a multiple line comment, break as close to 80 characters
Comment #3
alexjarvis commentedWrapped comment.
Comment #4
retester2010 commentedtrailing white spaces
40 critical left. Go review some!
Comment #5
alexjarvis commentedTrailing white space removed. Also restructured logic for increased clarity.
Comment #6
kscheirer2 nitpicks:
Patch works great, nice catch!
Comment #7
kscheirerComment #8
alexjarvis commentedFixed.
Comment #9
kscheirerComment #11
dries commentedThis looks correct to me but it would be nice to get another thumbs up from casey or so.
Comment #12
sunGood start at explaining, but I had to think twice (and others would have to look up actual Node module code) to understand *why*.
1) Just checking for $foo.length and !$foo.length is sufficient.
2) Can we write the condition on one line, please?
Powered by Dreditor.
Comment #13
alexjarvis commentedFixed.
Comment #14
JacobSingh commentedLooks fine to me. The comment is still a little confusing, but then the use case is too.
Comment #15
ksenzeeWe should be assigning the result of
$('#edit-revision', context)to a variable, not calling it twice.Comment #16
alexjarvis commentedAssigned to variable and updated selectors to comply with #955610: Impossible to have multiple node forms on one page due to fixed IDs.
Comment #17
ksenzeeLooks good, works as designed. A+++ would review again.
Comment #18
webchickSince ksenzee can make jQuery bend to her every whim, I trust her opinion on this. :)
Committed to HEAD. Thanks! Great job, alexjarvis!
Comment #19
sunThanks for taking this over, ksenzee! :)