Ignore:
Timestamp:
Jan 23, 2010, 11:33:04 AM (15 years ago)
Author:
gav
Message:

Removed unused list views from AssetExtendedAttribute and SubItemExtendedAttribute.

File:
1 edited

Legend:

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

    r292 r293  
    22
    33class AssetExtendedAttributeDetailedController extends BaseController {
    4    
    5     def index = { redirect(action:list,params:params) }
     4
     5    def index = { redirect(controller: "assetDetailed", action: "search", params:params) }
    66
    77    // the delete, save and update actions only accept POST requests
    88    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    9 
    10     def list = {
    11         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
    12         [ assetExtendedAttributeInstanceList: AssetExtendedAttribute.list( params ), assetExtendedAttributeInstanceTotal: AssetExtendedAttribute.count() ]
    13     }
    149
    1510    def show = {
     
    1813        if(!assetExtendedAttributeInstance) {
    1914            flash.message = "AssetExtendedAttribute not found with id ${params.id}"
    20             redirect(action:list)
     15            redirect(controller: "assetDetailed", action: "search")
    2116        }
    2217        else { return [ assetExtendedAttributeInstance : assetExtendedAttributeInstance ] }
     
    2924                assetExtendedAttributeInstance.delete(flush:true)
    3025                flash.message = "AssetExtendedAttribute ${params.id} deleted"
    31                 redirect(action:list)
     26                redirect(controller: "assetDetailed", action: "search")
    3227            }
    3328            catch(org.springframework.dao.DataIntegrityViolationException e) {
     
    3833        else {
    3934            flash.message = "AssetExtendedAttribute not found with id ${params.id}"
    40             redirect(action:list)
     35            redirect(controller: "assetDetailed", action: "search")
    4136        }
    4237    }
     
    4742        if(!assetExtendedAttributeInstance) {
    4843            flash.message = "AssetExtendedAttribute not found with id ${params.id}"
    49             redirect(action:list)
     44            redirect(controller: "assetDetailed", action: "search")
    5045        }
    5146        else {
     
    7772        else {
    7873            flash.message = "AssetExtendedAttribute not found with id ${params.id}"
    79             redirect(action:list)
     74            redirect(controller: "assetDetailed", action: "search")
    8075        }
    8176    }
Note: See TracChangeset for help on using the changeset viewer.