Merge pull request #11397 from atm-josselin/FIX_product_document_and_special_characters

FIX : filepath of generated documents doesn't handle products with sp…
This commit is contained in:
Laurent Destailleur 2019-08-27 14:12:48 +02:00 committed by GitHub
commit 55505604c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -429,7 +429,7 @@ class Product extends CommonObject
$error=0;
// Clean parameters
$this->ref = dol_string_nospecial(trim($this->ref));
$this->ref = dol_sanitizeFileName(dol_string_nospecial(trim($this->ref)));
$this->label = trim($this->label);
$this->price_ttc=price2num($this->price_ttc);
$this->price=price2num($this->price);