Development

Changeset 7993

You must first sign up to be able to contribute.

Changeset 7993

Show
Ignore:
Timestamp:
03/20/08 01:21:14 (1 year ago)
Author:
Carl.Vondrick
Message:

1.0: fixed controller->getPresentationFor() fails when exception is thrown (closes #2926)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/controller/sfController.class.php

    r7791 r7993  
    534534    } 
    535535 
    536     // forward to the mail action 
    537     $this->forward($module, $action); 
     536    try 
     537    { 
     538      // forward to the mail action 
     539      $this->forward($module, $action); 
     540    } 
     541    catch (Exception $e) 
     542    { 
     543      // put render mode back 
     544      $this->setRenderMode($renderMode); 
     545 
     546      // remove viewName 
     547      if ($viewName) 
     548      { 
     549        $this->getContext()->getRequest()->getAttributeHolder()->remove($module.'_'.$action.'_view_name', 'symfony/action/view'); 
     550      } 
     551 
     552      throw $e; 
     553    } 
    538554 
    539555    // grab the action entry from this forward 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.