RM-2522 : Select "Download Zip" (rm-download-zip) on RM Transfer Target inside RM Transfer view throws 400 Bad Request: Node is not fileplan

- used isFilePlan method from FilePlanService instead of old check

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.2@114258 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andreea Dragoi
2015-10-13 13:32:34 +00:00
parent a3842dd3f1
commit c09a3731ee

View File

@@ -104,7 +104,7 @@ public abstract class BaseTransferWebScript extends StreamACP
} }
// ensure the node is a filePlan object // ensure the node is a filePlan object
if (!TYPE_FILE_PLAN.equals(this.nodeService.getType(filePlan))) if (!filePlanService.isFilePlan(filePlan))
{ {
status.setCode(HttpServletResponse.SC_BAD_REQUEST, status.setCode(HttpServletResponse.SC_BAD_REQUEST,
"Node " + filePlan.toString() + " is not a file plan"); "Node " + filePlan.toString() + " is not a file plan");