summaryrefslogtreecommitdiff
path: root/httemplate/config
diff options
context:
space:
mode:
authorivan <ivan>2002-02-22 12:31:40 +0000
committerivan <ivan>2002-02-22 12:31:40 +0000
commiteca2a638625ac22a64b9807d9c4c7ee9a5090ebb (patch)
treefb66aab470d9e7ab67a1a492733a366356099ace /httemplate/config
parent51784f457196136430470212af7a40278c0f9c94 (diff)
fixup <SELECT> configuration editing, fixes Bug#350
Diffstat (limited to 'httemplate/config')
-rw-r--r--httemplate/config/config-process.cgi2
-rw-r--r--httemplate/config/config-view.cgi2
2 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi
index 50f0d34..a296abf 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 b041ada..225c295 100644
--- a/httemplate/config/config-view.cgi
+++ b/httemplate/config/config-view.cgi
@@ -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>