X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-process.cgi;h=2597132609524fc2d0a20050090bc16eff073ac4;hp=6905129776c7fd9516851d23ac04ccee59e5da10;hb=cec266740d89b82ce9075954928c5b336d0ec18e;hpb=1904d44bb20adf403e21513db7470153f751d605 diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index 690512977..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++; @@ -43,4 +49,3 @@ %> <%= $cgi->redirect("config-view.cgi") %> -