Changeset 1632 for trunk/grails-app
- Timestamp:
- Mar 14, 2011, 3:49:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/AssayController.groovy
r1631 r1632 172 172 def assayId = flash.assayId 173 173 174 println assayId 175 176 // did the assay id value come across? 177 if (!assayId) { 178 flash.errorMessage = "An error occurred: assayId = ${assayId}." 179 redirect action: 'selectAssay' 180 return 181 } 182 183 Assay assay = Assay.get(assayId) 184 185 // check if assay exists 186 if (!assay) { 187 188 flash.errorMessage = "No assay found with id: ${assayId}" 189 redirect action: 'selectAssay' 190 return 191 192 } 193 174 194 def fieldMapSelection = [:] 175 195 … … 211 231 measurementTokensSelection = flash.measurementTokens 212 232 } 213 214 }215 216 Assay assay = Assay.get(assayId)217 218 // check if assay exists219 if (!assay) {220 221 flash.errorMessage = assayId ? "No assay found with id: ${assayId}" : 'Assay has no value (null).'222 redirect action: 'selectAssay'223 return224 233 225 234 }
Note: See TracChangeset
for help on using the changeset viewer.