diff options
author | Brad Embree <brad@bestpractical.com> | 2022-05-05 19:00:44 +0300 |
---|---|---|
committer | Brad Embree <brad@bestpractical.com> | 2022-05-09 19:32:35 +0300 |
commit | aed1cf2ebd2c68f566e07215079d71d53724c71b (patch) | |
tree | 1a3abbc18b3c38b41d415208b1534d07b7f99180 | |
parent | 97507f71ce00ab5e4f2c99697471e23a414129b5 (diff) |
Call ValidateCustomFields in Ticket/Display.html5.0/call-validatecustomfields-in-ticket-display
Inline edit submits updates directly to Display.html, so call
ValidateCustomFields to align with ticket Create, Modify, etc.
-rw-r--r-- | share/html/Ticket/Display.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/html/Ticket/Display.html b/share/html/Ticket/Display.html index a878a56c3e..7d30e350c0 100644 --- a/share/html/Ticket/Display.html +++ b/share/html/Ticket/Display.html @@ -162,6 +162,18 @@ if ($ARGS{'id'} eq 'new') { SkipProcessing => \$SkipProcessing ); return if $SkipProcessing; + my ($status, @msg) = $m->comp( + '/Elements/ValidateCustomFields', + Object => $TicketObj, + CustomFields => $TicketObj->CustomFields, + ARGSRef => \%ARGS, + ); + unless ($status) { + push @Actions, @msg; + $SkipProcessing = 1; + return; + } + if ( defined $ARGS{'Action'} ) { if ($ARGS{'Action'} =~ /^(Steal|Delete|Take|Untake|SetTold)$/) { my $action = $1; |