From 298ee700d95bcbcf9390eb34883738ae7b483941 Mon Sep 17 00:00:00 2001
From: gibus <gibus@easter-eggs.com>
Date: Thu, 9 Nov 2023 11:38:49 +0100
Subject: [PATCH] Add callback to allow extensions to process a custom field
 when created or updated

---
 share/html/Admin/CustomFields/Modify.html | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/share/html/Admin/CustomFields/Modify.html b/share/html/Admin/CustomFields/Modify.html
index beee4675a..26099c22f 100644
--- a/share/html/Admin/CustomFields/Modify.html
+++ b/share/html/Admin/CustomFields/Modify.html
@@ -442,6 +442,9 @@ if ( $ARGS{'Update'} && $id ne 'new' ) {
         push (@results, $msg);
     }
 
+    # Add oportunity for extensions to do something
+    $m->callback(CallbackName => 'Massage', CustomField => $CustomFieldObj, Results => \@results, ARGSRef => \%ARGS);
+
     # Update any existing values
     my $values = $CustomFieldObj->ValuesObj;
     while ( my $value = $values->Next ) {
-- 
2.30.2