[Bps-public-commit] rt-extension-formtools branch dynamic-forms-from-config updated. 0.53-51-g841da6c
BPS Git Server
git at git.bestpractical.com
Thu Oct 12 21:27:11 UTC 2023
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, dynamic-forms-from-config has been updated
via 841da6cc08527970a8b84ce88a2858deef7a0636 (commit)
from 4c3f7620d79e7bb6183fb85e068c36802879eaf6 (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 841da6cc08527970a8b84ce88a2858deef7a0636
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Oct 12 17:27:05 2023 -0400
Hide disabled forms from end users
diff --git a/html/Elements/Forms/ListForms b/html/Elements/Forms/ListForms
index c72637e..b0ecbd7 100644
--- a/html/Elements/Forms/ListForms
+++ b/html/Elements/Forms/ListForms
@@ -3,6 +3,7 @@
% my $item_number = 1;
% while ( my $form_attribute = $forms->Next ) {
% my $form = $form_attribute->Content;
+% next if $form->{disabled};
<div class="row mt-3 mb-3">
<div class="col-4">
<a href="<% RT->Config->Get('WebPath') %><% $SelfServicePath %>/Forms/<% $form_attribute->Description %>">
-----------------------------------------------------------------------
Summary of changes:
html/Elements/Forms/ListForms | 1 +
1 file changed, 1 insertion(+)
hooks/post-receive
--
rt-extension-formtools
More information about the Bps-public-commit
mailing list