Changeset 283


Ignore:
Timestamp:
Jan 21, 2010, 8:15:59 AM (15 years ago)
Author:
gav
Message:

Format to 4 spaces, no tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AssetDetailedController.groovy

    r281 r283  
    156156
    157157    def show = {
    158        
     158
    159159        // In the case of an actionSubmit button, rewrite action name from 'index'.
    160160        if(params._action_Show)
    161161        { params.action='show' }
    162        
     162
    163163        def assetInstance = Asset.get( params.id )
    164164
     
    190190
    191191    def edit = {
    192        
     192
    193193        // In the case of an actionSubmit button, rewrite action name from 'index'.
    194194        if(params._action_Edit)
    195195        { params.action='edit' }
    196        
     196
    197197        def assetInstance = Asset.get( params.id )
    198198
     
    212212                def version = params.version.toLong()
    213213                if(assetInstance.version > version) {
    214                    
     214
    215215                    assetInstance.errors.rejectValue("version", "asset.optimistic.locking.failure", "Another user has updated this Asset while you were editing.")
    216216                    render(view:'edit',model:[assetInstance:assetInstance])
Note: See TracChangeset for help on using the changeset viewer.