// Merge -> revision 8076

This commit is contained in:
rMalie
2011-08-17 08:15:38 +00:00
parent 710be54b89
commit cba5631db0
22 changed files with 100 additions and 46 deletions
+1 -2
View File
@@ -75,8 +75,7 @@ class AdminAddresses extends AdminTab
{
if (Validate::isEmail(Tools::getValue('email')))
{
$customer = new Customer;
$customer = $customer->getByemail(Tools::getValue('email'));
$customer = new Customer(Tools::getValue('id_customer'));
if (Validate::isLoadedObject($customer))
$_POST['id_customer'] = $customer->id;
else
+1 -1
View File
@@ -222,7 +222,7 @@ class AdminCategories extends AdminTab
'Collapse All' => $this->l('Collapse All'),
'Expand All' => $this->l('Expand All')
);
echo Helper::renderAdminCategorieTree($trads, array(isset($obj->id_parent) ? $obj->id_parent : 1), 'id_parent', true);
echo Helper::renderAdminCategorieTree($trads, array(isset($obj->id_parent) ? $obj->id_parent : Tools::getValue('id_parent', 1)), 'id_parent', true);
echo '</div>
<label>'.$this->l('Description:').' </label>
<div class="margin-form translatable">';
+10 -5
View File
@@ -1583,12 +1583,17 @@ class AdminProducts extends AdminTab
{
echo ' if (toload[id]) {
toload[id] = false;
$.post(
"'.dirname(self::$currentIndex).'/ajax.php", {
$.ajax({
url: "'.dirname(self::$currentIndex).'/ajax.php",
data: {
ajaxProductTab: id, id_product: '.$obj->id.',
token: \''.Tools::getValue('token').'\',
id_category: '.(int)(Tools::getValue('id_category')).'},
function(rep) {
id_category: '.(int)(Tools::getValue('id_category')).'
},
cache: false,
type: \'POST\',
success: function(rep) {
$("#step" + id).html(rep);var languages = new Array();
if (id == 3)
populate_attrs();
@@ -1607,7 +1612,7 @@ class AdminProducts extends AdminTab
});
}
}
)
})
}';
}
echo ' }