[Rt-commit] rt branch, 4.4/ticket-assets-widgets-off-by-default, created. rt-4.2.12-369-g60396b0
Todd Wade
todd at bestpractical.com
Fri Oct 30 15:02:14 EDT 2015
The branch, 4.4/ticket-assets-widgets-off-by-default has been created
at 60396b0afd21313650c4a0704af9a04dde98a5a6 (commit)
- Log -----------------------------------------------------------------
commit 60396b0afd21313650c4a0704af9a04dde98a5a6
Author: Todd Wade <todd at bestpractical.com>
Date: Fri Oct 30 14:21:48 2015 -0400
Assets should be on NO queues by default, not ALL queues
Default the assets widget on the ticket create and display page to off
instead of on. To get the assets widgets on the ticket create and
display pages set @AssetQueues in RT_SiteConfig.pm.
Fixes [issues#31325]
diff --git a/share/html/Ticket/Elements/ShowAssets b/share/html/Ticket/Elements/ShowAssets
index 444500d..efce155 100644
--- a/share/html/Ticket/Elements/ShowAssets
+++ b/share/html/Ticket/Elements/ShowAssets
@@ -73,7 +73,7 @@ my $asset_queue;
if (RT->Config->Get('AssetQueues')) {
$asset_queue = 1 if grep {$_ eq $Ticket->QueueObj->Name} @{RT->Config->Get('AssetQueues')}
} else {
- $asset_queue = 1;
+ $asset_queue = 0;
}
return unless @linked_assets or ($Ticket->CurrentUserHasRight("ModifyTicket")
and $asset_queue);
diff --git a/share/html/Ticket/Elements/ShowAssetsOnCreate b/share/html/Ticket/Elements/ShowAssetsOnCreate
index 477aa5a..2402fae 100644
--- a/share/html/Ticket/Elements/ShowAssetsOnCreate
+++ b/share/html/Ticket/Elements/ShowAssetsOnCreate
@@ -65,7 +65,7 @@ my $asset_queue;
if (RT->Config->Get('AssetQueues')) {
$asset_queue = 1 if grep {$_ eq $QueueObj->Name} @{RT->Config->Get('AssetQueues')}
} else {
- $asset_queue = 1;
+ $asset_queue = 0;
}
return unless @linked_assets or $asset_queue;
-----------------------------------------------------------------------
More information about the rt-commit
mailing list