- Timestamp:
- Oct 13, 2011, 5:11:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/visualization/VisualizeController.groovy
r2058 r2059 320 320 def samples = study.samples 321 321 322 // If the user is requesting data that concerns only subjects, then make sure those subjects appear only once 323 if(parseFieldId( inputData.columnIds[ 0 ] ).type=='subjects' && parseFieldId( inputData.rowIds[ 0 ] ).type=='subjects'){ 324 samples.unique { it.parentSubject } 325 } 326 322 327 // Retrieve the data for both axes for all samples 323 328 // TODO: handle the case of multiple fields on an axis … … 343 348 returnData = formatData( inputData.visualizationType, groupedData, fields, groupAxisType, valueAxisType ); // Don't indicate axis ordering, standard <"x", "y"> will be used 344 349 } 350 351 // Make sure no changes are written to the database 352 study.discard() 353 samples*.discard() 354 345 355 return sendResults(returnData) 346 356 }
Note: See TracChangeset
for help on using the changeset viewer.