[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-467-g1d3e45d
? sunnavy
sunnavy at bestpractical.com
Wed Aug 18 00:21:07 EDT 2010
The branch, 3.9-trunk has been updated
via 1d3e45d8152ebb3fc08df49e57c2ea544b09c397 (commit)
via 74207b9cd207e26f70a108f3f2a38b09bdc6e7a1 (commit)
from b1d08b61fe36c8d9e82a1800f1e1095823ec0419 (commit)
Summary of changes:
share/html/Admin/CustomFields/Modify.html | 6 ++++++
share/html/Admin/Elements/AddCustomFieldValue | 2 ++
share/html/Admin/Elements/EditCustomFieldValues | 1 +
3 files changed, 9 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 74207b9cd207e26f70a108f3f2a38b09bdc6e7a1
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Aug 18 12:06:46 2010 +0800
add After(Create|Update)CustomFieldValue callbacks
diff --git a/share/html/Admin/CustomFields/Modify.html b/share/html/Admin/CustomFields/Modify.html
index cb9e241..773bdaa 100644
--- a/share/html/Admin/CustomFields/Modify.html
+++ b/share/html/Admin/CustomFields/Modify.html
@@ -249,6 +249,7 @@ if ( $ARGS{'Update'} && $id ne 'new' ) {
my ($id, $msg) = $value->$mutator( $ARGS{$param} );
push (@results, $msg);
}
+ $m->callback(CallbackName => 'AfterUpdateCustomFieldValue', CustomFieldObj => $CustomFieldObj, CustomFieldValueObj => $value, ARGSRef => \%ARGS );
}
# Add any new values
@@ -260,6 +261,11 @@ if ( $ARGS{'Update'} && $id ne 'new' ) {
$_ => $ARGS{ $paramtag ."-new-$_" } } qw/ Name Description SortOrder Category/
);
push (@results, $msg);
+
+ my $cfv = RT::CustomFieldValue->new( $session{CurrentUser} );
+ $cfv->Load($id);
+ $m->callback(CallbackName => 'AfterCreateCustomFieldValue',
+CustomFieldObj => $CustomFieldObj, CustomFieldValueObj => $cfv, ARGSRef => \%ARGS );
}
}
commit 1d3e45d8152ebb3fc08df49e57c2ea544b09c397
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Aug 18 12:07:33 2010 +0800
AfterCustomFieldValueInput callbacks
diff --git a/share/html/Admin/Elements/AddCustomFieldValue b/share/html/Admin/Elements/AddCustomFieldValue
index ecf6976..31a1a05 100755
--- a/share/html/Admin/Elements/AddCustomFieldValue
+++ b/share/html/Admin/Elements/AddCustomFieldValue
@@ -78,6 +78,8 @@
% }
</td>
% }
+
+% $m->callback(CallbackName => 'AfterCustomFieldValueInput', CustomFieldObj => $CustomField, ARGSRef => \%ARGS );
</tr>
</table>
diff --git a/share/html/Admin/Elements/EditCustomFieldValues b/share/html/Admin/Elements/EditCustomFieldValues
index 4c5e326..9f313d8 100755
--- a/share/html/Admin/Elements/EditCustomFieldValues
+++ b/share/html/Admin/Elements/EditCustomFieldValues
@@ -84,6 +84,7 @@
% }
</td>
% }
+% $m->callback(CallbackName => 'AfterCustomFieldValueInput', CustomFieldObj => $CustomField, CustomFieldValueObj => $value, ARGSRef => \%ARGS );
</tr>
% }
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list