Try our conversational search powered by Generative AI!

MovedPage and MovingPage events are triggered for other content than pages

Found in

Release 7

Created

Feb 28, 2014

Updated

Apr 11, 2014

Area

Falcon/CMS/Core

State

Closed, Fixed and Tested


Steps to reproduce

There has been a few places where moving content, for instance media, has stopped working due to event handlers bound to the Moving-/MovedPage events expecting pages.

 

All other "Page" events are just triggered for pages but for at least these events, there is no content when triggering the event and therefore the early exit fails.


The bug is reported from forum you can see  for more detalis

I have attached a module that prevent to moved only pages.


1- Include the item PreventMovingPageData.cs to the project 

2- Compile it 

3- brows to site

4- move blocks, media and pages

expected behavior before correction is : cannot move items (anything block, media or pages)

expected behavior after correction is :  block and media  should be moved only pages cannot be moved