Skip to content

Commit

Permalink
Update kie-server-parent/kie-server-services/kie-server-services-jbpm…
Browse files Browse the repository at this point in the history
…-ui/src/main/java/org/kie/server/services/jbpm/ui/form/render/AbstractFormRenderer.java

Co-authored-by: Jan Stastny <[email protected]>
  • Loading branch information
bxf12315 and Jan Stastny committed May 23, 2022
1 parent 9a64a75 commit 775889a
Showing 1 changed file with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -816,20 +816,12 @@ protected String appendExtractionExpression(String type, String name, String id,
.append(id)
.append("')");
} else if (isDate(type)) {
if (type.equals("datetime-local")) {
if (isShowTime) {
jsonTemplate.append("getDate('")
.append(id)
.append("',")
.append(FUNCTION_MAPPING.get(formFieldType))
.append(") ");
} else {
jsonTemplate.append("getDateWithoutTime('")
.append(id)
.append("',")
.append(FUNCTION_MAPPING.get(formFieldType))
.append(") ");
}
if (type.equals("datetime-local") && !showTime) {
jsonTemplate.append("getDateWithoutTime('")
.append(id)
.append("',")
.append(FUNCTION_MAPPING.get(formFieldType))
.append(") ");
} else {
jsonTemplate.append("getDate('")
.append(id)
Expand Down

0 comments on commit 775889a

Please sign in to comment.