Ignore:
Timestamp:
Feb 9, 2011, 6:11:00 PM (13 years ago)
Author:
gav
Message:

Change Task.toString() and display primaryAsset.name in front of description.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/Task.groovy

    r728 r799  
    6161    }
    6262
    63     String toString() {"${this.id} - ${this.description}"}
     63    String toString() {
     64        def s = "#${this.id} - "
     65        if(this.primaryAsset)
     66            s += "${primaryAsset.name}: "
     67        s += "${this.description}"
     68    }
     69
    6470}
Note: See TracChangeset for help on using the changeset viewer.