[-] BO : fixed bug #PSCFV-4439

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17809 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-10-09 15:45:23 +00:00
parent 397ce5078c
commit ddaf48c5d6
@@ -471,6 +471,7 @@ class AdminFeaturesControllerCore extends AdminController
$query->select('COUNT(fv.id_feature_value) as count_values');
$query->from('feature_value', 'fv');
$query->where('fv.id_feature ='.(int)$item['id_feature']);
$query->where('fv.custom =0');
$res = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query);
$item['value'] = (int)$res;
unset($query);