Ignore:
Timestamp:
Jun 16, 2010, 3:36:04 PM (10 years ago)
Author:
duh
Message:
  • fixed bug where sampling templates could not be editted
File:
1 edited

Legend:

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

    r569 r571  
    707707                    // generate a Blowfish encrypted and Base64 encoded string.
    708708                    entityName = Blowfish.decryptBase64(
    709                             params.entity,
    710                             grailsApplication.config.crypto.shared.secret
    711                     )
     709                        params.entity,
     710                        grailsApplication.config.crypto.shared.secret
     711                                        )
    712712            } else {
    713713                    // base64 only; this is INSECURE! Even though it is not
     
    735735
    736736        // succes, is entity an instance of TemplateEntity?
    737         if (entity.superclass =~ /TemplateEntity$/) {
     737        if (entity.superclass =~ /TemplateEntity$/ || entity.superclass.superclass =~ /TemplateEntity$/) {
    738738            return entity;
    739739        } else {
Note: See TracChangeset for help on using the changeset viewer.