summaryrefslogtreecommitdiff
path: root/rt/html/Widgets
diff options
context:
space:
mode:
authorivan <ivan>2008-03-02 04:11:51 +0000
committerivan <ivan>2008-03-02 04:11:51 +0000
commit8103c1fc1b2c27a6855feadf26f91b980a54bc52 (patch)
tree631dd45606c37c00d9026e14ecc3ee3700b4b51c /rt/html/Widgets
parent9c68254528b6f2c7d8c1921b452fa56064783782 (diff)
import rt 3.6.6
Diffstat (limited to 'rt/html/Widgets')
-rw-r--r--rt/html/Widgets/SavedSearch12
-rw-r--r--rt/html/Widgets/SelectionBox9
-rwxr-xr-xrt/html/Widgets/TitleBoxStart2
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=" &uarr; " />
<input name="movedown" type="submit" class="button" value=" &darr; " />
+% }
<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>