[Rt-commit] rt branch, 4.4/rename-quick-search-to-queue-list, repushed
? sunnavy
sunnavy at bestpractical.com
Mon Nov 17 20:14:58 EST 2014
The branch 4.4/rename-quick-search-to-queue-list was deleted and repushed:
was b1c1808051a98b7b84f3020a4a1bc8cfbad46a88
now 5cb060e4a8cf6919c1f067aae52dcbefe901387b
1: b1c1808 ! 1: 5cb060e rename Quicksearch to QueueList
@@ -69,6 +69,38 @@
+ }
+
+ $attrs = RT::Attributes->new(RT->SystemUser);
++ $attrs->Limit( FIELD => 'Name', VALUE => 'Dashboard' );
++ while ( my $attr = $attrs->Next ) {
++ my $content = $attr->Content;
++ my $changed;
++ for my $pane ( qw/body sidebar/ ) {
++ my @new;
++ for my $value ( @{$content->{Panes}{$pane}} ) {
++ if ( $value->{component} eq 'Quicksearch' ) {
++ push @new,
++ {
++ %$value,
++ component => 'QueueList',
++ description => 'QueueList',
++ path => '/Elements/QueueList',
++ };
++ $changed = 1;
++ }
++ else {
++ push @new, $value;
++ }
++ }
++ $content->{Panes}{$pane} = \@new;
++ }
++ if ( $changed ) {
++ my ( $ret, $msg ) = $attr->SetContent($content);
++ unless ( $ret ) {
++ RT->Logger->error( "Failed to update content of attribute #" . $attr->id . ": $msg");
++ }
++ }
++ }
++
++ $attrs = RT::Attributes->new(RT->SystemUser);
+ $attrs->Limit( FIELD => 'Name', VALUE => 'Pref-QuickSearch' );
+ while ( my $attr = $attrs->Next ) {
+ my ( $ret, $msg ) = $attr->SetName('Pref-QueueList');
@@ -176,8 +208,8 @@
-my $unwanted = $session{'CurrentUser'}->UserObj->Preferences('QuickSearch', {});
-my $comp = $SplitByLifecycle? '/Elements/QueueSummaryByLifecycle' : '/Elements/QueueSummaryByStatus';
+RT->Deprecated(
-+ Instead => "QueueList",
-+ Message => "Quicksearch is deprecated",
++ Remove => '4.6',
++ Instead => 'QueueList',
+);
</%INIT>
-<%ARGS>
More information about the rt-commit
mailing list