[Rt-commit] r18959 - in rt/3.8/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Fri Mar 27 15:04:04 EDT 2009
Author: sartak
Date: Fri Mar 27 15:04:03 2009
New Revision: 18959
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/Dashboards/Queries.html
Log:
r81592 at onn: sartak | 2009-03-27 15:03:35 -0400
Allow absolute paths in dashboard portlets, don't always just prepend /Elements/
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 Fri Mar 27 15:04:03 2009
@@ -172,10 +172,15 @@
};
}
elsif ($portlet_type eq 'component') {
+ # Absolute paths stay absolute, relative paths go into
+ # /Elements. This way, extensions that add portlets work.
+ my $path = $item;
+ $path = "/Elements/$path" if substr($path, 0, 1) ne '/';
+
push @portlets, {
portlet_type => $portlet_type,
component => $item,
- path => "/Elements/$item",
+ path => $path,
description => $item,
pane => $pane,
};
More information about the Rt-commit
mailing list