Changeset 1224 for trunk/grails-app/taglib
- Timestamp:
- Nov 30, 2010, 5:12:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/dbnp/studycapturing/WizardTagLib.groovy
r1222 r1224 1448 1448 // Show a link if the field is a FILE field 1449 1449 if( fieldType == 'FILE' && value != "" ) { 1450 out << '<a href="' + g.createLink( controller: "file", action: "get", id: value ) + '">' + value + '</a>';1450 out << '<a href="' + g.createLink( controller: "file", action: "get", id: value ) + '">' + value + '</a>'; 1451 1451 } else { 1452 1452 out << value; … … 1454 1454 1455 1455 // Show the unit (if a unit is present and a value was shown) 1456 if( fieldUnit && value != "" )1456 if( fieldUnit && value != null && value != "" ) 1457 1457 out << " " + fieldUnit 1458 1458
Note: See TracChangeset
for help on using the changeset viewer.