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?
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
Comment #1
jonbob commentedLooks like the issue may be in book_toc(), where $toc[0] gets overwritten by the call to book_toc_recurse().
Comment #2
kjl commentedyep. if you start with a fresh install, the first book you create becomes the parent of all other books - the "root" option is gone.
Comment #3
Steven commentedFixed in HEAD/CVS.
Comment #4
(not verified) commentedComment #5
urbanfalcon commentedI 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') .'>';
}