Development

#2926: controller.patch

You must first sign up to be able to contribute.

Ticket #2926: controller.patch

File controller.patch, 0.7 kB (added by gnat, 1 year ago)

fixe missing try/catch

  • controller/sfController.class.php

    old new  
    533533      $this->getContext()->getRequest()->setAttribute($module.'_'.$action.'_view_name', $viewName, 'symfony/action/view'); 
    534534    } 
    535535 
    536     // forward to the mail action 
    537     $this->forward($module, $action); 
    538  
     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      throw $e; 
     547    } 
    539548    // grab the action entry from this forward 
    540549    $actionEntry = $actionStack->getEntry($index); 
    541550