Kaynağa Gözat

[Administration] Export commandes PDF : correctif problème caractère "<" dans le nom des produits

feature/souke
Guillaume Bourgeois 11 ay önce
ebeveyn
işleme
1c8705375c
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +5
    -1
      common/logic/Product/Product/Service/ProductSolver.php

+ 5
- 1
common/logic/Product/Product/Service/ProductSolver.php Dosyayı Görüntüle

@@ -188,7 +188,11 @@ class ProductSolver extends AbstractService implements SolverInterface
return $product->reference;
}

return $product->name;
$productName = $product->name;
// le caractère "<" crée un problème dans le récapitulatif PDF des commandes
$productName = str_replace('<', '', $productName);

return $productName;
}

public function isProductActiveByDay(Product $product, string $day): bool

Yükleniyor…
İptal
Kaydet