------------------------------------------------------------ revno: 18763 committer: Tran Chau<tran.hispviet...@gmail.com> branch nick: dhis2 timestamp: Tue 2015-03-31 12:00:23 +0700 message: Fixed bug - The program stage data elements are never saved / updated in Single event programs. modified: dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm
-- lp:dhis2 https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk Your team DHIS 2 developers is subscribed to branch lp:dhis2. To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm 2015-03-19 11:14:12 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm 2015-03-31 05:00:23 +0000 @@ -18,11 +18,13 @@ #tblDynamicAttributesJavascript() selectAllById('selectedIndicators'); - - var periodType = byId('periodTypeName').value; - if( periodType != ''){ - setFieldValue('standardInterval',''); - } + + if( byId('periodTypeName') != null ){ + var periodType = byId('periodTypeName').value; + if( periodType != ''){ + setFieldValue('standardInterval',''); + } + } /*var customStandardInterval = byId('customStandardInterval').checked; if( customStandardInterval ){ @@ -85,6 +87,7 @@ checked = allowFutureDate.attr('checked') ? true : false; allowFutureDates.append( "<option value='" + checked + "' selected='true'>" + checked + "</option>" ); }); + jQuery(".daysAllowedSendMessage").each( function( i, item ){ var days = (jQuery(item).attr('realvalue')==undefined) ? 0 : jQuery(item).attr('realvalue'); daysAllowedSendMessages.append( "<option value='" + days + "' selected='true'>" + days + "</option>" );
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp