[Rt-commit] rt branch, 5.0/allow-inline-edit-file-submissions, repushed
Craig Kaiser
craig at bestpractical.com
Fri Oct 30 11:06:13 EDT 2020
The branch 5.0/allow-inline-edit-file-submissions was deleted and repushed:
was 2586220fde0ac3df6071fb773d1be0c23d64ca05
now eb8b3fa632bc7e9e0b22c284d725ccb49e57ef53
1: 2586220fde ! 1: eb8b3fa632 Add 'enctype=multipart/form-data' to inline edit forms
@@ -1,6 +1,6 @@
Author: craig kaiser <craig at bestpractical.com>
- Add 'enctype=multipart/form-data' to custom field inline edit form
+ Add 'enctype=multipart/form-data' to inline edit forms
Without this form attribute, when submitting a file for a custom field
the browser will complain:
@@ -33,3 +33,30 @@
<input type="hidden" class="hidden" name="id" value="<% $Ticket->id %>" />
<& /Ticket/Elements/EditBasics, TicketObj => $Ticket, InTable => 1, ExcludeOwner => 1, ExcludeCustomRoles => 1 &>
<& /Elements/EditCustomFields, Object => $Ticket, Grouping => 'Basics', InTable => 1 &>
+@@
+ </div>
+ % }
+ % if ($people_behavior ne 'hide') {
+- <form class="inline-edit" action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html" method="post">
++ <form class="inline-edit" action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html" method="post" enctype="multipart/form-data">
+ <input type="hidden" class="hidden" name="id" value="<% $Ticket->id %>" />
+ <& /Ticket/Elements/EditPeopleInline, Ticket => $Ticket &>
+ <div class="form-row">
+@@
+ </div>
+ % }
+ % if ($dates_behavior ne 'hide') {
+- <form class="inline-edit" action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html" method="post">
++ <form class="inline-edit" action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html" method="post" enctype="multipart/form-data">
+ <input type="hidden" class="hidden" name="id" value="<% $Ticket->id %>" />
+ <& /Ticket/Elements/EditDates, TicketObj => $Ticket &>
+ <div class="form-row">
+@@
+ </div>
+ % }
+ % if ($links_behavior ne 'hide') {
+- <form class="inline-edit" action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html" method="post">
++ <form class="inline-edit" action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html" method="post" enctype="multipart/form-data">
+ <input type="hidden" class="hidden" name="id" value="<% $Ticket->id %>" />
+ <& /Elements/EditLinks, Object => $Ticket, TwoColumn => 0 &>
+
More information about the rt-commit
mailing list