dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29373
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14824: minor fix in selected plugin, if iterator is not found, just ignore.. this is a common case when ...
------------------------------------------------------------
revno: 14824
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-04-14 13:00:51 +0700
message:
minor fix in selected plugin, if iterator is not found, just ignore.. this is a common case when there are no data available (we don't return empty json collections)
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.selected.js
--
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-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.selected.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.selected.js 2014-04-07 07:19:13 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.selected.js 2014-04-14 06:00:51 +0000
@@ -141,7 +141,8 @@
}
if( data[context.iterator] === undefined ) {
- $.error('selected: Invalid iterator for source url: ' + context.iterator);
+ // $.warn('selected: Invalid iterator for source url: ' + context.iterator);
+ return;
}
$.each(data[context.iterator], function( idx ) {