Skip to content

Commit

Permalink
setMultiPart(true) is set to object details form component (needed fo…
Browse files Browse the repository at this point in the history
…r file upload component)
  • Loading branch information
KaterynaHonchar committed Mar 23, 2020
1 parent c4f6f8e commit c78ae0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -108,6 +108,7 @@ public Form<PrismObjectWrapper<O>> getMainForm() {

private void initLayout(PageAdminObjectDetails<O> parentPage) {
mainForm = new Form<>(ID_MAIN_FORM, true);
mainForm.setMultiPart(true);
add(mainForm);
initLayoutTabs(parentPage);
initLayoutOptions();
Expand Down
Expand Up @@ -223,6 +223,7 @@ public boolean isVisible() {
Form evidenceForm = new Form(ID_CASE_WORK_ITEM_EVIDENCE_FORM);
evidenceForm.add(new VisibleBehaviour(() -> CaseTypeUtil.isManualProvisioningCase(parentCase) &&
(!SchemaConstants.CASE_STATE_CLOSED.equals(parentCase.getState()) || WorkItemTypeUtil.getEvidence(getModelObject()) != null)));
evidenceForm.setMultiPart(true);
add(evidenceForm);

UploadDownloadPanel evidencePanel = new UploadDownloadPanel(ID_CASE_WORK_ITEM_EVIDENCE, parentCase != null &&
Expand Down

0 comments on commit c78ae0a

Please sign in to comment.