[Rt-commit] rt branch 5.0/add-callbacks-conditional-cfs created. rt-5.0.5-39-gbd40532814
BPS Git Server
git at git.bestpractical.com
Tue Nov 7 17:04:15 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".
The branch, 5.0/add-callbacks-conditional-cfs has been created
at bd4053281485b803dfab25df7ccba7280aa82e3b (commit)
- Log -----------------------------------------------------------------
commit bd4053281485b803dfab25df7ccba7280aa82e3b
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Tue Nov 7 12:03:16 2023 -0500
Add callbacks to modify custom field updates
These are initially to support RT-Extension-ConditionalCustomFields.
diff --git a/share/html/Admin/CustomFields/Modify.html b/share/html/Admin/CustomFields/Modify.html
index beee4675a0..6e35d8da72 100644
--- a/share/html/Admin/CustomFields/Modify.html
+++ b/share/html/Admin/CustomFields/Modify.html
@@ -442,6 +442,8 @@ if ( $ARGS{'Update'} && $id ne 'new' ) {
push (@results, $msg);
}
+ $m->callback(CallbackName => 'Massage', CustomField => $CustomFieldObj, Results => \@results, ARGSRef => \%ARGS);
+
# Update any existing values
my $values = $CustomFieldObj->ValuesObj;
while ( my $value = $values->Next ) {
diff --git a/share/html/Articles/Article/Elements/EditCustomFields b/share/html/Articles/Article/Elements/EditCustomFields
index 5c8b7a068f..bab37b5bd9 100644
--- a/share/html/Articles/Article/Elements/EditCustomFields
+++ b/share/html/Articles/Article/Elements/EditCustomFields
@@ -56,6 +56,7 @@
Cols => 70
&>
</&>
+ $m->callback( CallbackName => 'AfterCustomFieldValue', CustomField => $CustomField, Object => $ArticleObj);
% }
<%INIT>
my $CustomFields;
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list