Ignore:
Timestamp:
Apr 26, 2010, 2:31:00 PM (9 years ago)
Author:
roberth
Message:

Updated the person, personrole and personaffiliation view templates in order to create a consistent example for simple tables.
Also updated bootstrap.groovy to contain several persons and roles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/PersonRoleController.groovy

    r361 r379  
    2424        if (personRoleInstance.save(flush: true)) {
    2525            flash.message = "${message(code: 'default.created.message', args: [message(code: 'personRole.label', default: 'Role'), personRoleInstance.name])}"
    26             redirect(action: "show", id: personRoleInstance.id)
     26            //redirect(action: "show", id: personRoleInstance.id)
     27            redirect(action: "list")
    2728        }
    2829        else {
     
    6869            if (!personRoleInstance.hasErrors() && personRoleInstance.save(flush: true)) {
    6970                flash.message = "${message(code: 'default.updated.message', args: [message(code: 'personRole.label', default: 'Role'), personRoleInstance.name])}"
    70                 redirect(action: "show", id: personRoleInstance.id)
     71                //redirect(action: "show", id: personRoleInstance.id)
     72                redirect(action: "list")
     73
    7174            }
    7275            else {
     
    9295            catch (org.springframework.dao.DataIntegrityViolationException e) {
    9396                flash.message = "${message(code: 'default.not.deleted.message', args: [message(code: 'personRole.label', default: 'Role'), roleName])}"
    94                 redirect(action: "show", id: params.id)
     97                // redirect(action: "show", id: params.id)
     98                redirect(action: "list")
    9599            }
    96100        }
Note: See TracChangeset for help on using the changeset viewer.