[freeside-commits] freeside/httemplate/edit/process/elements process.html, 1.12, 1.13

Jeff Finucane,420,, jeff at wavetail.420.am
Sun Apr 6 09:12:48 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process/elements
In directory wavetail.420.am:/tmp/cvs-serv8622/httemplate/edit/process/elements

Modified Files:
	process.html 
Log Message:
new tax rating engine

Index: process.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/elements/process.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- process.html	4 Jan 2008 02:42:07 -0000	1.12
+++ process.html	6 Apr 2008 16:12:46 -0000	1.13
@@ -145,7 +145,11 @@
   });
 }
 
-my %hash = map { $_ => scalar($cgi->param($_)) } @$fields;
+my %hash =
+  map { my @entry = ( $_ => $cgi->param($_) );
+        $opt{'value_callback'} ? ( $_ => &{ $opt{'value_callback'} }( @entry ))
+                               : ( @entry )
+      } @$fields;
 
 my $new = $class->new( \%hash );
 



More information about the freeside-commits mailing list