Merging fix when using Controller::persistModel = true and a requestAction method is used

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3911 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-11-22 20:33:21 +00:00
parent 87af38c7dc
commit ca5f7d952c

View file

@ -300,7 +300,9 @@ class Controller extends Object {
loadModels();
uses('neat_array');
} elseif($this->uses === false) {
loadModel($this->modelClass);
if(!class_exists($this->modelClass)){
loadModel($this->modelClass);
}
}
if (class_exists($this->modelClass) && ($this->uses === false)) {