Return-Path: Delivered-To: apmail-maven-continuum-commits-archive@www.apache.org Received: (qmail 58949 invoked from network); 10 Oct 2005 20:15:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2005 20:15:19 -0000 Received: (qmail 25923 invoked by uid 500); 10 Oct 2005 20:15:19 -0000 Delivered-To: apmail-maven-continuum-commits-archive@maven.apache.org Received: (qmail 25897 invoked by uid 500); 10 Oct 2005 20:15:19 -0000 Mailing-List: contact continuum-commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-dev@maven.apache.org Delivered-To: mailing list continuum-commits@maven.apache.org Received: (qmail 25880 invoked by uid 99); 10 Oct 2005 20:15:19 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Oct 2005 13:15:19 -0700 Received: (qmail 58851 invoked by uid 65534); 10 Oct 2005 20:14:59 -0000 Message-ID: <20051010201459.58850.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r312730 - /maven/continuum/trunk/continuum-web/src/main/resources/templates/CommonMacros.vm Date: Mon, 10 Oct 2005 20:14:58 -0000 To: continuum-commits@maven.apache.org From: evenisse@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 ) $i18n.getString( $element.labelKey ) -#if ( $fvr && !$fvr.getElementResult( $element.getId()).valid() ) +#if ( $fvr && !$fvr.getElementResult( $element.getId()).valid() && $fvr.getElementResult( $element.getId() ).errorMessage ) #set ( $errorMsg = "   [ $fvr.getElementResult( $element.getId() ).errorMessage ] " ) #set ( $attr = 'style="background-color: #ffffcc"' ) #else