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

falcone at bestpractical.com falcone at bestpractical.com
Wed Jun 4 17:49:16 EDT 2008


Author: falcone
Date: Wed Jun  4 17:49:16 2008
New Revision: 12898

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

Log:
 r33791 at ketch:  falcone | 2008-06-04 17:47:44 -0400
 * handle attachments in posts by setting the form to the right type


Modified: RT-FormTools/html/FormTools/Form
==============================================================================
--- RT-FormTools/html/FormTools/Form	(original)
+++ RT-FormTools/html/FormTools/Form	Wed Jun  4 17:49:16 2008
@@ -28,10 +28,11 @@
 <& /Elements/PageLayout, title => $m->notes('page_title') &>
 % }
 
-<form method="POST" action="<%$next%>">
+<form method="POST" action="<%$next%>" enctype="multipart/form-data">
 <%$content|n%>
 
 % foreach my $key (keys %request_args) {
+% next if (ref $request_args{$key} ne 'ARRAY');
 % foreach my $val ( ref ($request_args{$key}) ? @{$request_args{$key}} : ($request_args{$key})) {
 
 <input type="hidden" name="<%$key%>" value="<%$val%>" />



More information about the Bps-public-commit mailing list