Guys,
I have had a dig through codeplex and issue has not been reported so not sure if its just me. I have following test code:
Code:
using System;
namespace Test
{
/// <summary>
/// Summary description for SearchUpdateActionHandler.
/// </summary>
public class TestActionHandler : umbraco.BusinessLogic.Actions.IActionHandler
{
public TestActionHandler()
{
//
// TODO: Add constructor logic here
//
}
#region IActionHandler Members
public string HandlerName()
{
return "TestUpdate";
}
public bool Execute(umbraco.cms.businesslogic.web.Document documentObject, umbraco.interfaces.IAction action)
{
if (action.Alias == new umbraco.BusinessLogic.Actions.ActionDelete().Alias || action.Alias == new umbraco.BusinessLogic.Actions.ActionUnPublish().Alias)
{
umbraco.BusinessLogic.Log.Add(umbraco.BusinessLogic.LogTypes.System, new umbraco.BusinessLogic.User(0), documentObject.Id, "Test delete or unpublish");
}
else
{
umbraco.BusinessLogic.Log.Add(umbraco.BusinessLogic.LogTypes.System, new umbraco.BusinessLogic.User(0), documentObject.Id, "Test add");
}
return true;
}
public umbraco.interfaces.IAction[] ReturnActions()
{
// TODO: Add SearchUpdateActionHandler.ReturnActions implementation
umbraco.interfaces.IAction[] _retVal = { new umbraco.BusinessLogic.Actions.ActionPublish(), new umbraco.BusinessLogic.Actions.ActionUnPublish(), new umbraco.BusinessLogic.Actions.ActionMove(), new umbraco.BusinessLogic.Actions.ActionDelete() };
return _retVal;
}
#endregion
}
}
All events fire except unpublish. Has anyone else come across this issue? I am using umbraco v3.0.2
I noticed the issue when the unpublish was not firing in umbraco search indexing. If anyone else can re create then i will create item in codeplex.
Regards
Ismail
Level 2 certified. If it aint broke dont fix.