summaryrefslogtreecommitdiff
path: root/httemplate/misc/process/set_page_pref.html
blob: a7f123116c3035bf78782a9e7969a16b1d760dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<%init>
my $path = $cgi->param('path');
my $name = $cgi->param('name');
my $tablenum = $cgi->param('num') || '';
my $value = $cgi->param('value');

my $error = $FS::CurrentUser::CurrentUser->set_page_pref($path, $name, $tablenum, $value);
my $result = { 'error' => $error }; # in case someone cares

http_header('Content-Type', 'application/json');
</%init>
<% encode_json($result) %>