continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r312730 - /maven/continuum/trunk/continuum-web/src/main/resources/templates/CommonMacros.vm
Date Mon, 10 Oct 2005 20:14:58 GMT
Author: evenisse
Date: Mon Oct 10 13:14:54 2005
New Revision: 312730

URL: http://svn.apache.org/viewcvs?rev=312730&view=rev
Log:
[CONTINUUM-333] Don't try to print error message when it doesn't exist

Modified:
    maven/continuum/trunk/continuum-web/src/main/resources/templates/CommonMacros.vm

Modified: maven/continuum/trunk/continuum-web/src/main/resources/templates/CommonMacros.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/CommonMacros.vm?rev=312730&r1=312729&r2=312730&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/templates/CommonMacros.vm (original)
+++ maven/continuum/trunk/continuum-web/src/main/resources/templates/CommonMacros.vm Mon Oct
10 13:14:54 2005
@@ -5,7 +5,7 @@
 #macro ( field $i18n $data $element $item $formtool )
 <th>$i18n.getString( $element.labelKey )</th>
 
-#if ( $fvr && !$fvr.getElementResult( $element.getId()).valid() )
+#if ( $fvr && !$fvr.getElementResult( $element.getId()).valid() && $fvr.getElementResult(
$element.getId() ).errorMessage )
   #set ( $errorMsg = "&nbsp;&nbsp; [ $fvr.getElementResult( $element.getId() ).errorMessage
] " )
   #set ( $attr = 'style="background-color: #ffffcc"' )
 #else



Mime
View raw message