Jump to:
| Project: | Book Expand |
| Version: | 5.x-1.0.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | dwees |
| Status: | closed (fixed) |
Issue Summary
Hello,
I installed your module and it work OK. I need it to allow one role to edit one book. On my site will be about 10 books and more then 20 editors, so I need to make them separate. One role-one book. So thats ok and work fine BUT I discovered NEW BUG ...
When I edit any BOOK PAGE, Parent field doesn't show exact hierarchy, instead it show .
When I use 'Add child page' then right Parent is show.
Can u please fix this, because can be very hard to edit some book pages if they are in some deep hierarchy of many levels. And in case u save that book page and u didn't manually returned to right PARENT u will make Top Level book page and mess whole site. Especially imagine someone who is common user, not technical savy. They will mistake 100% for sure.
Please can u fix this ASAP I need to launch this site in next 7 days.
Comments
#1
I'll take a look at it, but I am very busy. I start teaching in a new school today, and I'm writing a mathematics textbook at the same time, so I don't have a lot of spare time.
Dave
#2
Thanks Dave for a quick response. I would be very happy to see thay u can manage to fix this little bug. Site will work this way too but will be easy for editors to screw whole site. I work locally but u can see my version of site on www.medical.ns.ac.yu.
Skip front page...
#3
I looked into it and figured out my error. You just need to add a line in bookexpand_form_alter:
change
<?phpif ($form_id == 'book_node_form') {
switch (variable_get('bookexpand_filter', 0)) {
?>
to
<?phpif ($form_id == 'book_node_form') {
$node = $form['#node'];
switch (variable_get('bookexpand_filter', 0)) {
?>
and the module works as intended. My bad. I'll CVS the new version when I have a proper internet connection (and not one where I have to configure SmartFTP to work through a firewall AND a proxy host.
Dave
#4
Hello Dave,
It's working. Thank you very much u helped me a lot. :))
#5
Status changed to closed.