openanthem / nimbus-core

Getting Starting with NIMBUS-CORE
https://anthemopensource.atlassian.net/wiki/spaces/OSS/pages/157024674/Quickstart+Guide
Apache License 2.0
10 stars 49 forks source link

0(zero) is not displayed in UI view as a label value for data type like Integer,Big Decimal,Long,Decimal (Reopen #691) #714

Open kchsravanthi opened 4 years ago

kchsravanthi commented 4 years ago

Field value 0 (zero) is shown with empty value for label in UI (Reopen #691)

Nimbus version:1.3.2.M2

Current Behavior

Field value 0 (zero) is shown with empty value for label in UI .

Expected Behavior

0 should be displayed as a label value while pre-populating the field value 0 saved in MongoDB.

Steps to Reproduce

Enter the BigDecimal Data type field value as 0. Click submit the form . Go to history page or any other view UI like History page while displaying label field value with 0 shows as empty (nothing display)

Code Snippet

@MapsTo.Type(sampleCollect.class) //field declaration @Path("/sampleCollect/fieldDecimal") @Label(value="amount") private BigDecimal fieldDecimal;

srikanth497 commented 4 years ago

Issue was replicated, As observed issue was not there.working as expected.