Category option attribute with value type yes/no is not save value

Bug #1554305 reported by Thuy Nguyen on 2016-03-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mark Polak

Bug Description

When update or create new category option which has custom attribute (This attribute assign to Category Option and Value type yes/no) the check box of this custom attribute is not saved after click save button.

description: updated

Which version of DHIS 2?

Changed in dhis2:
assignee: nobody → Mark Polak (markpo)
milestone: none → 2.23
Thuy Nguyen (thuy-hispvietnam) wrote :

It is affected in the version 2.22 , Build revision 21883

Mark Polak (markpo) wrote :

Fixed in 2.22 and trunk versions of the app.

Changed in dhis2:
status: New → Fix Released
Thuy Nguyen (thuy-hispvietnam) wrote :

Hi Mark Polak

Can you please check again. Because I just test this morning, the snapshot demo didnt work, and stable demo work.

But now when I test again, the stable demo 2.22 doesn't work, and snapshot work.

Thuy Nguyen (thuy-hispvietnam) wrote :

Hi Mark,

It is now like I create a new category option with yes/no attribute, I check the box and save this category option.

In api, i see category option has attribute save as 'true'

The next step I view edit the category option, the check box is blank (unchecked) => it should show as checked, because in api it is 'true' value

I click save button again without check the box.

I api, it is still 'true' value. =>it should be 'false' because the check box is save as blank)

I edit category option again, check again in the box and uncheck after that. Then I click save button.
In api, I see category option has attribute has value is 'false'

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers