summaryrefslogtreecommitdiff
path: root/rt/share/html/Widgets/Form/Select
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Widgets/Form/Select')
-rw-r--r--rt/share/html/Widgets/Form/Select5
1 files changed, 4 insertions, 1 deletions
diff --git a/rt/share/html/Widgets/Form/Select b/rt/share/html/Widgets/Form/Select
index e77861740..4587f1d58 100644
--- a/rt/share/html/Widgets/Form/Select
+++ b/rt/share/html/Widgets/Form/Select
@@ -117,7 +117,10 @@ if ( $ValuesCallback ) {
}
}
unless (defined $DefaultLabel ) {
- $DefaultLabel = loc('Use system default ([_1])', join ', ', map{ loc($ValuesLabel{$_} || $_) } @DefaultValue);
+ $DefaultLabel = loc('Use system default ([_1])',
+ join ', ', map loc($ValuesLabel{$_} || $_), grep defined,
+ @DefaultValue
+ );
}
</%INIT>
</%METHOD>