Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentConroller::getViewer() fails to correctly resolve templates for actions #1244

Closed
dhensby opened this issue Jul 13, 2015 · 1 comment
Closed

Comments

@dhensby
Copy link
Contributor

dhensby commented Jul 13, 2015

This code fails to execute the correct template in 3.2:

class Page_Controller extends ContentController {

    private static $allowed_actions = array(
       'success',
    );

}

This executes $this->renderWith(array('Page_success', 'Controller')); instead of $this->renderWith(array('Page_success', 'Page'));

@dhensby dhensby added this to the 3.2.0 beta 2 milestone Jul 13, 2015
@kinglozzer kinglozzer reopened this Jul 23, 2015
@kinglozzer
Copy link
Member

Oops, accidental button click!

kinglozzer added a commit to kinglozzer/silverstripe-cms that referenced this issue Jul 23, 2015
kinglozzer added a commit to kinglozzer/silverstripe-cms that referenced this issue Jul 23, 2015
dhensby added a commit that referenced this issue Jul 27, 2015
…-templates

FIX: ContentController::getViewer() not returning all found templates (fixes #1244)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants