<&|/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;