diff --git a/app/Abstracts/Report.php b/app/Abstracts/Report.php index 9a19ab320..80a157af1 100644 --- a/app/Abstracts/Report.php +++ b/app/Abstracts/Report.php @@ -596,12 +596,18 @@ abstract class Report { $url = company_id() . '/common/reports/' . $this->model->id . '/' . $action; - $search = request('search'); + $request = request()->all(); + $parameters = ''; - if (!empty($search)) { - $url .= '?search=' . $search; + foreach ($request as $key => $value) { + $parameters .= empty($parameters) ? ('?' . $key . '=' . $value) : ('&' . $key . '=' . $value); } + if (!empty($parameters)) { + $url .= $parameters; + } + + return $url; }