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:
commit
55505604c1
@ -429,7 +429,7 @@ class Product extends CommonObject
|
|||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
// Clean parameters
|
// 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->label = trim($this->label);
|
||||||
$this->price_ttc=price2num($this->price_ttc);
|
$this->price_ttc=price2num($this->price_ttc);
|
||||||
$this->price=price2num($this->price);
|
$this->price=price2num($this->price);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user