Permalink
Browse files

(Fixes issue 1047)

  • Loading branch information...
qiang.xue
qiang.xue committed Jun 24, 2010
1 parent 788af0d commit 8bb5c9a279308c762013dcba081bc8e89cef591f
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGELOG
  2. +1 −1 framework/web/auth/CPhpAuthManager.php
View
@@ -7,6 +7,7 @@ Version 1.1.3 to be released
- Bug #856: Logout doesn't work when CWebUser::identityCookie is configured and allowAutoLogin is set true (Qiang)
- Bug #1027: CButtonColumn->buttons is ignored (Sam Dark)
- 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 #1142: Fixed the character encoding in polish translations (pawel.drylo)
- Bug #1149: CHtml::resolveName() does not work with multiple dimensional attributes (Qiang)
@@ -321,7 +321,7 @@ public function getAuthItem($name)
*/
public function saveAuthItem($item,$oldName=null)
{
- if(($newName=$item->getName())!==$oldName) // name changed
+ if($oldName!==null && ($newName=$item->getName())!==$oldName) // name changed
{
if(isset($this->_items[$newName]))
throw new CException(Yii::t('yii','Unable to change the item name. The name "{name}" is already used by another item.',array('{name}'=>$newName)));

0 comments on commit 8bb5c9a

Please sign in to comment.