X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fpref%2Fpref-process.html;h=96615169beb25b6976f4912ab5b29c5812fb7b59;hb=1c051d721533307ff9d1879deb3107e3a51058fa;hp=3f9b706867868d95c865f575d45b05468218166a;hpb=aa9b309de1b0c627b3371f60c9b614250014b81d;p=freeside.git diff --git a/httemplate/pref/pref-process.html b/httemplate/pref/pref-process.html index 3f9b70686..96615169b 100644 --- a/httemplate/pref/pref-process.html +++ b/httemplate/pref/pref-process.html @@ -27,10 +27,13 @@ % % } % +% my %param = $access_user->options; +% % #XXX autogen % my @paramlist = qw( menu_position % email_address % vonage-fromnumber vonage-username vonage-password +% show_pkgnum show_db_profile save_db_profile % height width availHeight availWidth colorDepth % ); % @@ -40,9 +43,11 @@ % last; % } % -% $error ||= $access_user->replace( { -% map { $_ => scalar($cgi->param($_)) } @paramlist, -% } ); +% foreach (@paramlist) { +% $param{$_} = scalar($cgi->param($_)); +% } +% +% $error ||= $access_user->replace( \%param ); % % if ( $error ) { % $cgi->param('error', $error);