diff options
Diffstat (limited to 'rt/html/Widgets')
-rw-r--r-- | rt/html/Widgets/SavedSearch | 12 | ||||
-rw-r--r-- | rt/html/Widgets/SelectionBox | 9 | ||||
-rwxr-xr-x | rt/html/Widgets/TitleBoxStart | 2 |
3 files changed, 19 insertions, 4 deletions
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 <form method="post" action="<% $Action %>" name="SaveSearch"> <& /Search/Elements/EditSearches, Name => 'Owner', SearchType => $self->{SearchType}, AllowCopy => 0, CurrentSearch => $self->{CurrentSearch}, SearchId => $self->{SearchId}, Title => $Title &><br /> -% for my $field (@{$self->{SearchFields}}) { -<input type="hidden" class="hidden" name="<%$field%>" value="<%$ARGS{$field} || ''%>" /> +<%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} ) { +</%PERL> +<input type="hidden" class="hidden" name="<% $field %>" value="<% $value %>" /> +% } % } </form> <%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}{$_} %></option> % } </select> +% unless ($ARGS{'NoArrows'}) { <input name="moveup" type="submit" class="button" value=" ↑ " /> <input name="movedown" type="submit" class="button" value=" ↓ " /> +% } <input name="remove" type="submit" class="button" value="<&|/l&>Delete</&>" /> +% if ($ARGS{'Clear'}) { + <input name="clear" type="submit" class="button" value="<&|/l&>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 </%ARGS> |