summaryrefslogtreecommitdiff
path: root/FS/FS/saved_search.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-09-08 11:26:12 -0700
committerMark Wells <mark@freeside.biz>2016-09-08 11:26:12 -0700
commit91bcf35460fb2b33c71ab6b078ba049875a18cd5 (patch)
treec8053e362cecd4c74596d134f16eff4c3e55898b /FS/FS/saved_search.pm
parent87194c546606205e78e36f99ec1f2ae6f0a9cafc (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(); };