2 my $path = $cgi->param('path');
3 my $name = $cgi->param('name');
4 my $tablenum = $cgi->param('num') || '';
5 my $value = $cgi->param('value');
7 my $error = $FS::CurrentUser::CurrentUser->set_page_pref($path, $name, $tablenum, $value);
8 my $result = { 'error' => $error }; # in case someone cares
10 http_header('Content-Type', 'application/json');
12 <% encode_json($result) %>