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

Removed unused list views from AssetExtendedAttribute and SubItemExtendedAttribute.

File:
1 edited

Legend:

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

    r274 r293  
    22
    33class AssetSubItemExtendedAttributeDetailedController 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         [ assetSubItemExtendedAttributeInstanceList: AssetSubItemExtendedAttribute.list( params ), assetSubItemExtendedAttributeInstanceTotal: AssetSubItemExtendedAttribute.count() ]
    13     }
    149
    1510    def show = {
     
    1813        if(!assetSubItemExtendedAttributeInstance) {
    1914            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
    20             redirect(action:list)
     15            redirect(controller: "assetDetailed", action: "search")
    2116        }
    2217        else { return [ assetSubItemExtendedAttributeInstance : assetSubItemExtendedAttributeInstance ] }
     
    2924                assetSubItemExtendedAttributeInstance.delete(flush:true)
    3025                flash.message = "AssetSubItemExtendedAttribute ${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 = "AssetSubItemExtendedAttribute not found with id ${params.id}"
    40             redirect(action:list)
     35            redirect(controller: "assetDetailed", action: "search")
    4136        }
    4237    }
     
    4742        if(!assetSubItemExtendedAttributeInstance) {
    4843            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
    49             redirect(action:list)
     44            redirect(controller: "assetDetailed", action: "search")
    5045        }
    5146        else {
     
    7772        else {
    7873            flash.message = "AssetSubItemExtendedAttribute 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.