processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

Creating a page does not add a row to pages_parents table

Open Toutouwai opened this issue 1 year ago • 0 comments

Short description of the issue

I noticed that no new row is added to the pages_parents table when a page is added and published.

In a clean installation of PW 3.0.240...

Page with ID 1019 is added and published:

2024-08-08_123726

pages_parents table afterwards (note that there is no row for page ID 1019):

2024-08-08_123811

If I add a child page to this newly created page there is no row for that child page either.

I don't understand exactly how the pages_parents table is used, but it looks like it's important for the functioning of the PagesParents class so I wanted to check if it's meant to be added to as pages are created.

Setup/Environment

  • ProcessWire version: 3.0.240

Toutouwai avatar Aug 08 '24 00:08 Toutouwai