Adding fix for #1168

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3317 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-07-29 17:52:12 +00:00
parent ad32fd4cf2
commit e683b7090b

View file

@ -272,7 +272,7 @@ class Controller extends Object{
if (empty($this->params['pass'])) {
$id = false;
} else {
$id = $this->params['pass'];
$id = $this->params['pass']['0'];
}
$cached = false;
$object = null;
@ -306,6 +306,7 @@ class Controller extends Object{
$uses = is_array($this->uses) ? $this->uses : array($this->uses);
foreach($uses as $modelClass) {
$id = false;
$cached = false;
$object = null;
$modelKey = Inflector::underscore($modelClass);