Open jfullerton opened 2 years ago
Is this all pages or just child pages? It looks like from the Page extension that maybe there could be a problem if InheritSideBar is true... (which is default) and the page is a child page... I can't really see immediately why this would happen on parent pages, though...
edit: It definitely looks like this feature could use some test coverage ;)
Yeah, this is happening on all pages, I tried both top level pages and child pages. Unchecking "Inherit Sidebar From Parent" doesn't change the result.
Stepping through the onBeforeDuplicate
function on WidgetPageExtension, everything seems fine.
The values being assigned were all correct and new records were being created. Even the SIdeBarID
assigned on this line was also correct, but once the function returns, it apparently doesn't stick or is overwritten?
This was supposedly fixed before in #58 and I think #188 might also be referencing this issue.
Expected Behavior
Duplicating a page should also duplicate the
WidgetArea
andWidgets
in it, and the resulting new page be assigned aSideBarID
corresponding to the duplicatedWidgetArea
.Actual Behavior
Duplicating a page does create copies of the original
WidgetArea
andWidgets
but the resulting page'sSideBarID
still points to the original page'sWidgetArea
.Steps to Reproduce the Problem
Widget
andWidgetArea
have been duplicated, but the duplicated page still has the original page'sSideBarID
.Specifications