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

dwees’s picture

Assigned: Unassigned » dwees

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

mylos’s picture

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...

dwees’s picture

I looked into it and figured out my error. You just need to add a line in bookexpand_form_alter:

change


  if ($form_id == 'book_node_form') {
    switch (variable_get('bookexpand_filter', 0)) {

to


  if ($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

mylos’s picture

Hello Dave,

It's working. Thank you very much u helped me a lot. :))

dwees’s picture

Status: Active » Closed (fixed)

Status changed to closed.