// fix shop association generation with HelperForm

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9862 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-11-03 17:27:30 +00:00
parent 17b7d300b7
commit c88bcde30e
5 changed files with 12 additions and 5 deletions
+1
View File
@@ -279,6 +279,7 @@ class HelperCore
$assos = array();
$sql = 'SELECT id_'.$type.', `'.pSQL($this->identifier).'`
FROM `'._DB_PREFIX_.pSQL($this->table).'_'.$type.'`';
foreach (Db::getInstance()->executeS($sql) as $row)
$assos[$row['id_'.$type]][] = $row[$this->identifier];