From 4c039f0babf02cf642de1d8e6a5c7c540a438808 Mon Sep 17 00:00:00 2001 From: "CITE\\amentis" Date: Mon, 14 Oct 2024 11:15:32 +0300 Subject: [PATCH] small fix --- .../CssColorsTenantConfigurationPersist.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/core/src/main/java/org/opencdmp/model/persist/tenantconfiguration/CssColorsTenantConfigurationPersist.java b/backend/core/src/main/java/org/opencdmp/model/persist/tenantconfiguration/CssColorsTenantConfigurationPersist.java index f48bd9fa7..168be1422 100644 --- a/backend/core/src/main/java/org/opencdmp/model/persist/tenantconfiguration/CssColorsTenantConfigurationPersist.java +++ b/backend/core/src/main/java/org/opencdmp/model/persist/tenantconfiguration/CssColorsTenantConfigurationPersist.java @@ -58,10 +58,7 @@ public class CssColorsTenantConfigurationPersist { return Arrays.asList( this.spec() .must(() -> !this.isEmpty(item.getPrimaryColor())) - .failOn(CssColorsTenantConfigurationPersist._primaryColor).failWith(messageSource.getMessage("Validation_Required", new Object[]{CssColorsTenantConfigurationPersist._primaryColor}, LocaleContextHolder.getLocale())), - this.spec() - .must(() -> !this.isEmpty(item.getCssOverride())) - .failOn(CssColorsTenantConfigurationPersist._cssOverride).failWith(messageSource.getMessage("Validation_Required", new Object[]{CssColorsTenantConfigurationPersist._cssOverride}, LocaleContextHolder.getLocale())) + .failOn(CssColorsTenantConfigurationPersist._primaryColor).failWith(messageSource.getMessage("Validation_Required", new Object[]{CssColorsTenantConfigurationPersist._primaryColor}, LocaleContextHolder.getLocale())) ); } }