[Rt-commit] rt branch, 5.0/showcustomfieldcustomgroupings-pass-action-url-as-arg, created. rt-5.0.0-187-g05a7e93a34

Craig Kaiser craig at bestpractical.com
Mon Jan 4 11:45:11 EST 2021


The branch, 5.0/showcustomfieldcustomgroupings-pass-action-url-as-arg has been created
        at  05a7e93a34af734f99f465768809ef1b5dd81580 (commit)

- Log -----------------------------------------------------------------
commit 05a7e93a34af734f99f465768809ef1b5dd81580
Author: craig kaiser <craig at bestpractical.com>
Date:   Mon Jan 4 11:32:16 2021 -0500

    ShowCustomFieldCustomGroupings accept arg for inline edit form action URL
    
    This is needed for RTIR when the inline edit form should submit to and
    RTIR page instead of the default RT page.

diff --git a/share/html/Elements/ShowCustomFieldCustomGroupings b/share/html/Elements/ShowCustomFieldCustomGroupings
index ee3c1af60c..21acacbc2f 100644
--- a/share/html/Elements/ShowCustomFieldCustomGroupings
+++ b/share/html/Elements/ShowCustomFieldCustomGroupings
@@ -92,7 +92,7 @@ for my $group ( @Groupings ) {
   </div>
 % }
 % if ($modify_behavior ne 'hide') {
-  <form class="inline-edit" action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html" method="post" enctype="multipart/form-data">
+  <form class="inline-edit" action="<% $ActionURL %>" method="post" enctype="multipart/form-data">
     <input type="hidden" class="hidden" name="id" value="<% $Object->id %>" />
     <& /Elements/EditCustomFields, Object => $Object, Grouping => $group, InTable => 0 &>
     <div class="form-row">
@@ -108,7 +108,8 @@ for my $group ( @Groupings ) {
 $Object
 $title_href => ""
 $InlineEdit => 0
- at Groupings => ()
+ at Groupings  => ()
+$ActionURL  => RT->Config->Get('WebPath')."/Ticket/Display.html"
 </%ARGS>
 <%INIT>
 my $css_class = lc(ref($Object)||$Object);

-----------------------------------------------------------------------


More information about the rt-commit mailing list