- Timestamp:
- Jan 21, 2010, 8:15:59 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetDetailedController.groovy
r281 r283 156 156 157 157 def show = { 158 158 159 159 // In the case of an actionSubmit button, rewrite action name from 'index'. 160 160 if(params._action_Show) 161 161 { params.action='show' } 162 162 163 163 def assetInstance = Asset.get( params.id ) 164 164 … … 190 190 191 191 def edit = { 192 192 193 193 // In the case of an actionSubmit button, rewrite action name from 'index'. 194 194 if(params._action_Edit) 195 195 { params.action='edit' } 196 196 197 197 def assetInstance = Asset.get( params.id ) 198 198 … … 212 212 def version = params.version.toLong() 213 213 if(assetInstance.version > version) { 214 214 215 215 assetInstance.errors.rejectValue("version", "asset.optimistic.locking.failure", "Another user has updated this Asset while you were editing.") 216 216 render(view:'edit',model:[assetInstance:assetInstance])
Note: See TracChangeset
for help on using the changeset viewer.