diff --git a/html/Admin/Elements/SelectCustomFieldLookupType b/html/Admin/Elements/SelectCustomFieldLookupType index f3e970b..51c6835 100644 --- a/html/Admin/Elements/SelectCustomFieldLookupType +++ b/html/Admin/Elements/SelectCustomFieldLookupType @@ -47,7 +47,7 @@ %# END BPS TAGGED BLOCK }}} <%INIT> diff --git a/html/Admin/Elements/SelectCustomFieldType b/html/Admin/Elements/SelectCustomFieldType index d1d4ed3..d1d4638 100755 --- a/html/Admin/Elements/SelectCustomFieldType +++ b/html/Admin/Elements/SelectCustomFieldType @@ -47,7 +47,7 @@ %# END BPS TAGGED BLOCK }}} <%INIT> diff --git a/html/Admin/Elements/SelectScrip b/html/Admin/Elements/SelectScrip index 7f1e1c7..4bf80a3 100755 --- a/html/Admin/Elements/SelectScrip +++ b/html/Admin/Elements/SelectScrip @@ -47,11 +47,11 @@ %# END BPS TAGGED BLOCK }}} %while (my $ScripAction = $ScripActions->Next) { %} diff --git a/html/Admin/Elements/SelectScripCondition b/html/Admin/Elements/SelectScripCondition index e0b71ee..e75d5c7 100755 --- a/html/Admin/Elements/SelectScripCondition +++ b/html/Admin/Elements/SelectScripCondition @@ -47,11 +47,11 @@ %# END BPS TAGGED BLOCK }}} - - + + <%INIT> my ($SingleDefault, $MultipleDefault); if ($Default == 1) { - $SingleDefault = "SELECTED"; + $SingleDefault = qq[ selected="selected"]; } elsif ($Default == 0 ) { - $MultipleDefault = "SELECTED"; + $MultipleDefault = qq[ selected="selected"]; } diff --git a/html/Admin/Elements/SelectStage b/html/Admin/Elements/SelectStage index fe89cef..6ac16d4 100644 --- a/html/Admin/Elements/SelectStage +++ b/html/Admin/Elements/SelectStage @@ -48,7 +48,7 @@ %while (my $Template = $PrimaryTemplates->Next) { %} %while (my $Template = $OtherTemplates->Next) { %} diff --git a/html/Elements/EditCustomFieldSelect b/html/Elements/EditCustomFieldSelect index 560d4c6..c173f08 100644 --- a/html/Elements/EditCustomFieldSelect +++ b/html/Elements/EditCustomFieldSelect @@ -56,7 +56,7 @@ %# XXX - Hide this select from w3m? <%ARGS> diff --git a/html/Elements/SelectLang b/html/Elements/SelectLang index 92d8191..9cb03aa 100755 --- a/html/Elements/SelectLang +++ b/html/Elements/SelectLang @@ -50,7 +50,7 @@ % } % foreach my $lang (@lang) { - % } diff --git a/html/Elements/SelectStatus b/html/Elements/SelectStatus index 018cdf4..6d4d5d6 100755 --- a/html/Elements/SelectStatus +++ b/html/Elements/SelectStatus @@ -47,11 +47,11 @@ %# END BPS TAGGED BLOCK }}} <%ONCE> diff --git a/html/Elements/SelectTicketSortBy b/html/Elements/SelectTicketSortBy index bd2f6be..4a07b68 100755 --- a/html/Elements/SelectTicketSortBy +++ b/html/Elements/SelectTicketSortBy @@ -47,7 +47,7 @@ %# END BPS TAGGED BLOCK }}} diff --git a/html/Elements/SelectTicketTypes b/html/Elements/SelectTicketTypes index 134374a..8148a32 100755 --- a/html/Elements/SelectTicketTypes +++ b/html/Elements/SelectTicketTypes @@ -47,7 +47,7 @@ %# END BPS TAGGED BLOCK }}} diff --git a/html/Elements/SelectWatcherType b/html/Elements/SelectWatcherType index 33268af..c2dd6e9 100755 --- a/html/Elements/SelectWatcherType +++ b/html/Elements/SelectWatcherType @@ -50,7 +50,7 @@ % } %for my $option (@types) { - + %} diff --git a/html/Search/Elements/SelectChartType b/html/Search/Elements/SelectChartType index ee82374..20de764 100644 --- a/html/Search/Elements/SelectChartType +++ b/html/Search/Elements/SelectChartType @@ -51,6 +51,6 @@ $Default => 'bar' diff --git a/html/Search/Elements/SelectGroup b/html/Search/Elements/SelectGroup index 8bd5f84..dcf5158 100644 --- a/html/Search/Elements/SelectGroup +++ b/html/Search/Elements/SelectGroup @@ -50,7 +50,7 @@ % } %while (my $group = $groups->Next) { - + %} diff --git a/html/Search/Elements/SelectPersonType b/html/Search/Elements/SelectPersonType index eb606cd..d7f5bb6 100644 --- a/html/Search/Elements/SelectPersonType +++ b/html/Search/Elements/SelectPersonType @@ -51,11 +51,11 @@ % } % for my $option (@types) { % if ($Suffix) { - + % next; % } % foreach my $subtype (@subtypes) { - + % } % } diff --git a/html/Ticket/Elements/ShowDates b/html/Ticket/Elements/ShowDates index 2aa85e1..6697870 100755 --- a/html/Ticket/Elements/ShowDates +++ b/html/Ticket/Elements/ShowDates @@ -79,7 +79,7 @@ <&|/l&>Updated: % my $UpdatedString = $Ticket->LastUpdated ? loc("[_1] by [_2]", $Ticket->LastUpdatedAsString, $Ticket->LastUpdatedByObj->Name) : loc("Never"); % if ($UpdatedLink) { - <% $UpdatedString | h %> + <% $UpdatedString | h %> % } else { <% $UpdatedString | h %> % } diff --git a/html/Ticket/Update.html b/html/Ticket/Update.html index 9bb459c..cffa0cc 100755 --- a/html/Ticket/Update.html +++ b/html/Ticket/Update.html @@ -86,10 +86,10 @@ <&|/l&>Update Type: @@ -185,11 +185,11 @@ if ($DefaultStatus eq 'resolved') { my ($CommentDefault, $ResponseDefault); if ($Action ne 'Respond') { - $CommentDefault = "SELECTED"; + $CommentDefault = qq[ selected="selected"]; $ResponseDefault = ""; } else { $CommentDefault = ""; - $ResponseDefault = "SELECTED"; + $ResponseDefault = qq[ selected="selected"]; } diff --git a/lib/RT/Interface/Web/QueryBuilder/Tree.pm b/lib/RT/Interface/Web/QueryBuilder/Tree.pm index 2b17205..8c52563 100755 --- a/lib/RT/Interface/Web/QueryBuilder/Tree.pm +++ b/lib/RT/Interface/Web/QueryBuilder/Tree.pm @@ -139,7 +139,7 @@ sub GetQueryAndOptionList { my $list = $self->__LinearizeTree; foreach my $e( @$list ) { $e->{'DEPTH'} = $e->{'NODE'}->getDepth; - $e->{'SELECTED'} = (grep $_ == $e->{'NODE'}, @$selected_nodes)? 'selected' : ''; + $e->{'SELECTED'} = (grep $_ == $e->{'NODE'}, @$selected_nodes)? qq[ selected="selected"] : ''; } return (join ' ', map $_->{'TEXT'}, @$list), $list;