[Rt-commit] rt branch 5.0/pass-dashboard-arg-to-portlet-on-load created. rt-5.0.4-230-gf5ddc0b5c4
BPS Git Server
git at git.bestpractical.com
Sun Oct 1 23:01:04 UTC 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".
The branch, 5.0/pass-dashboard-arg-to-portlet-on-load has been created
at f5ddc0b5c4a26b9c4461d3380cfdf66c5bebe598 (commit)
- Log -----------------------------------------------------------------
commit f5ddc0b5c4a26b9c4461d3380cfdf66c5bebe598
Author: Brad Embree <brad at bestpractical.com>
Date: Sun Oct 1 15:59:29 2023 -0700
Pass Dashboard arg to the component being loaded
This allows creating portlets that can customize their behavior based on
what dashboard they are loaded on.
diff --git a/share/html/Dashboards/Elements/ShowPortlet/component b/share/html/Dashboards/Elements/ShowPortlet/component
index 73f53fe788..5d61a46203 100644
--- a/share/html/Dashboards/Elements/ShowPortlet/component
+++ b/share/html/Dashboards/Elements/ShowPortlet/component
@@ -72,5 +72,5 @@ if ($m->request_path =~ m{/SelfService/}) {
% RT->Logger->warning("You may need to replace the component 'Quicksearch' in the HomepageComponents config with 'QueueList'. See the UPGRADING-4.4 document.");
% }
% } else {
-% $m->comp($full_path, HasResults => $HasResults);
+% $m->comp($full_path, HasResults => $HasResults, Dashboard => $Dashboard);
% }
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list