i just upgrade 4-4 -> cvs and (pretty sure this wasn't a problem before) ... now when i edit my "root" books the parent field forces me to select another parent. ;( has anyone experienced this?

Comments

jonbob’s picture

Looks like the issue may be in book_toc(), where $toc[0] gets overwritten by the call to book_toc_recurse().

kjl’s picture

yep. if you start with a fresh install, the first book you create becomes the parent of all other books - the "root" option is gone.

Steven’s picture

Fixed in HEAD/CVS.

Anonymous’s picture

urbanfalcon’s picture

I found that this modification got the desired results:

/book.module, line 528

from

// If the user is an administrator, add the top-level book page;
// only administrators can start new books.
if (user_access('administer nodes') || ($exclude != "" && $exclude != "0")) {
$toc[0] = '<'. t('top-level') .'>';
}

to

// If the user is an administrator, add the top-level book page;
// only administrators can start new books.
// allow top-level for editing book roots, limit access for all others save admins
if (user_access('administer nodes') || ($exclude != "" && $exclude != "0")) {
$toc[0] = '<'. t('top-level') .'>';
}