diff --git a/classes/Rest/Controllers/WarehouseControllerProvider.php b/classes/Rest/Controllers/WarehouseControllerProvider.php index bc15aa14c4..553c567e15 100644 --- a/classes/Rest/Controllers/WarehouseControllerProvider.php +++ b/classes/Rest/Controllers/WarehouseControllerProvider.php @@ -361,7 +361,7 @@ public function searchHistory(Request $request, Application $app) } elseif ($jobId !== null && $recordId !== null && $realm !== null) { $result = $this->processJobByJobId($app, $user, $realm, $jobId, $action); } elseif ($recordId !== null && $realm !== null) { - $result = $this->processHistoryRecordRequest($request, $app, $user, $recordId, $action); + $result = $this->getHistoryById($request, $app, $recordId); } elseif ($realm !== null && $title !== null) { $result = $this->getHistoryByTitle($request, $app, $realm, $title); } elseif ($realm !== null) { @@ -1716,20 +1716,6 @@ private function processJobByJobId( ); } - /** - * @param Request $request - * @param Application $app - * @param XDUser $user - * @param int $recordId - * @param string $action - * @return \Symfony\Component\HttpFoundation\JsonResponse - */ - private function processHistoryRecordRequest(Request $request, Application $app, XDUser $user, $recordId, $action) - { - $url = $request->getBasePath() . $request->getPathInfo() . "/$recordId?".$request->getQueryString(); - return $app->redirect($url); - } - /** * @param Application $app * @param XDUser $user