Closed (fixed)
Project:
Book access
Version:
7.x-2.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2010 at 15:21 UTC
Updated:
18 Jan 2011 at 21:40 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedThe parameter passed to
db_query()is not correct, and the table name passed to the function (which is passed as argument to the module function) should be passed todb_escape_table().Comment #2
Anonymous (not verified) commentedI changed the code, and committed it to the development snapshot branch (both Drupal 6 and 7 versions).
Thanks for your report.
Comment #3
tpicado commentedThank you for the fix! However, now I get:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /drupal-7/batch?render=overlay&id=32&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function db_fetch_object() in /var/www/aliases/drupal-7.0-rc2/sites/all/modules/book_access/book_access.module on line 364
Not sure if it's enough to replace the 'book_access.module' file with the new one...
Regards,
TP
Comment #4
Anonymous (not verified) commenteddb_fetch_object()is not defined in Drupal 7; that is the reason of the error (I should have looked better to the code).I have changed the code, and committed it to the develop snapshot. Thank you for the help with the issue.
Comment #5
tpicado commentedHi kiam,
Sorry I wasn't able to test this earlier. I can now have the permissions rebuilt, but when I access the UI page, I get:
Fatal error: __clone method called on non-object in /var/www/aliases/drupal-7.0-rc2/sites/all/modules/book_access/book_access_ui.admin.inc on line 20
I'm still on RC2, and have replaced only the 'book_access.module' and 'book_access.api.php' files.
Regards,
TP
Comment #6
Anonymous (not verified) commentedI fixed that with the latest commits I did for the development snapshot; the form builder functions were not updated to Drupal 7, and they were using an argument less.
I tested the latest developed code, and it works in my test site; please test on your own test site, and report any additional issues you find.
Comment #7
tpicado commentedHi kiam,
So, after updating the UI files and the 'vars' module files, the user interface seems to be working fine. However, I now have the same issue that is being reported for version 6.x-1.0-rc6, "Role loses edit permissions", when a book page is edited.
Im my case, this is actually not just affecting the permissions for the role of a given user, but any other permissions defined (of type role or user), even if the user updating the content doesn't have permissions to administer access. Updating the book outline works fine, though.
Regards,
TP
Comment #8
tpicado commented(updating issue status)
Comment #9
Anonymous (not verified) commentedI cannot reproduce this issue.
Then, the actual issue is different from the originally reported one; this needs to be reported in a different issue.
Comment #10
Anonymous (not verified) commented