[Bps-public-commit] rt-extension-formtools branch master updated. 1.07-1-g4a5693c
BPS Git Server
git at git.bestpractical.com
Thu Mar 7 22:06:19 UTC 2024
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt-extension-formtools".
The branch, master has been updated
via 4a5693ca82f300b45854e254ab9cdf3bc06df87d (commit)
from 2693f9b622c1cfff59013ac432f0d4808ac8a175 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4a5693ca82f300b45854e254ab9cdf3bc06df87d
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Mar 7 17:01:41 2024 -0500
Fix form action to include WebPath
Note that $next_for_validation is not supposed to contain WebPath,
considering that it's also used in subexec which is not aware of WebPath.
diff --git a/html/FormTools/Form b/html/FormTools/Form
index 7c40e8a..8ddb8cc 100644
--- a/html/FormTools/Form
+++ b/html/FormTools/Form
@@ -130,7 +130,7 @@ $next_for_validation ||= $m->caller(1)->path;
<div id="formtools-form-body" class="container p-4 formtools-base-style">
<form
method="POST"
- action="<% $next_for_validation %>"
+ action="<% RT->Config->Get('WebPath') . $next_for_validation %>"
enctype="multipart/form-data"
<% defined $form_id ? ' id="'.$form_id.'"' : '' |n %>
<% defined $form_name ? ' name="'.$form_name.'"' : '' |n %>
-----------------------------------------------------------------------
Summary of changes:
html/FormTools/Form | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
rt-extension-formtools
More information about the Bps-public-commit
mailing list