------------------------------------------------------------
revno: 15691
committer: Tran Chau <tran.hispviet...@gmail.com>
branch nick: dhis2
timestamp: Mon 2014-06-16 13:46:26 +0800
message:
  Allow to search TEI by partial matches with attribute-values in quick search 
in Find/Add TEI form.
modified:
  
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/trackedEntityInstance.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-caseentry/src/main/webapp/dhis-web-caseentry/javascript/trackedEntityInstance.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/trackedEntityInstance.js	2014-06-14 07:52:04 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/trackedEntityInstance.js	2014-06-16 05:46:26 +0000
@@ -613,7 +613,7 @@
 
 function searchByIdsOnclick()
 {
-	if( getFieldValue('searchPatientByAttributes')==''){
+	if( getFieldValue('searchTeiByAttributes')==''){
 		return;
 	}
 	var params = "ou=" + getFieldValue("orgunitId");
@@ -625,7 +625,7 @@
 		}
 	}
 	
-	params += "&query=" + getFieldValue('searchPatientByAttributes');
+	params += "&query=LIKE:" + getFieldValue('searchTeiByAttributes');
 	
 	$('#attributeIds option').each(function(i, item) {
 		params += "&attribute=" + item.value;

_______________________________________________
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

Reply via email to