Browse Source

added view vars to serialize

chris 11 years ago
parent
commit
397d75035f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Controller/Component/AjaxComponent.php

+ 2 - 1
Controller/Component/AjaxComponent.php

@@ -112,7 +112,8 @@ class AjaxComponent extends Component {
 
 		$this->Controller->autoRender = true;
 		$this->Controller->set('_redirect', compact('url', 'status', 'exit'));
-		$this->Controller->set('_serialize', array('_redirect'));
+		$content = $this->Controller->viewVars;
+		$this->Controller->set('_serialize', array('_redirect', 'content'));
 
 		return false;
 	}