Commit ba233dd3 authored by Dries's avatar Dries

- Patch #25504 by kumo: fixed problem with the weights of book pages not being remembered.

parent 5c884370
......@@ -281,7 +281,7 @@ function book_outline() {
$page = db_fetch_object(db_query('SELECT * FROM {book} WHERE nid = %d', $node->nid));
$output = form_select(t('Parent'), 'parent', $page->parent, book_toc($node->nid), t('The parent page in the book.'));
$output .= form_weight(t('Weight'), 'weight', $node->weight, 15, t('Pages at a given level are ordered first by weight and then by title.'));
$output .= form_weight(t('Weight'), 'weight', $page->weight, 15, t('Pages at a given level are ordered first by weight and then by title.'));
if ($page->nid) {
$output .= form_submit(t('Update book outline'));
......
......@@ -281,7 +281,7 @@ function book_outline() {
$page = db_fetch_object(db_query('SELECT * FROM {book} WHERE nid = %d', $node->nid));
$output = form_select(t('Parent'), 'parent', $page->parent, book_toc($node->nid), t('The parent page in the book.'));
$output .= form_weight(t('Weight'), 'weight', $node->weight, 15, t('Pages at a given level are ordered first by weight and then by title.'));
$output .= form_weight(t('Weight'), 'weight', $page->weight, 15, t('Pages at a given level are ordered first by weight and then by title.'));
if ($page->nid) {
$output .= form_submit(t('Update book outline'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment