summaryrefslogtreecommitdiff
path: root/rt/html/Elements/EditCustomFieldSelect
diff options
context:
space:
mode:
Diffstat (limited to 'rt/html/Elements/EditCustomFieldSelect')
-rw-r--r--rt/html/Elements/EditCustomFieldSelect3
1 files changed, 2 insertions, 1 deletions
diff --git a/rt/html/Elements/EditCustomFieldSelect b/rt/html/Elements/EditCustomFieldSelect
index db33a6839..2a2a64a1d 100644
--- a/rt/html/Elements/EditCustomFieldSelect
+++ b/rt/html/Elements/EditCustomFieldSelect
@@ -53,7 +53,8 @@
% if ($Values) {
<% $Values->HasEntry($value->Name) && ($selected = 1) && 'SELECTED' %>
% } elsif ($Default) {
- <% ($Default eq $value->Name) && ($selected = 1) && 'SELECTED' %>
+ <% (ref $Default ? (grep {$_ eq $value->Name} @{$Default}) : ($Default eq $value->Name))
+ && ($selected = 1) && 'SELECTED' %>
% }
><% $value->Name%></option>
% }