projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add badly-named new report
[freeside.git]
/
httemplate
/
config
/
config-process.cgi
diff --git
a/httemplate/config/config-process.cgi
b/httemplate/config/config-process.cgi
index
6905129
..
2597132
100644
(file)
--- a/
httemplate/config/config-process.cgi
+++ b/
httemplate/config/config-process.cgi
@@
-26,12
+26,18
@@
#$conf->delete($i->key);
push @delete, $i->key;
}
#$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);
}
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++;
} else {
}
$n++;
@@
-43,4
+49,3
@@
%>
<%= $cgi->redirect("config-view.cgi") %>
%>
<%= $cgi->redirect("config-view.cgi") %>
-