Skip to content

Commit

Permalink
EditSummary: Make namespace parameter optional
Browse files Browse the repository at this point in the history
AdminScore: Fix redirect if user was not found
  • Loading branch information
MusikAnimal committed Jan 31, 2018
1 parent a611524 commit 1f2c82a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/AppBundle/Controller/AdminScoreController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use DateTime;
use Xtools\ProjectRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/AppBundle/Controller/EditSummaryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function indexAction(Request $request)
$params = $this->parseQueryParams($request);

// If we've got a project, user, and namespace, redirect to results.
if (isset($params['project']) && isset($params['username']) && isset($params['namespace'])) {
if (isset($params['project']) && isset($params['username'])) {
return $this->redirectToRoute('EditSummaryResult', $params);
}

Expand Down

0 comments on commit 1f2c82a

Please sign in to comment.