correction des bugs soumis sur le forum
http://forum.dolibarr.com/viewtopic.php?t=51 http://forum.dolibarr.com/viewtopic.php?t=54
This commit is contained in:
parent
3a7242c701
commit
9a496247ba
@ -154,9 +154,11 @@ function facture_meta_create($db, $facid, $message="")
|
|||||||
|
|
||||||
if ($conf->facture->dir_output)
|
if ($conf->facture->dir_output)
|
||||||
{
|
{
|
||||||
$dir = $conf->facture->dir_output . "/" . $fac->ref ;
|
$forbidden_chars=array("/","\\",":","*","?","\"","<",">","|","[","]",",",";","=");
|
||||||
$file = $dir . "/" . $fac->ref . ".meta";
|
$facref = str_replace($forbidden_chars,"_",$fac->ref);
|
||||||
|
$dir = $conf->facture->dir_output . "/" . $facref ;
|
||||||
|
$file = $dir . "/" . $facref . ".meta";
|
||||||
|
|
||||||
if (! file_exists($dir))
|
if (! file_exists($dir))
|
||||||
{
|
{
|
||||||
umask(0);
|
umask(0);
|
||||||
|
|||||||
@ -382,7 +382,7 @@ class Propal
|
|||||||
$this->total_ttc = $obj->total;
|
$this->total_ttc = $obj->total;
|
||||||
$this->socidp = $obj->fk_soc;
|
$this->socidp = $obj->fk_soc;
|
||||||
$this->soc_id = $obj->fk_soc;
|
$this->soc_id = $obj->fk_soc;
|
||||||
$this->projet_id = $obj->fk_projet;
|
$this->projetidp = $obj->fk_projet;
|
||||||
$this->contactid = $obj->fk_soc_contact;
|
$this->contactid = $obj->fk_soc_contact;
|
||||||
$this->modelpdf = $obj->model_pdf;
|
$this->modelpdf = $obj->model_pdf;
|
||||||
$this->note = $obj->note;
|
$this->note = $obj->note;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user