mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-277: Add Content Dialog is displayed after cancel editing
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31646 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,6 +21,7 @@ package org.alfresco.web.bean.coci;
|
|||||||
import javax.faces.context.FacesContext;
|
import javax.faces.context.FacesContext;
|
||||||
|
|
||||||
import org.alfresco.model.ContentModel;
|
import org.alfresco.model.ContentModel;
|
||||||
|
import org.alfresco.web.app.AlfrescoNavigationHandler;
|
||||||
import org.alfresco.web.app.Application;
|
import org.alfresco.web.app.Application;
|
||||||
import org.alfresco.web.bean.repository.Node;
|
import org.alfresco.web.bean.repository.Node;
|
||||||
import org.alfresco.web.ui.common.ReportedException;
|
import org.alfresco.web.ui.common.ReportedException;
|
||||||
@@ -41,7 +42,23 @@ public class CancelEditingDialog extends CheckinCheckoutDialog
|
|||||||
protected String finishImpl(FacesContext context, String outcome) throws Exception
|
protected String finishImpl(FacesContext context, String outcome) throws Exception
|
||||||
{
|
{
|
||||||
undoCheckoutFile(context, outcome);
|
undoCheckoutFile(context, outcome);
|
||||||
return "dialog:close[2]";
|
return outcome;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getDefaultCancelOutcome()
|
||||||
|
{
|
||||||
|
return AlfrescoNavigationHandler.CLOSE_DIALOG_OUTCOME +
|
||||||
|
AlfrescoNavigationHandler.OUTCOME_SEPARATOR +
|
||||||
|
AlfrescoNavigationHandler.OUTCOME_BROWSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getDefaultFinishOutcome()
|
||||||
|
{
|
||||||
|
return AlfrescoNavigationHandler.CLOSE_DIALOG_OUTCOME +
|
||||||
|
AlfrescoNavigationHandler.OUTCOME_SEPARATOR +
|
||||||
|
AlfrescoNavigationHandler.OUTCOME_BROWSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user