mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Fix for missing image issue spotted by Linton
. Code cleanup (syncing of code styles, tabs, missing "if (logger.isDebugEnabled())" calls…) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5008 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -226,7 +226,8 @@ public class CreateWebContentWizard extends BaseContentWizard
|
||||
final int step = Application.getWizardManager().getCurrentStep();
|
||||
if (step == 2)
|
||||
{
|
||||
LOGGER.debug("clearing form instance data");
|
||||
if (LOGGER.isDebugEnabled())
|
||||
LOGGER.debug("clearing form instance data");
|
||||
if (this.formInstanceData != null)
|
||||
{
|
||||
this.avmService.removeNode(this.formInstanceData.getPath());
|
||||
@@ -302,16 +303,17 @@ public class CreateWebContentWizard extends BaseContentWizard
|
||||
|
||||
// reset all paths and structures to the main store
|
||||
this.createdPath = AVMConstants.getCorrespondingPathInMainStore(this.createdPath);
|
||||
LOGGER.debug("reset path " + this.createdPath + " to main store");
|
||||
|
||||
if (LOGGER.isDebugEnabled())
|
||||
LOGGER.debug("reset path " + this.createdPath + " to main store");
|
||||
|
||||
boolean form = (MimetypeMap.MIMETYPE_XML.equals(this.mimeType) && this.formName != null);
|
||||
if (form)
|
||||
{
|
||||
this.formInstanceData = new FormInstanceDataImpl(AVMNodeConverter.ToNodeRef(-1, this.createdPath));
|
||||
this.renditions = this.formInstanceData.getRenditions();
|
||||
LOGGER.debug("reset form instance data " + this.formInstanceData.getName() +
|
||||
" and " + this.renditions.size() + " to main store");
|
||||
if (LOGGER.isDebugEnabled())
|
||||
LOGGER.debug("reset form instance data " + this.formInstanceData.getName() +
|
||||
" and " + this.renditions.size() + " to main store");
|
||||
}
|
||||
if (this.startWorkflow)
|
||||
{
|
||||
@@ -367,8 +369,8 @@ public class CreateWebContentWizard extends BaseContentWizard
|
||||
srcPaths.add(AVMConstants.getCorrespondingPath(this.createdPath, sandboxName));
|
||||
}
|
||||
|
||||
LOGGER.debug("creating workflow package with " + srcPaths.size() + " files");
|
||||
|
||||
if (LOGGER.isDebugEnabled())
|
||||
LOGGER.debug("creating workflow package with " + srcPaths.size() + " files");
|
||||
|
||||
// Create workflow sandbox for workflow package
|
||||
SandboxInfo sandboxInfo = SandboxFactory.createWorkflowSandbox(storeId);
|
||||
|
Reference in New Issue
Block a user