// fix retrieving of the fields value 'shop' and 'group_shop' dynamically (PSFV-94)

This commit is contained in:
lLefevre
2011-11-15 12:19:39 +00:00
parent 0748aa6ff5
commit 71574b23be
13 changed files with 24 additions and 103 deletions
@@ -360,17 +360,6 @@ class AdminReferrersControllerCore extends AdminController
'request_uri_like_not' => str_replace('\\', '\\\\', htmlentities($this->getFieldValue($obj, 'request_uri_like_not'), ENT_COMPAT, 'UTF-8'))
);
//Added values of object Shop
if ($obj->id)
{
$assos = array();
$sql = 'SELECT `id_shop`, `'.pSQL($this->identifier).'`
FROM `'._DB_PREFIX_.pSQL($this->table).'_shop`
WHERE `'.pSQL($this->identifier).'` = '.(int)$obj->id;
foreach (Db::getInstance()->executeS($sql) as $row)
$this->fields_value['shop'][$row['id_shop']][] = $row[$this->identifier];
}
$this->tpl_form_vars = array('uri' => $uri);
return parent::initForm();