Dear all,
Please find attached a diff that fix a problem I encountered when the dob has not been set (i.e if you want to your profile right after you created your account)
Index: plugins/party-time-0.1/grails-app/taglib/ProfileTagLib.groovy
===================================================================
--- plugins/party-time-0.1/grails-app/taglib/ProfileTagLib.groovy (revision 343)
+++ plugins/party-time-0.1/grails-app/taglib/ProfileTagLib.groovy (working copy)
@@ -132,7 +132,8 @@
if ( attrs?.type == "date" ) {
Date date = user.profile.getAttributeAsDate(name)
- out << new java.text.SimpleDateFormat("dd MMMM yyyy").format(date)
+ def output = date?new java.text.SimpleDateFormat("dd MMMM yyyy").format(date):"not available"
+ out << output
} else {
String output = user.profile.getAttribute(name)
out << output
Cheers
Guillaume