Ignore:
Timestamp:
May 19, 2010, 6:12:42 PM (12 years ago)
Author:
roberth
Message:

Updated studies list and added institute and department properties to person affiliations

File:
1 edited

Legend:

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

    r397 r442  
    6666        def personAffiliationInstance = new PersonAffiliation(params)
    6767        if (personAffiliationInstance.save(flush: true)) {
    68             flash.message = "${message(code: 'default.created.message', args: [message(code: 'personAffiliation.label', default: 'Affiliation'), personAffiliationInstance.name])}"
     68            flash.message = "${message(code: 'default.created.message', args: [message(code: 'personAffiliation.label', default: 'Affiliation'), personAffiliationInstance])}"
    6969            redirect(action: "show", id: personAffiliationInstance.id)
    7070        }
     
    110110            personAffiliationInstance.properties = params
    111111            if (!personAffiliationInstance.hasErrors() && personAffiliationInstance.save(flush: true)) {
    112                 flash.message = "${message(code: 'default.updated.message', args: [message(code: 'personAffiliation.label', default: 'Affiliation'), personAffiliationInstance.name])}"
     112                flash.message = "${message(code: 'default.updated.message', args: [message(code: 'personAffiliation.label', default: 'Affiliation'), personAffiliationInstance])}"
    113113                redirect(action: "show", id: personAffiliationInstance.id)
    114114            }
     
    126126        def personAffiliationInstance = PersonAffiliation.get(params.id)
    127127        if (personAffiliationInstance) {
    128             def affiliationName = personAffiliationInstance.name
     128            def affiliationName = personAffiliationInstance.toString()
    129129            try {
    130130                personAffiliationInstance.delete(flush: true)
Note: See TracChangeset for help on using the changeset viewer.