Skip to content

Commit

Permalink
Fixed entry deletion
Browse files Browse the repository at this point in the history
Fixes #3372
  • Loading branch information
brandonkelly committed Oct 12, 2018
1 parent 2208a49 commit 56c29bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes for Craft CMS 3.x

## Unreleased

### Fixed
- Fixed an error that occurred when deleting an entry from the Edit Entry page. ([#3372](https://github.com/craftcms/cms/issues/3372))


## 3.0.27 - 2018-10-11

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/EntriesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ public function actionDeleteEntry()
$request = Craft::$app->getRequest();
$entryId = $request->getRequiredBodyParam('entryId');
$siteId = $request->getBodyParam('siteId');
$entry = $request->getEntryById($entryId, $siteId);
$entry = Craft::$app->getEntries()->getEntryById($entryId, $siteId);

if (!$entry) {
throw new NotFoundHttpException('Entry not found');
Expand Down

0 comments on commit 56c29bb

Please sign in to comment.