When a user with access goes to "Edit" the top book page, this error is displayed:

warning: Invalid argument supplied for foreach() in /sites/all/modules/book_access/book_access.module on line 363.

in place of the pull-down menu for selecting the parent.

The problem was the foreach when there are no $options. I'll attach a patch.

CommentFileSizeAuthor
#3 Error Message.png107.08 KBshawn dearmond
top_book_page.patch426 bytesshawn dearmond

Comments

shawn dearmond’s picture

Another note about this bug. This only happens with the user does not have "Create new books" permission.

harry slaughter’s picture

Status: Needs review » Postponed (maintainer needs more info)

I am not able to reproduce this bug.

Please provide explicit steps to reproduce.

shawn dearmond’s picture

StatusFileSize
new107.08 KB

Clean Drupal 5.10 install.
book_access 5.x-1.0 installed and enabled.
"demo" user created by admin.
new book: "Top Level Book Page" created by admin.

Access Control: Authenticated users can: create book pages, outline posts in books, see printer-friendly version. (NOT "create new books")

Book Access Settings: "Top Level Book Page" book: Authenticated users can view, edit, delete.

"demo" user can edit "Top Level Book Page", but gets a warning message. (see attached screenshot)

harry slaughter’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Unfortunately, I have to abandon development of the D5 version of book_access. Unless someone wants to sponsor further development of the version or if proper patches are submitted, the remaining issues with D5 book_access will remain unresolved.