mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. The user can now launch the Create Form wizard directly from the Form config page in the Create Web Project wizard
. List of workflows in Submit Dialog now shows warning message when no workflows match the assets for submission . More fixes for CreateWebContentWizard when creating non-form based content . Edit Web Project action now available from the main actions menu for a website . Warning indicator added to Forms page of Create Web Project wizard, when a workflow is selected but not yet configured . Warning indicator added to Ad-hoc workflows page of Create Web Project wizard, when a workflow is selected but not yet configured git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4590 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -187,14 +187,18 @@ public class CreateWebContentWizard extends BaseContentWizard
|
||||
final int step = Application.getWizardManager().getCurrentStep();
|
||||
if (step == 3)
|
||||
{
|
||||
try
|
||||
// if rendering a form, then save the content now to generate the renditions
|
||||
if (MimetypeMap.MIMETYPE_XML.equals(this.mimeType))
|
||||
{
|
||||
this.saveContent();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Application.getWizardManager().getState().setCurrentStep(step - 1);
|
||||
Utils.addErrorMessage(e.getMessage(), e);
|
||||
try
|
||||
{
|
||||
this.saveContent();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Application.getWizardManager().getState().setCurrentStep(step - 1);
|
||||
Utils.addErrorMessage(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.next();
|
||||
@@ -231,6 +235,7 @@ public class CreateWebContentWizard extends BaseContentWizard
|
||||
@Override
|
||||
public String finish()
|
||||
{
|
||||
// if a form is not being entered, then save just html/text content
|
||||
if (this.formInstanceData == null || this.renditions == null)
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user