[Rt-commit] r19242 - in rt/3.8/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Thu Apr 16 20:04:14 EDT 2009
Author: sartak
Date: Thu Apr 16 20:04:13 2009
New Revision: 19242
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/Dashboards/Queries.html
Log:
r82235 at onn: sartak | 2009-04-16 20:04:06 -0400
Factor out $portlet->{portlet_type}
Modified: rt/3.8/trunk/share/html/Dashboards/Queries.html
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Queries.html (original)
+++ rt/3.8/trunk/share/html/Dashboards/Queries.html Thu Apr 16 20:04:13 2009
@@ -95,10 +95,12 @@
for my $pane (keys %$panes) {
for my $portlet (@{ $panes->{$pane} }) {
my $name;
- if ($portlet->{portlet_type} eq 'search') {
- $name = join '-', 'search', $portlet->{id}, $portlet->{privacy};
+ my $type = $portlet->{portlet_type};
+
+ if ($type eq 'search') {
+ $name = join '-', $type, $portlet->{id}, $portlet->{privacy};
}
- elsif ($portlet->{portlet_type} eq 'component') {
+ elsif ($type eq 'component') {
$name = join '-', 'component', $portlet->{component};
}
More information about the Rt-commit
mailing list