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

utwo-1’s picture

Status: Active » Needs review

The 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 : '';
}
}

killes@www.drop.org’s picture

Status: Needs review » Active

I believe this is a duplicate of an already fixed bug. Get the 4.7-cvs tarball to test.

vph’s picture

I just installed 4.7.5, this line of code is still there.

HallSL’s picture

Version: 4.7.4 » 4.7.5

We're experiencing this problem on a 4.75 installation. Any thoughts on adverse effects from removing that line?

pasqualle’s picture

Status: Active » Closed (won't fix)

This version is not supported. Reopen or create a new issue if the problem exists in any recent version (version equal or above Drupal 5)