Тексты товаров в разные ячейки и 404 страница
This commit is contained in:
@@ -23,11 +23,6 @@ class ControllerCatalogProduct extends Controller {
|
||||
$this->load->model('catalog/product');
|
||||
|
||||
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
|
||||
$this->request->post['product_description'] = array_map(function($description){
|
||||
|
||||
$description['description'] = implode("__NEWLINE__", $description['description']);
|
||||
return $description;
|
||||
}, $this->request->post['product_description']);
|
||||
$this->model_catalog_product->addProduct($this->request->post);
|
||||
|
||||
$this->session->data['success'] = $this->language->get('text_success');
|
||||
@@ -111,11 +106,6 @@ $this->request->post['product_description'] = array_map(function($description){
|
||||
$this->load->model('catalog/product');
|
||||
|
||||
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
|
||||
$this->request->post['product_description'] = array_map(function($description){
|
||||
|
||||
$description['description'] = implode("__NEWLINE__", $description['description']);
|
||||
return $description;
|
||||
}, $this->request->post['product_description']);
|
||||
$this->model_catalog_product->editProduct($this->request->get['product_id'], $this->request->post);
|
||||
|
||||
$this->session->data['success'] = $this->language->get('text_success');
|
||||
|
||||
Reference in New Issue
Block a user