backdrop-contrib / og

The Organic Groups module provides users the ability to create, manage, and delete 'groups' on a site.
GNU General Public License v2.0
1 stars 8 forks source link

Editing book child content failure (Bug) #46

Open schoenid opened 2 years ago

schoenid commented 2 years ago

After saving a book child content and reopening it, wether for corrections or other changements, leads to errors in saving, if the cache was not cleared before. There are SQL errors, trying to create a page duplicate. The result is a scrambled books structure. The reopened book page does not show the previously defined Book outline. The field shows the entry instead of the book it was created in. This happens primarily, if the child page is reopened and no other book pages or contents were saved between and the cache is not cleared manually.

This does not happen, if the og module is disabled, or if the book is not defined as a group content.

Backdrop 1.21.3 Modules:

In the meantime I've realized, that this happens not only for book child content, but even for every book content. If a new book page is created, which has a defined Book outline, the Book outline setting disappears, after reopening it. If one tries to save it then, it leads to a duplicate page and to SQL errors, so the reopened book may not be saved correctly. If again a new book content is created and then deleted, the previuosly opened book with missing Book outline setting, has the correct settings in the Book outline, if opened again. So this must be a caching problem.

argiepiano commented 2 years ago

Hi @schoenid. I'm working on fixing issues for OG. Would you be able to post step-by-step directions of how to reproduce the error? Thanks