[-] BO : #PSTEST-230 : bug fixed
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11849 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -2030,9 +2030,10 @@ class AdminProductsControllerCore extends AdminController
|
||||
if ($this->tabAccess['add'] && $this->display != 'add')
|
||||
$this->toolbar_btn['duplicate'] = array(
|
||||
'short' => 'Duplicate',
|
||||
'href' => '#todo'.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id,
|
||||
//'href' => $this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id.'&duplicateproduct',
|
||||
'desc' => $this->l('Duplicate'),
|
||||
'confirm' => 1
|
||||
'confirm' => 1,
|
||||
'js' => 'if (confirm(\''.$this->l('Also copy images ?').'\')) document.location = \''.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id.'&duplicateproduct\'; else document.location = \''.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id.'&duplicateproduct&noimage=\';'
|
||||
);
|
||||
|
||||
// adding button for preview this product
|
||||
@@ -2065,13 +2066,13 @@ class AdminProductsControllerCore extends AdminController
|
||||
{
|
||||
$this->toolbar_btn['save'] = array(
|
||||
'short' => 'Save',
|
||||
'href' => '#todo'.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id,
|
||||
'href' => '#',
|
||||
'desc' => $this->l('Save'),
|
||||
);
|
||||
|
||||
$this->toolbar_btn['save-and-stay'] = array(
|
||||
'short' => 'SaveAndStay',
|
||||
'href' => '#todo'.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id,
|
||||
'href' => '#',
|
||||
'desc' => $this->l('Save and stay'),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user