[Bps-public-commit] r17241 - in RT-FormTools: .

sartak at bestpractical.com sartak at bestpractical.com
Mon Dec 15 15:56:44 EST 2008


Author: sartak
Date: Mon Dec 15 15:56:44 2008
New Revision: 17241

Modified:
   RT-FormTools/   (props changed)
   RT-FormTools/html/FormTools/Field

Log:
 r77198 at onn:  sartak | 2008-12-15 15:56:41 -0500
 Only display CF validation if the caller requests it, it uglies up existing forms


Modified: RT-FormTools/html/FormTools/Field
==============================================================================
--- RT-FormTools/html/FormTools/Field	(original)
+++ RT-FormTools/html/FormTools/Field	Mon Dec 15 15:56:44 2008
@@ -5,6 +5,7 @@
 $default => undef
 $cols => undef
 $empty_allowed => 1
+$show_validation => 0
 </%args>
 <%init>
 use RT::Extension::FormTools;
@@ -76,7 +77,7 @@
             ($default ? (Default => $default) : ())
             
             &>
-% if ($cf->FriendlyPattern) {
+% if ($show_validation && $cf->FriendlyPattern) {
     <% loc("Input must match [_1]", $cf->FriendlyPattern) %>
 %}
 



More information about the Bps-public-commit mailing list