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
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue