You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2020/01/13 15:13:09 UTC
[empire-db] branch master updated: EMPIREDB-282 small fix for JSF
TagEncodingHelper
This is an automated email from the ASF dual-hosted git repository.
doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git
The following commit(s) were added to refs/heads/master by this push:
new 866a160 EMPIREDB-282 small fix for JSF TagEncodingHelper
866a160 is described below
commit 866a16069da8cc92e695357931525e8c4f53059b
Author: Rainer Döbele <do...@apache.org>
AuthorDate: Mon Jan 13 16:13:03 2020 +0100
EMPIREDB-282
small fix for JSF TagEncodingHelper
---
.../src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
index 9b9af08..6920297 100644
--- a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
+++ b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
@@ -757,7 +757,7 @@ public class TagEncodingHelper implements NamingContainer
if (this.isReadOnly())
return;
// Column required?
- if (column.isRequired() && ObjectUtils.isEmpty(value))
+ if (ObjectUtils.isEmpty(value) && ((Record) this.record).isFieldRequired(column))
return; // Cannot set required value to null
// Disable Validation
reenableValidation = ((DBRecord)record).isValidateFieldValues();