[-] BugFix : Bad group by in request for admin stock instant states

[-] BugFix is actions details
This commit is contained in:
mDeflotte
2011-10-21 15:27:12 +00:00
parent b4ad6a7d9b
commit d2aaf4cbd8
2 changed files with 2 additions and 2 deletions

View File

@@ -222,7 +222,7 @@ class AdminStockInstantStateControllerCore extends AdminController
WHERE id_warehouse = '.$this->getCurrentWarehouseId().' '.(isset($this->_where) ? $this->_where.' ' : '').
($this->deleted ? 'AND a.`deleted` = 0 ' : '').
(isset($this->_filter) ? $this->_filter : '').'
GROUP BY pac.id_product_attribute
GROUP BY pac.id_product_attribute, p.id_product
'.((isset($this->_filterHaving) || isset($this->_having)) ? 'HAVING ' : '').
(isset($this->_filterHaving) ? ltrim($this->_filterHaving, ' AND ') : '').
(isset($this->_having) ? $this->_having.' ' : '').'