All new nodes added under Root

tekoa - September 9, 2006 - 00:44
Project:Tree Access Module (pacs)
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When a user clicks the "add node" link that pacs provides at the bottom of a page node and creates a new page, the new page shows up in the pacs tree as a child of Root, rather than as a child of the page where the "add node" link was clicked.

I'm using Durpal 4.73 and pacs 4.7.0, 13/06/2002. It occurs on two different installations.

#1

bitman - September 25, 2006 - 22:48
Status:active» needs review

This is a bug in the settings page. A quick fix is to go to administer -> settings -> pacs and click "Submit configuration".

The problem is that on the settings page, synchronization with book pages is treated as enabled by default if the book module is also enabled, whereas everywhere else in the module it is treated as disabled by default (regardless of the book module). So until the configuration page is submitted, it looks like it is enabled when in fact it isn't.

I have attached a patch that will display the synchronization as disabled by default. An alternate solution would be to enable it by default throughout the entire module, but that involves additional checks to ensure that the book module is also enabled. That is probably the better solution because it would also correctly handle the book module being suddenly disabled.

AttachmentSize
pacs-sync.patch.txt 795 bytes

#2

peterone - April 11, 2007 - 15:03
Status:needs review» fixed

Thank you very much. Just commited a new version with bitman's patch applied.

#3

Anonymous - April 25, 2007 - 15:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.