beforeRender() condition in app_controller.php stops CakeError instances

XMLWordPrintable

      In app_controller.php in the beforeRender() we have this:

      if($req != 'Page') // Page doesn't have an actual model
      $model = $this->$req;

      It should instead be

      if($req != 'Page' and $req != 'CakeError') // Page doesn't have an actual model
      $model = $this->$req;

      so that instances of CakeError can "get through".

            Assignee:
            Scott Koranda SCG (Inactive)
            Reporter:
            Scott Koranda SCG (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: