diff --git a/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php b/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php index 970262f4091..8a0f9f92ca5 100644 --- a/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php +++ b/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php @@ -333,13 +333,13 @@ public function addFieldToSelect($field, $alias = null) /** * Add attribute expression (SUM, COUNT, etc) - * Example: ('sub_total', 'SUM({{attribute}})', 'revenue') + * Example: ('sub_total', 'SUM({{attribute}})', array('attribute' => 'revenue')) * Example: ('sub_total', 'SUM({{revenue}})', 'revenue') * For some functions like SUM use groupByAttribute. * * @param string $alias * @param string $expression - * @param array $fields + * @param array|string $fields * @return $this */ public function addExpressionFieldToSelect($alias, $expression, $fields)