diff options
author | ivan <ivan> | 2002-02-22 12:31:40 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-02-22 12:31:40 +0000 |
commit | eca2a638625ac22a64b9807d9c4c7ee9a5090ebb (patch) | |
tree | fb66aab470d9e7ab67a1a492733a366356099ace /httemplate/config | |
parent | 51784f457196136430470212af7a40278c0f9c94 (diff) |
fixup <SELECT> configuration editing, fixes Bug#350
Diffstat (limited to 'httemplate/config')
-rw-r--r-- | httemplate/config/config-process.cgi | 2 | ||||
-rw-r--r-- | httemplate/config/config-view.cgi | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ </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> |