mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.0 to HEAD
12734: Fix for ETHREEOH-1007 12735: Fix for ALFCOM-2326 (applied to 3.0E original code location) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12739 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,9 +28,11 @@ import javax.faces.context.FacesContext;
|
|||||||
|
|
||||||
import org.alfresco.web.app.Application;
|
import org.alfresco.web.app.Application;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dialog supporting the Upload New Version action on a working copy node.
|
||||||
|
*/
|
||||||
public class UploadNewVersionDialog extends DoneEditingDialog
|
public class UploadNewVersionDialog extends DoneEditingDialog
|
||||||
{
|
{
|
||||||
|
|
||||||
private final static String MSG_UPLOAD_NEW_VERSION = "upload_new_version";
|
private final static String MSG_UPLOAD_NEW_VERSION = "upload_new_version";
|
||||||
private final static String MSG_OF = "of";
|
private final static String MSG_OF = "of";
|
||||||
|
|
||||||
@@ -52,7 +54,6 @@ public class UploadNewVersionDialog extends DoneEditingDialog
|
|||||||
return property.getFile() == null;
|
return property.getFile() == null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getContainerTitle()
|
public String getContainerTitle()
|
||||||
{
|
{
|
||||||
@@ -63,8 +64,15 @@ public class UploadNewVersionDialog extends DoneEditingDialog
|
|||||||
@Override
|
@Override
|
||||||
protected String finishImpl(FacesContext context, String outcome) throws Exception
|
protected String finishImpl(FacesContext context, String outcome) throws Exception
|
||||||
{
|
{
|
||||||
property.setKeepCheckedOut(!finishedEditing);
|
if (finishedEditing)
|
||||||
return checkinFileOK(context, outcome);
|
{
|
||||||
|
property.setKeepCheckedOut(false);
|
||||||
|
return checkinFileOK(context, outcome);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return updateFileOK(context, outcome);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -73,5 +81,4 @@ public class UploadNewVersionDialog extends DoneEditingDialog
|
|||||||
super.resetState();
|
super.resetState();
|
||||||
finishedEditing = false;
|
finishedEditing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user