From 66ed639cffb352be3c262f6c6fead68549167e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Helge=20=C3=98verland?= Date: Tue, 14 Mar 2017 17:56:46 +0100 Subject: [PATCH 01/31] Added flag (cherry picked from commit c12851ece897a072f3d1c5e2175505aff5907f25) --- .../src/main/resources/META-INF/dhis/beans.xml | 1 + .../src/main/resources/i18n_global.properties | 1 + .../webapp/dhis-web-commons/flags/cordaid.png | Bin 0 -> 6296 bytes 3 files changed, 2 insertions(+) create mode 100644 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/flags/cordaid.png diff --git a/dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml b/dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml index dfcca77d..64bdb148 100644 --- a/dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml +++ b/dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml @@ -1088,6 +1088,7 @@ colombia congo_brazzaville congo_kinshasa + cordaid demoland ecowas ecuador diff --git a/dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global.properties b/dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global.properties index 2382fcec..2d1c97a4 100644 --- a/dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global.properties +++ b/dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global.properties @@ -852,6 +852,7 @@ colombia=Colombia demoland=Demoland congo_brazzaville=Republic of the Congo congo_kinshasa=Democratic Republic of the Congo +cordaid=Cordaid east_africa_community=East Africa Community ecowas=ECOWAS ecuador=Ecuador diff --git a/dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/flags/cordaid.png b/dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/flags/cordaid.png new file mode 100644 index 0000000000000000000000000000000000000000..651a905283ba04967b5ee6ab209d20e4bbf3512c GIT bin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hqVRAiKoUL@W9Gt1%s74(7fMCvC$kP8;|ab zKNt)QT6Djpj^J7>sH?55o>DrqDZ-@XnsRU{5Co!eZL!tp?HA?HTJ!Yeo84w%*Y{=m{spqC9d)L`5a9w$T45u zn1TKzRH4ACRuqA-ugNpW#ygm4$Izwl#airZ^Y^2~SbzTs1g-LL4hPLZAneV)FnyxK zVxZ#LWR7H}9R(#<8V*PA(Q4IE%(3xojY3Q=Yvu5)w09IWfI8CH=RK${ox1zWOCr~# zNV0i%YUH3cwTDUvYxbVLZ7akl>SyBB(&k;^5YF>M_i4k9%Z7UGa)lu;-m#@$%n>g6 z9+EHB`ZZ9R4dMWuK8y>jJ$2W-5Wa1BI(50BWqP|p5Hq=H_&3IEj0Hm!LC46vpCEO< z@s|<)l=1fqW^v|^cBzu=*h8Tl+TSfp9qIt7<8G#?{Ss{0iZulkE00*%WS^ax#QaDqBgxmsmi>v zytg&lo&5empEgv;{s>;n6 zk&ikbS%CeKnJGi8*+WETWDH7CoYO`ywz(HtGanij=Jg@gKpR(P?}c(}qOv_V)lCs^ zX3EU!>osi*`BAWJ=i)J+$10BE>7g!}9S0u13M8tKhv`o4ZB{L=+nQ~Eg_gqM!@24| z|AZjAkGUyS3k82~GdsC=W#EpLmMx#_LkiT|k}LKJ6I;PIUS-J`SqfVDW8d1|74prk zPCIrXt-A7GKCK%G7%2!1rrp`$-6QF4yVvm-R`V@N`(?xHYnAYjU!gN(Z5>y s|EskBU%CCimG=Mb{r|;y@2dUqs&*I5+d8N;_znTkP}NnbLEA+B4@CJE+5i9m literal 0 HcmV?d00001 From 359ea3fb21d35bdd5228052c82671c8895c0d4ef Mon Sep 17 00:00:00 2001 From: zubaira Date: Tue, 14 Mar 2017 19:32:57 +0100 Subject: [PATCH 02/31] SMSCode case sensitive --- .../org/hisp/dhis/sms/listener/DataValueSMSListener.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/listener/DataValueSMSListener.java b/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/listener/DataValueSMSListener.java index fe76f6c3..589e09b3 100644 --- a/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/listener/DataValueSMSListener.java +++ b/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/listener/DataValueSMSListener.java @@ -161,7 +161,7 @@ public void receive( IncomingSms sms ) for ( SMSCode code : smsCommand.getCodes() ) { - if ( parsedMessage.containsKey( code.getCode().toUpperCase() ) ) + if ( parsedMessage.containsKey( code.getCode() ) ) { valueStored = storeDataValue( senderPhoneNumber, orgUnit, parsedMessage, code, smsCommand, date, smsCommand.getDataset() ); @@ -219,7 +219,7 @@ private Map parse( String sms, SMSCommand smsCommand ) if ( !StringUtils.isEmpty( key ) && !StringUtils.isEmpty( value ) ) { - output.put( key.toUpperCase(), value ); + output.put( key, value ); } } @@ -252,8 +252,6 @@ private Period getPeriod( SMSCommand command, Date date ) private boolean storeDataValue( String sender, OrganisationUnit orgunit, Map parsedMessage, SMSCode code, SMSCommand command, Date date, DataSet dataSet ) { - String upperCaseCode = code.getCode().toUpperCase(); - String storedBy = SmsUtils.getUser( sender, command, userService.getUsersByPhoneNumber( sender ) ) .getUsername(); @@ -269,7 +267,7 @@ private boolean storeDataValue( String sender, OrganisationUnit orgunit, Map specialCharacters = command.getSpecialCharacters(); From 1c65dd147f9c5a734836517ef090e36a147d3a57 Mon Sep 17 00:00:00 2001 From: Jiju K Jose Date: Thu, 16 Mar 2017 14:40:16 +0100 Subject: [PATCH 03/31] Modified the audit history dialog box to show spinner while waiting for audit data --- .../angular-forms/audit-history.html | 12 ++++++++---- .../javascripts/dhis2/dhis2.angular.controllers.js | 9 ++++++++- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/angular-forms/audit-history.html b/dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/angular-forms/audit-history.html index 7b1bff4c..3da14056 100644 --- a/dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/angular-forms/audit-history.html +++ b/dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/angular-forms/audit-history.html @@ -1,8 +1,8 @@ -