Permalink
Browse files

Fixed issue when using multiple listing pages

  • Loading branch information...
1 parent 70ce723 commit 4f2cb29a23b71a2649c2edeaf565945bf5dd985b @arambalakjian committed May 27, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 code/DataObjects/DataObjectAsPage.php
@@ -354,8 +354,9 @@ public function hasChangesOnStage()
public function getListingPage(){
$listingClass = $this->stat('listing_page_class');
-
- if(Controller::curr() instanceof $listingClass)
+ $controllerClass = $listingClass . "_Controller";
+
+ if(Controller::curr() instanceof $controllerClass)
{
$listingPage = Controller::curr();
}

0 comments on commit 4f2cb29

Please sign in to comment.