yiisoft/yii — pull request #1327 by sucotronic (2012-09-03 13:19:50+00:00)
Title: Fix error when calculating total item count in CActiveDataProvider

When the function calculateTotalItemCount of the CActiveDataProvider is called, it doesn't take into account that the criteria passed to CActiveDataProvider could change the "alias", and in the defaultScope of the target model also could be a call to the function "getTableAlias" and put the wrong alias to a condition.