diff options
author | ivan <ivan> | 2011-04-18 23:49:54 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-04-18 23:49:54 +0000 |
commit | 01f60974743197ac14e569c16c68a0c2ff3a5bd4 (patch) | |
tree | 140ae6bfc2a89a2b635c81859a74eff5587ef71a /rt/share/html/Admin/Elements/EditCustomFields | |
parent | b5c4237a34aef94976bc343c8d9e138664fc3984 (diff) |
commiting rt 3.8.10 to HEAD
Diffstat (limited to 'rt/share/html/Admin/Elements/EditCustomFields')
-rwxr-xr-x | rt/share/html/Admin/Elements/EditCustomFields | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/rt/share/html/Admin/Elements/EditCustomFields b/rt/share/html/Admin/Elements/EditCustomFields index bf65c9e37..91d5cffaa 100755 --- a/rt/share/html/Admin/Elements/EditCustomFields +++ b/rt/share/html/Admin/Elements/EditCustomFields @@ -59,10 +59,7 @@ Rows => 0, Page => 1, Format => $format, - DisplayFormat => - $id - ? ("'__RemoveCheckBox.{$id}__',". $format .", '__MoveCF.{$id}__'") - : ("'__CheckBox.{RemoveCustomField}__',". $format .", '__MoveCF.{$id}__'"), + DisplayFormat => $display_format, AllowSorting => 0, ShowEmpty => 0, PassArguments => [ @@ -151,6 +148,8 @@ if ( $UpdateCFs ) { } } +$m->callback(CallbackName => 'UpdateExtraFields', Results => \@results, Object => $Object, %ARGS); + my $applied_cfs = RT::CustomFields->new( $session{'CurrentUser'} ); $applied_cfs->LimitToLookupType($lookup); $applied_cfs->LimitToGlobalOrObjectId($id); @@ -162,6 +161,11 @@ $not_applied_cfs->LimitToNotApplied( $id ? ($id, 0) : (0) ); my $format = RT->Config->Get('AdminSearchResultFormat')->{'CustomFields'}; +my $display_format = $id + ? ("'__RemoveCheckBox.{$id}__',". $format .", '__MoveCF.{$id}__'") + : ("'__CheckBox.{RemoveCustomField}__',". $format .", '__MoveCF.{$id}__'"); +$m->callback(CallbackName => 'EditDisplayFormat', DisplayFormat => \$display_format, id => $id); + </%INIT> <%ARGS> $Object |