From 8103c1fc1b2c27a6855feadf26f91b980a54bc52 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 2 Mar 2008 04:11:51 +0000 Subject: import rt 3.6.6 --- rt/html/Widgets/SavedSearch | 12 ++++++++++-- rt/html/Widgets/SelectionBox | 9 +++++++++ rt/html/Widgets/TitleBoxStart | 2 -- 3 files changed, 19 insertions(+), 4 deletions(-) (limited to 'rt/html/Widgets') diff --git a/rt/html/Widgets/SavedSearch b/rt/html/Widgets/SavedSearch index b8313daf8..b873c2bcb 100644 --- a/rt/html/Widgets/SavedSearch +++ b/rt/html/Widgets/SavedSearch @@ -136,8 +136,16 @@ $args
<& /Search/Elements/EditSearches, Name => 'Owner', SearchType => $self->{SearchType}, AllowCopy => 0, CurrentSearch => $self->{CurrentSearch}, SearchId => $self->{SearchId}, Title => $Title &>
-% for my $field (@{$self->{SearchFields}}) { - +<%PERL> +foreach my $field ( @{$self->{SearchFields}} ) { + if ( ref($ARGS{$field}) && ref($ARGS{$field}) ne 'ARRAY' ) { + $RT::Logger->error("Couldn't store '$field'. it's reference to ". ref($ARGS{$field}) ); + next; + } + foreach my $value ( grep defined, ref($ARGS{$field})? @{ $ARGS{$field} } : $ARGS{$field} ) { + + +% } % }
<%ARGS> diff --git a/rt/html/Widgets/SelectionBox b/rt/html/Widgets/SelectionBox index 910b20b25..38ae7a04a 100644 --- a/rt/html/Widgets/SelectionBox +++ b/rt/html/Widgets/SelectionBox @@ -146,6 +146,10 @@ else { } } + if ($ARGS{clear}) { + $current = []; + } + $self->{Current} = $current; } @@ -201,9 +205,14 @@ selected="selected" ><% $self->{_item_map}{$_} %> % } +% unless ($ARGS{'NoArrows'}) { +% } +% if ($ARGS{'Clear'}) { + +% } % my $caption = ""; % unless ($self->{'AutoSave'}) { diff --git a/rt/html/Widgets/TitleBoxStart b/rt/html/Widgets/TitleBoxStart index 7edc8a154..1d8548d00 100755 --- a/rt/html/Widgets/TitleBoxStart +++ b/rt/html/Widgets/TitleBoxStart @@ -64,8 +64,6 @@ $title => '' $title_class => '' $titleright_href => undef $titleright => undef -$contentbg => "#dddddd" -$color => "#336699" $id => '' $hideable => 1 -- cgit v1.2.1