When i edit a content type created with book made simple in the bookshelf it creates an entry in the top main menu. This is very bad.

Comments

MarcElbichon’s picture

Sorry, i don' understand.
Can you post me a hard copy of the problem ?

ddd_’s picture

I don't know what you mean by hard copy but I'll describe what my users do:
1. They create a new "vorlesung" in Drupal. "Vorlesung" is just a Title without content and it automatically creates a new book with book made simple. They normally add books to that "vorlesung" now.
2. The owner of this new "vorlesung" edits the titel after it appears in "Books". What he doesn't see (I see it as admin when I edit the title of the "vorlesung") is that the "Menu Settings" are filled in and on "Save" the saved content appears in the main menu on the top.
This is because the "Menu Settings" gets auto-filled with the name of the "vorlesung". Disabling your module avoids this behaviour.

EDIT!! : I found out this happens with AND without yout module :P Sorry

MarcElbichon’s picture

Can I close this issue ?

ddd_’s picture

I think so. Some weird things happen here :P Thanks fot he module by the way.

EDIT: Somehow the Menu Settings get filled on edit if the user doesn't have the right to reorder the book. This happens to books created with your module. Even when its disabled.

MarcElbichon’s picture

You are right. I had the same behaviour.
Please add this line

    $node->book['module'] = 'book';

in the book_made_simple.module just before the line _book_update_outline($node);
or use the last version in http://code.google.com/p/mmr-drupal-modules/downloads/list

Unfortunatly, for all nodes already created, you need to reset Menu link title or modify menu_links table.
To modify menu_links table, run the command (after a backup !!!!)

update menu_links set module = 'book' where module = 'menu' and menu_name like 'book-toc%'
ddd_’s picture

Super. Thanks

MarcElbichon’s picture

Status: Active » Closed (fixed)
scottrigby’s picture

Project: Book made simple (Obsolete) » Book made simple
Version: 6.x-2.1 » 6.x-3.4