Skip to content

Commit

Permalink
Fix major bug: hardcoded page id
Browse files Browse the repository at this point in the history
  • Loading branch information
ychadwick authored Dec 12, 2018
1 parent c8216cc commit 34419dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/PageSnapshotManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function findLastPageSnapshot($pageId)
->where('ps.page = :pageId')
->orderBy('ps.version', 'desc')
->setMaxResults(1)
->setParameter(':pageId', 2);
->setParameter(':pageId', $pageId);

try {
return $qb->getQuery()->getSingleResult();
Expand Down

0 comments on commit 34419dd

Please sign in to comment.