X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-process.cgi;h=2597132609524fc2d0a20050090bc16eff073ac4;hp=50f0d34ff095eff97ef9a3b999638d3a82903d8a;hb=b377b1408398c471689e35dabb1bf14ef263a644;hpb=a4c96748eb6eab29a70f3a944c6520283a635c78 diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index 50f0d34ff..259713260 100644 --- a/httemplate/config/config-process.cgi +++ b/httemplate/config/config-process.cgi @@ -26,12 +26,18 @@ #$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 { $conf->delete($i->key); } + } elsif ( $type eq 'editlist' || $type eq 'selectmultiple' ) { + if ( scalar(@{[ $cgi->param($i->key. $n) ]}) ) { + $conf->set($i->key, join("\n", @{[ $cgi->param($i->key. $n) ]} )); + } else { + $conf->delete($i->key); + } } else { } $n++;