opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
79 stars 58 forks source link

Property `informantType` is not available in template object #5952

Open tahmidrahman-dsi opened 9 months ago

tahmidrahman-dsi commented 9 months ago

Describe the bug informantType is one of the required fields in the informant section of the form as mentioned in the config service validation https://github.com/opencrvs/opencrvs-core/blob/develop/packages/config/src/handlers/forms/validation.ts#L214 However, the template object in the declaration data (which is used as the data source of certificate handlebars) does not have the property informantType as per the implementation here https://github.com/opencrvs/opencrvs-countryconfig/blob/develop/src/form/birth/required-fields.ts#L36

Expected behaviour The template object should have the informantType property to expose the data of informant relation in the certificate svg

rikukissa commented 2 weeks ago

@tahmidrahman-dsi could you add a bit more description? I can't remember what this was about specifically

tahmidrahman-dsi commented 2 weeks ago

@tahmidrahman-dsi could you add a bit more description? I can't remember what this was about specifically

@rikukissa I just checked, the bug is still relevant. I updated the description with a bit more elaboration