Mailing List Archive

rt branch 5.0/call-validatecustomfields-in-ticket-display created. rt-5.0.2-221-gfb22fa8e45
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 fb22fa8e4506e080e27b75f961974b396bec756d (commit)

- Log -----------------------------------------------------------------
commit fb22fa8e4506e080e27b75f961974b396bec756d
Author: Brad Embree <brad@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..59d2aee0c4 100644
--- a/share/html/Ticket/Display.html
+++ b/share/html/Ticket/Display.html
@@ -155,6 +155,17 @@ if ($ARGS{'id'} eq 'new') {

my $SkipProcessing;

+ my ($status, @msg) = $m->comp(
+ '/Elements/ValidateCustomFields',
+ Object => $TicketObj,
+ CustomFields => $TicketObj->CustomFields,
+ ARGSRef => \%ARGS,
+ );
+ unless ($status) {
+ push @Actions, @msg;
+ $SkipProcessing = 1;
+ }
+
$TicketObj->Atomic(sub{
$m->callback( CallbackName => 'BeforeProcessArguments',
TicketObj => $TicketObj,

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


hooks/post-receive
--
rt
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit