pyrocms/pyrocms — Issue #889: Page module with same name = error when reordering
Author: dmyers2004
Created: 2011-11-15 01:00:56+00:00
State: open

I am working on the new page module and discovered another issue. Please verify this in 1.3/2.0/2.1 or any others. I will be correcting this in addition to any changes made in those versions (this will end up being a complete replacement for the current module by the time I am done since 75%+ of the code has changed (but not the method name or arguments etc...)

Under the Contact page create a new child page named home
PyroCMS should let you do this.
Now try to reorder this page and PyroCMS will throw a error about a duplicate key.

A Database Error Occurred

Error Number: 1062

Duplicate entry 'home-0' for key 'Unique'

UPDATE default_pages SET `parent_id` = 0

Filename: /Volumes/Data/mamp/htdocs/pyrocms/core/MY_Model.php

Line Number: 385