← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10756: Relaxed constraints slightly on allowed tables in sql views

 

------------------------------------------------------------
revno: 10756
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-05-03 14:12:33 +0200
message:
  Relaxed constraints slightly on allowed tables in sql views
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/sqlview/ResourceTableNameMap.java


--
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-api/src/main/java/org/hisp/dhis/sqlview/ResourceTableNameMap.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/sqlview/ResourceTableNameMap.java	2012-11-23 03:38:36 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/sqlview/ResourceTableNameMap.java	2013-05-03 12:12:33 +0000
@@ -54,8 +54,9 @@
 
         ignoredNameMap.put( "_users", "users" );
         ignoredNameMap.put( "_uinfo", "userinfo" );
-        ignoredNameMap.put( "_patient", "patient.*" );
-        ignoredNameMap.put( "_program", "program.*" );
+        ignoredNameMap.put( "_patient", "patient" );
+        ignoredNameMap.put( "_patientid", "patientidentifier" );
+        ignoredNameMap.put( "_patientattr", "patientattribute" );
         ignoredNameMap.put( "_relationship", "relationship.*" );
         ignoredNameMap.put( "_caseaggrcondition", "caseaggregationcondition" );
     }