Ver código fonte

[Administration] Documents : bug nom produit non affiché et TVA en NaN

feature/rotating_product
Guillaume Bourgeois 6 meses atrás
pai
commit
1dd5dcae3c
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      backend/controllers/DocumentController.php
  2. +1
    -1
      backend/controllers/ProductController.php

+ 1
- 1
backend/controllers/DocumentController.php Ver arquivo

@@ -578,7 +578,7 @@ class DocumentController extends BackendController

if ($document) {
$ordersArray = [];
$productsArray = $productModule->findProducts(false);
$productsArray = $productModule->getRepository()->findProducts(true);

foreach ($document->orders as $order) {
$orderModule->initOrder($order);

+ 1
- 1
backend/controllers/ProductController.php Ver arquivo

@@ -343,7 +343,7 @@ class ProductController extends BackendController
$orderArray = json_decode(stripslashes($array));

foreach ($orderArray as $id => $order) {
$product = $this->findModel($id);
$product = $this->findModel((int) $id);
$product->order = $order;
$product->save();
}

Carregando…
Cancelar
Salvar