fix bug with config having a value not in the select
authorivan <ivan>
Fri, 5 Jul 2002 23:32:08 +0000 (23:32 +0000)
committerivan <ivan>
Fri, 5 Jul 2002 23:32:08 +0000 (23:32 +0000)
httemplate/config/config.cgi

index c050a19..fd9a829 100644 (file)
@@ -70,7 +70,7 @@ function SafeOnsubmit() {
                 <option value="<%= $value %>"<%= $value eq $conf->config($i->key) || ( $type eq 'selectmultiple' && grep { $_ eq $value } $conf->config($i->key) ) ? ' SELECTED' : '' %>><%= $value %>
               <% } %>
               <% if ( $conf->exists($i->key) && $conf->config($i->key) && ! grep { $conf->config($i->key) eq $_ } @{$i->select_enum}) { %>
-                <option value=<%= $conf->config($i->key) %> SELECTED><%= conf->config($i->key) %>
+                <option value=<%= $conf->config($i->key) %> SELECTED><%= $conf->config($i->key) %>
               <% } %>
             </select>
           <% } elsif ( $type eq 'editlist' )  { %>