[Rt-commit] rt branch, 4.6/asset-actions-callback, created. rt-4.4.1-118-gc2f4c8d
Shawn Moore
shawn at bestpractical.com
Mon Dec 5 13:55:59 EST 2016
The branch, 4.6/asset-actions-callback has been created
at c2f4c8db446f5226e0bdf3722a5234a8c4dd4556 (commit)
- Log -----------------------------------------------------------------
commit c2f4c8db446f5226e0bdf3722a5234a8c4dd4556
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Mon Dec 5 18:41:36 2016 +0000
Add ActionsMenu callback to ShowAssets for tickets
Fixes: T#177159
diff --git a/share/html/Ticket/Elements/ShowAssets b/share/html/Ticket/Elements/ShowAssets
index 113b6cc..e565abc 100644
--- a/share/html/Ticket/Elements/ShowAssets
+++ b/share/html/Ticket/Elements/ShowAssets
@@ -150,6 +150,7 @@ if ($Ticket->CurrentUserHasRight("ModifyTicket")) {
% $request_path =~ s!/{2,}!/!g;
% my $page = RT::Interface::Web::Menu->new();
% RT::Interface::Web::MenuBuilder::_BuildAssetMenuActionSubmenu( $request_path, Menu(), PageWidgets(), $page, Asset => $asset );
+% $m->callback( CallbackName => "ActionsMenu", Ticket => $Ticket, Asset => $asset, Menu => $page );
<& /Elements/Menu, menu => $page, id => 'asset-'.$asset->id.'-actions-menu', parent_id => 'asset-'.$asset->id &>
<script>
jQuery("#assets-accordion ul.toplevel").addClass('sf-menu sf-js-enabled sf-shadow').supersubs().superfish({ dropShadows: false, speed: 'fast', delay: 0 }).supposition()
-----------------------------------------------------------------------
More information about the rt-commit
mailing list