← Back to team overview

dhis2-devs team mailing list archive

Option set options editor not working correctly

 

Hi Devs
I was testing today the new interface for creating option sets and options and I was not able to successfully add options to an option set, here are the steps I followed:

1. Starting from the main menu selected maintenance -> other -> Option set
2. Click on the plus sign, add a name “Test option set” and select Text as Value type. Click on Save
3. At the Options section click on the plus sign, add the name ‘1’ and code ‘1’ then click on save. The system shows the message “Option failed to save” at the bottom of the screen.
4. Delete the text on the code and click on the name, the code field then is disabled and can’t be edited again.
5. Click on cancel and repeat step 3. The system will present again the message  “Option failed to save”, then click on the name field and add one number or character to the name, delete the character you added which will leave the name and code as it was originally but the field for the code will be disabled. Click on save and and the option editor will be close, the system will show the message “Option saved” at the bottom of the screen but the option will not be shown in the list of options.
6. Using the API (url/api/options) verify that the option was created

Importing the option set with 500 options worked fine.

I tested this several times with the same results in play.dhis2.org/demo version 2.24 build 23510 dated 2016-07-06

Best regards,
JM

Follow ups