kitchen-site icon indicating copy to clipboard operation
kitchen-site copied to clipboard

format in form.fields and data_view.fields is ignored.

Open paplet opened this issue 8 years ago • 1 comments

If "fields" is used in components (tested : form and data_view) , then for the date/time fields, the format is lost. Format specified in "fields" is ignored as well as format defined at the collection level. example : "components": [ { "name": "temp01", "type": "form", "fields": [ { "name": "desc", "title": "Desc"}, { "name": "startdate", "title": "Start Dt","format": "DD-MM-YYYY"}, { "name": "enddate", "title": "End Dt override","format": "YYYY-MM-DD"}, ], .....

generates

`

{{enddate}}

` So the label is correctly generated, overriding the label defined at collection, but format is lost. It should be {{formatDate enddate 'YYYY-MM-DD'}}

and if it is not defined at the component level, then it should be taken from the collection level.

paplet avatar Apr 09 '16 12:04 paplet

@paplet good catch! Will be fixed in next (0.9.62) version.

perak avatar Apr 09 '16 21:04 perak