Skip to content

Commit

Permalink
Fixed #3922
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 27, 2019
1 parent 97da9fa commit cba5d60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

### Fixed
- Fixed a bug where Control Panel content areas weren’t getting their bottom padding applied in Firefox. ([#3874](https://github.com/craftcms/cms/issues/3874))
- Fixed a PHP error that occurred on the front-end if two routes defined in Settings → Routes had the same URI pattern. ([#3922](https://github.com/craftcms/cms/issues/3922))

## 3.1.15 - 2019-02-26

Expand Down
5 changes: 4 additions & 1 deletion src/services/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ public function getProjectConfigRoutes(): array
$sortOrders = [];

foreach ($routes as $route) {
if (empty($route['site']) || $route['site'] == $currentSiteUid) {
if (
!isset($this->_projectConfigRoutes[$route['uriPattern']]) &&
(empty($route['site']) || $route['site'] == $currentSiteUid)
) {
$this->_projectConfigRoutes[$route['uriPattern']] = ['template' => $route['template']];
$sortOrders[] = $route['sortOrder'];
}
Expand Down

0 comments on commit cba5d60

Please sign in to comment.