diff options
author | ivan <ivan> | 2011-04-18 23:15:19 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-04-18 23:15:19 +0000 |
commit | 75162bb14b3e38d66617077843f4dfdcaf09d5c4 (patch) | |
tree | d89dd49a476cf2f0859ed6a0adc2992ea6d69d04 /rt/share/html/Admin | |
parent | fc6209f398899f0211cfcedeb81a3cd65e04a941 (diff) |
import rt 3.8.10
Diffstat (limited to 'rt/share/html/Admin')
-rwxr-xr-x | rt/share/html/Admin/Elements/EditCustomFields | 12 | ||||
-rw-r--r-- | rt/share/html/Admin/Tools/Shredder/Elements/PluginHelp | 2 |
2 files changed, 9 insertions, 5 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 diff --git a/rt/share/html/Admin/Tools/Shredder/Elements/PluginHelp b/rt/share/html/Admin/Tools/Shredder/Elements/PluginHelp index 18c3fd3dd..daaa6b74a 100644 --- a/rt/share/html/Admin/Tools/Shredder/Elements/PluginHelp +++ b/rt/share/html/Admin/Tools/Shredder/Elements/PluginHelp @@ -65,7 +65,7 @@ unless( $file ) { use RT::Shredder::POD qw(); my $text = ''; -open my $io_handle, ">:scalar", \$text or die "Can't open scalar for write: $!"; +open( my $io_handle, ">:scalar", \$text ) or die "Can't open scalar for write: $!"; RT::Shredder::POD::plugin_html( $file, $io_handle ); if ( $Plugin eq 'Base' ) { $file =~ s/\.pm$/\/Search.pm/; |