[Rt-commit] rt branch, 4.4/add-messages-assets-display, created. rt-4.4.2-241-g9a5aff466
Craig Kaiser
craig at bestpractical.com
Fri Jun 29 16:25:03 EDT 2018
The branch, 4.4/add-messages-assets-display has been created
at 9a5aff4667ff7352af52288b4eba56564e2c7809 (commit)
- Log -----------------------------------------------------------------
commit 9a5aff4667ff7352af52288b4eba56564e2c7809
Author: Craig Kaiser <craig at bestpractical.com>
Date: Tue Jun 26 15:10:59 2018 -0400
Provide a results array to pass messages to ListActions
diff --git a/share/html/Asset/Display.html b/share/html/Asset/Display.html
index 3a57f012a..e57f3f203 100644
--- a/share/html/Asset/Display.html
+++ b/share/html/Asset/Display.html
@@ -48,9 +48,9 @@
<& /Elements/Header, Title => loc("Asset #[_1]: [_2]", $asset->id, $asset->Name) &>
<& /Elements/Tabs &>
-% $m->callback(CallbackName => 'BeforeActionList', ARGSRef => \%ARGS, Asset => $asset);
+% $m->callback(CallbackName => 'BeforeActionList', ARGSRef => \%ARGS, Asset => $asset, Results => \@results);
-<& /Elements/ListActions &>
+<& /Elements/ListActions, actions => \@results &>
<span class="catalog <% CSSClass($asset->CatalogObj->Name) %>">
<& Elements/ShowSummary, AssetObj => $asset &>
@@ -70,6 +70,7 @@
$id => undef
</%args>
<%init>
+my @results;
my $asset = LoadAsset($id);
-$m->callback(CallbackName => 'BeforeDisplay', ARGSRef => \%ARGS, Asset => $asset);
+$m->callback(CallbackName => 'BeforeDisplay', ARGSRef => \%ARGS, Asset => $asset, Results => \@results);
</%init>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list