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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Error Message.png | 107.08 KB | shawn dearmond |
| top_book_page.patch | 426 bytes | shawn dearmond |
Comments
Comment #1
shawn dearmond commentedAnother note about this bug. This only happens with the user does not have "Create new books" permission.
Comment #2
harry slaughterI am not able to reproduce this bug.
Please provide explicit steps to reproduce.
Comment #3
shawn dearmond commentedClean 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)
Comment #4
harry slaughterUnfortunately, 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.