fixup <SELECT> configuration editing, fixes Bug#350
authorivan <ivan>
Fri, 22 Feb 2002 12:31:40 +0000 (12:31 +0000)
committerivan <ivan>
Fri, 22 Feb 2002 12:31:40 +0000 (12:31 +0000)
httemplate/config/config-process.cgi
httemplate/config/config-view.cgi

index 50f0d34..a296abf 100644 (file)
@@ -26,7 +26,7 @@
           #$conf->delete($i->key);
           push @delete, $i->key;
         }
-      } elsif ( $type eq 'text' )  {
+      } elsif ( $type eq 'text' || $type eq 'select' )  {
         if ( $cgi->param($i->key. $n) ne '' ) {
           $conf->set($i->key, $cgi->param($i->key. $n));
         } else {
index b041ada..225c295 100644 (file)
@@ -32,7 +32,7 @@
             </td></tr>
           <% } elsif ( $type eq 'checkbox' ) { %>
             <tr><td bgcolor="#<%= $conf->exists($i->key) ? '00ff00">YES' : 'ff0000">NO' %></td></tr>
-          <% } elsif ( $type eq 'text' )  { %>
+          <% } elsif ( $type eq 'text' || $type eq 'select' )  { %>
             <tr><td bgcolor="#ffffff"><%=  $conf->exists($i->key) ? $conf->config($i->key) : '' %></td></tr>
           <% } else { %>
             <tr><td>