From: ivan Date: Fri, 22 Feb 2002 12:31:40 +0000 (+0000) Subject: fixup configuration editing, fixes Bug#350 --- diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index 50f0d34ff..a296abfe4 100644 --- a/httemplate/config/config-process.cgi +++ b/httemplate/config/config-process.cgi @@ -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 { diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index b041adaed..225c29507 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -32,7 +32,7 @@ <% } elsif ( $type eq 'checkbox' ) { %> YES' : 'ff0000">NO' %> - <% } elsif ( $type eq 'text' ) { %> + <% } elsif ( $type eq 'text' || $type eq 'select' ) { %> <%= $conf->exists($i->key) ? $conf->config($i->key) : '' %> <% } else { %>