syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andreapatrice...@apache.org
Subject [syncope] 01/02: [SYNCOPE-1476] fixes enum schema creation
Date Tue, 04 Jun 2019 09:08:22 GMT
This is an automated email from the ASF dual-hosted git repository.

andreapatricelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit 5e26a2feacc7672c40e2e40b28a9b8e3af427574
Author: Andrea Patricelli <andreapatricelli@apache.org>
AuthorDate: Tue Jun 4 11:07:17 2019 +0200

    [SYNCOPE-1476] fixes enum schema creation
---
 .../org/apache/syncope/client/console/panels/SchemaTypePanel.java   | 3 +++
 .../console/wicket/markup/html/bootstrap/dialog/BaseModal.java      | 6 ++++++
 .../org/apache/syncope/client/console/wizards/WizardMgtPanel.java   | 6 ++++++
 3 files changed, 15 insertions(+)

diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
index ff20636..ecdb870 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
@@ -84,6 +84,9 @@ public class SchemaTypePanel extends TypesDirectoryPanel<SchemaTO, SchemaProvide
         super(id, true, pageRef);
         this.schemaType = schemaType;
 
+        // SYNCOPE-1476
+        setFormAsMultipart(true);
+
         disableCheckBoxes();
 
         try {
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/bootstrap/dialog/BaseModal.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/bootstrap/dialog/BaseModal.java
index 55ee40e..f1e1107 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/bootstrap/dialog/BaseModal.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/bootstrap/dialog/BaseModal.java
@@ -127,6 +127,12 @@ public class BaseModal<T extends Serializable> extends Modal<T>
{
         return this;
     }
 
+    // SYNCOPE-1476
+    public BaseModal<T> setFormMultipart(final boolean multipart) {
+        form.setMultiPart(multipart);
+        return this;
+    }
+
     public T getFormModel() {
         return form.getModelObject();
     }
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/WizardMgtPanel.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/WizardMgtPanel.java
index 286260f..33399fd 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/WizardMgtPanel.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/WizardMgtPanel.java
@@ -353,6 +353,12 @@ public abstract class WizardMgtPanel<T extends Serializable> extends
AbstractWiz
         return this;
     }
 
+    // SYNCOPE-1476
+    public WizardMgtPanel<T> setFormAsMultipart(final boolean multipart) {
+        this.modal.setFormMultipart(multipart);
+        return this;
+    }
+
     /**
      * Set window close callback for the given modal.
      *


Mime
View raw message