[Rt-commit] rt branch 5.0/call-validatecustomfields-in-ticket-display created. rt-5.0.2-221-gdd090c352b
BPS Git Server
git at git.bestpractical.com
Wed May 11 10:12:44 EDT 2022
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".
The branch, 5.0/call-validatecustomfields-in-ticket-display has been created
at dd090c352ba357e4f5b91ca7f19485d7f34fcf58 (commit)
- Log -----------------------------------------------------------------
commit dd090c352ba357e4f5b91ca7f19485d7f34fcf58
Author: Brad Embree <brad at bestpractical.com>
Date: Thu May 5 09:00:44 2022 -0700
Call ValidateCustomFields in Ticket/Display.html
Inline edit submits updates directly to Display.html, so call
ValidateCustomFields to align with ticket Create, Modify, etc.
diff --git a/share/html/Ticket/Display.html b/share/html/Ticket/Display.html
index a878a56c3e..35b943ef8b 100644
--- a/share/html/Ticket/Display.html
+++ b/share/html/Ticket/Display.html
@@ -160,6 +160,17 @@ if ($ARGS{'id'} eq 'new') {
TicketObj => $TicketObj,
ActionsRef => \@Actions, ARGSRef => \%ARGS,
SkipProcessing => \$SkipProcessing );
+
+ my ($status, @msg) = $m->comp(
+ '/Elements/ValidateCustomFields',
+ Object => $TicketObj,
+ CustomFields => $TicketObj->CustomFields,
+ ARGSRef => \%ARGS,
+ );
+ unless ($status) {
+ push @Actions, @msg;
+ $SkipProcessing = 1;
+ }
return if $SkipProcessing;
if ( defined $ARGS{'Action'} ) {
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list