Browse Source

update common component

Stefan Dickmann 12 years ago
parent
commit
147782c9ed
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Controller/Component/CommonComponent.php

+ 1 - 2
Controller/Component/CommonComponent.php

@@ -95,8 +95,7 @@ class CommonComponent extends Component {
 			// The header can be read with JavaScript and a custom Message can be displayed
 			$this->Controller->response->header('X-Ajax-Flashmessage', json_encode($ajaxMessages));
 
-			// AJAX debug off
-			Configure::write('debug', 0);
+			$this->Session->delete('messages');
 		}
 
 		// Custom options