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

sartak at bestpractical.com sartak at bestpractical.com
Fri Apr 10 12:16:25 EDT 2009


Author: sartak
Date: Fri Apr 10 12:16:24 2009
New Revision: 19125

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

Log:
 r81897 at onn:  sartak | 2009-04-09 05:04:22 -0400
 Pass in all arguments to the validator so we can validate multiple arguments together


Modified: RT-FormTools/html/FormTools/Form
==============================================================================
--- RT-FormTools/html/FormTools/Form	(original)
+++ RT-FormTools/html/FormTools/Form	Fri Apr 10 12:16:24 2009
@@ -31,7 +31,7 @@
                 next;
             }
 
-            my ($ok, $res) = $validator->($request_args{$key});
+            my ($ok, $res) = $validator->($request_args{$key}, \%request_args);
             push @results, "$key: $res" unless $ok;
         }
     }



More information about the Bps-public-commit mailing list