From 1768c2039b6ff3d68bd3b711621d82dcbf5eab75 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 8 Sep 2016 11:05:26 -0700 Subject: fix UI links and CSS in searches delivered by email, #72101 --- FS/FS/saved_search.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'FS') diff --git a/FS/FS/saved_search.pm b/FS/FS/saved_search.pm index 252dc71e5..caaf7fea8 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(); }; -- cgit v1.2.1