summaryrefslogtreecommitdiff
path: root/FS/FS/saved_search.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-09-08 11:05:26 -0700
committerMark Wells <mark@freeside.biz>2016-09-08 11:05:26 -0700
commit1768c2039b6ff3d68bd3b711621d82dcbf5eab75 (patch)
treed0eb9024f64415c49c94a97ffe5441c404696d4c /FS/FS/saved_search.pm
parent54ef6b82c54b5d4c6336ab9fe96aed56fc92963c (diff)
fix UI links and CSS in searches delivered by email, #72101
Diffstat (limited to 'FS/FS/saved_search.pm')
-rw-r--r--FS/FS/saved_search.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/FS/FS/saved_search.pm b/FS/FS/saved_search.pm
index 252dc71..caaf7fe 100644
--- a/FS/FS/saved_search.pm
+++ b/FS/FS/saved_search.pm
@@ -219,11 +219,10 @@ sub render {
local $FS::CurrentUser::CurrentUser = $self->access_user;
local $FS::Mason::Request::QUERY_STRING = $self->query_string;
- local $FS::Mason::Request::FSURL = ''; #?
-# local $ENV{SERVER_NAME} = 'localhost'; #?
-# local $ENV{SCRIPT_NAME} = '/freeside'. $self->path;
+ local $FS::Mason::Request::FSURL = $self->access_user->option('rooturl');
my $mason_request = $fs_interp->make_request(comp => '/' . $self->path);
+ $mason_request->notes('inline_stylesheet', 1);
local $@;
eval { $mason_request->exec(); };