Closed (won't fix)
Project:
Drupal core
Version:
4.7.5
Component:
book.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2006 at 13:10 UTC
Updated:
15 Sep 2008 at 22:19 UTC
Book pages: Weight reset to zero when edited by another user other the creator (admin). Users does not have the option to set/reset weight during editing (which is normal behavior, although, it will be good to have settings to enable it for users).
Comments
Comment #1
utwo-1 commentedThe following code change (comment the line: // $node->weight = 0;) in book.module seems to fix this this problem, but its effects needs to be reviewed:
function book_submit(&$node) {
global $user;
// Set default values for non-administrators.
if (!user_access('administer nodes')) {
// $node->weight = 0;
$node->revision = 1;
$book->uid = $user->uid;
$book->name = $user->uid ? $user->name : '';
}
}
Comment #2
killes@www.drop.org commentedI believe this is a duplicate of an already fixed bug. Get the 4.7-cvs tarball to test.
Comment #3
vph commentedI just installed 4.7.5, this line of code is still there.
Comment #4
HallSL commentedWe're experiencing this problem on a 4.75 installation. Any thoughts on adverse effects from removing that line?
Comment #5
pasqualleThis version is not supported. Reopen or create a new issue if the problem exists in any recent version (version equal or above Drupal 5)