"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/validators/CUniqueValidator.php" between
yii-1.1.18.018a89.tar.gz and yii-1.1.19.5790cb.tar.gz

About: Yii is a high-performance component-based PHP framework for developing large-scale Web applications.

CUniqueValidator.php  (yii-1.1.18.018a89):CUniqueValidator.php  (yii-1.1.19.5790cb)
skipping to change at line 133 skipping to change at line 133
$exists=array_shift($objects)->getPrimary Key()!=$object->getOldPrimaryKey(); $exists=array_shift($objects)->getPrimary Key()!=$object->getOldPrimaryKey();
} }
} }
else else
$exists=$n>1; $exists=$n>1;
} }
if($exists) if($exists)
{ {
$message=$this->message!==null?$this->message:Yii::t('yii ','{attribute} "{value}" has already been taken.'); $message=$this->message!==null?$this->message:Yii::t('yii ','{attribute} "{value}" has already been taken.');
$this->addError($object,$attribute,$message,array('{value }'=>CHtml::encode($value))); $this->addError($object,$attribute,$message,array('{value }'=>$value));
} }
} }
/** /**
* Given active record class name returns new model instance. * Given active record class name returns new model instance.
* *
* @param string $className active record class name. * @param string $className active record class name.
* @return CActiveRecord active record model instance. * @return CActiveRecord active record model instance.
* *
* @since 1.1.14 * @since 1.1.14
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)