Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

(Fixes issue 1109)

  • Loading branch information...
commit e8d3a3da8f612dbf0e34201b7d9ab305fd02f07f 1 parent ce8bb9f
qiang.xue authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  CHANGELOG
  2. +1 −1  framework/db/ar/CActiveRecord.php
View
1  CHANGELOG
@@ -10,6 +10,7 @@ Version 1.1.3 to be released
- Bug #1046: Fixed the bug that CDbFixtureManager did not properly initialize the fixture data (Qiang)
- Bug #0147: Fixed the bug that changing CAuthItem.description value would cause an exception when using CPhpAuthManager (Qiang)
- Bug #1050: Fixed the bug that filter conditions were prefilled with default values when using an AR model in CGridView (Qiang)
+- Bug #1109: CActiveRecord::getRelated() did not refresh when setting the $refresh parameter to be true (Qiang)
- Bug #1142: Fixed the character encoding in polish translations (pawel.drylo)
- Bug #1149: CHtml::resolveName() does not work with multiple dimensional attributes (Qiang)
- Bug #1176: CVarDumper may omit some backslashes in the syntax-highlighted display (Qiang)
View
2  framework/db/ar/CActiveRecord.php
@@ -230,11 +230,11 @@ public function getRelated($name,$refresh=false,$params=array())
$exists=isset($this->_related[$name]) || array_key_exists($name,$this->_related);
if($exists)
$save=$this->_related[$name];
- unset($this->_related[$name]);
$r=array($name=>$params);
}
else
$r=$name;
+ unset($this->_related[$name]);
$finder=new CActiveFinder($this,$r);
$finder->lazyFind($this);
Please sign in to comment.
Something went wrong with that request. Please try again.