[Rt-commit] r6589 - in rt/branches/3.6-RELEASE: .
jesse at bestpractical.com
jesse at bestpractical.com
Wed Dec 6 14:17:53 EST 2006
Author: jesse
Date: Wed Dec 6 14:17:52 2006
New Revision: 6589
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/html/Elements/MyRT
Log:
r45868 at 114: jesse | 2006-12-06 13:29:38 -0500
* perltidy
Modified: rt/branches/3.6-RELEASE/html/Elements/MyRT
==============================================================================
--- rt/branches/3.6-RELEASE/html/Elements/MyRT (original)
+++ rt/branches/3.6-RELEASE/html/Elements/MyRT Wed Dec 6 14:17:52 2006
@@ -85,20 +85,18 @@
sub _show {
my $entry = shift;
- my $type = $entry->{type};
- if ($type eq 'component') {
- my $name = $entry->{name};
- # security check etc.
- $m->comp ($name, %{$entry->{arguments} || {}});
- }
- elsif ($type eq 'system') {
- $m->comp ('/Elements/ShowSearch', Name => $entry->{name});
- }
- elsif ($type eq 'saved') {
- $m->comp ('/Elements/ShowSearch', SavedSearch => $entry->{name});
- }
- else {
- $RT::Logger->error ("unknown portlet type $type");
+ my $type = $entry->{type};
+ if ( $type eq 'component' ) {
+ my $name = $entry->{name};
+
+ # security check etc.
+ $m->comp( $name, %{ $entry->{arguments} || {} } );
+ } elsif ( $type eq 'system' ) {
+ $m->comp( '/Elements/ShowSearch', Name => $entry->{name} );
+ } elsif ( $type eq 'saved' ) {
+ $m->comp( '/Elements/ShowSearch', SavedSearch => $entry->{name} );
+ } else {
+ $RT::Logger->error("unknown portlet type $type");
}
}
More information about the Rt-commit
mailing list