I have discovered a new bug in bahmni Registration Page. When we select the patient which is in the database or new patient when we save it and refresh the registration page the patient age years goes to zero attached are some images for guidance.
I don’t see this issue in Bahmni-90 release. Looks like this got introduced in Bahmni-91. I even see that the year is set to ‘0’, when we open an existing patient and the actual years is displayed after saving. So, page refresh is setting the Years in age to ‘0’ and on click of ‘Save’, the actual age is being retrieved.
I have same display but donot see it as an error since the estimated birthday is still active and once you click the save button the age is re-calculated.
This bug occur in 0.91 bahmni version on registration page if you tick estimated date or not doesn’t matter but when you refresh or open an old patient at that time this problem occur. If you want to check https://demo.mybahmni.org/bahmni/home/index.html#/login click the link.
The year is set to zero only first time ie when you enter Registration app from main dashboard.
It works well after removing
We are also facing this issue, we changed this code and its working fine. please fix this code on next Upgrade
Thanks @Sameergije for providing this fix. did you also remove the ng-model=“patient.age.days” min=“0” or it was just the year initiation?
No only removed ng-init=“patient.age.years=0”