← Back to team overview

dhis2-devs team mailing list archive

bug fix of data entry with optionsets

 

Hi,

When opening data entry form with data form does not show already selected
value. To make form populate selected data the folling change sgould be
made

remove :

$( fieldId ).select2("val", option.text );

add this instead:

         $( fieldId ).val( option.id ).change();

If someone with commit right could change the code would be great.

best regards,
murod

Follow ups