Added patch to fix #18700. Updated pom at 1.6.1

migrate-to-catalogue-util-library_#19764
francesco 3 years ago
parent dc518af5a9
commit add4f3a54a
  1. 7
      changelog.xml
  2. 2
      pom.xml
  3. 11
      src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/metadata/MetaDataFieldSkeleton.java

@ -1,4 +1,11 @@
<ReleaseNotes>
<Changeset
component="org.gcube.portlets-widgets.ckan-metadata-publisher-widget.1-6-1"
date="${buildDate}">
<Change>[Feature #18700] Do not skip regex validation on catalogue
item when a field is empty (UI side)
</Change>
</Changeset>
<Changeset
component="org.gcube.portlets-widgets.ckan-metadata-publisher-widget.1-6-0"
date="${buildDate}">

@ -13,7 +13,7 @@
<groupId>org.gcube.portlets.widgets</groupId>
<artifactId>ckan-metadata-publisher-widget</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.6.1-SNAPSHOT</version>
<name>gCube Ckan metadata publisher widget</name>
<description>

@ -421,7 +421,16 @@ public class MetaDataFieldSkeleton extends Composite{
* @return a string with the occurred error on error, null otherwise
*/
public String isFieldValueValid(){
try {
//Feature #18700
String value = getFieldCurrentValue().get(0);
if(value.isEmpty())
return checkValidator(value, field.getValidator()) ? null : MALFORMED_ATTRIBUTE;
}catch (Exception e) {
//continue
}
switch(field.getType()){
case Boolean :

Loading…
Cancel
Save