Optimize "Customer has a referring customer" condition, RT#74452
[freeside.git] / httemplate / misc / process / set_page_pref.html
1 <%init>
2 my $path = $cgi->param('path');
3 my $name = $cgi->param('name');
4 my $tablenum = $cgi->param('num') || '';
5 my $value = $cgi->param('value');
6
7 my $error = $FS::CurrentUser::CurrentUser->set_page_pref($path, $name, $tablenum, $value);
8 my $result = { 'error' => $error }; # in case someone cares
9
10 http_header('Content-Type', 'application/json');
11 </%init>
12 <% encode_json($result) %>