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:
opensides 2005-02-04 22:40:38 +00:00
parent 3a7242c701
commit 9a496247ba
2 changed files with 6 additions and 4 deletions

View File

@ -154,9 +154,11 @@ function facture_meta_create($db, $facid, $message="")
if ($conf->facture->dir_output)
{
$dir = $conf->facture->dir_output . "/" . $fac->ref ;
$file = $dir . "/" . $fac->ref . ".meta";
$forbidden_chars=array("/","\\",":","*","?","\"","<",">","|","[","]",",",";","=");
$facref = str_replace($forbidden_chars,"_",$fac->ref);
$dir = $conf->facture->dir_output . "/" . $facref ;
$file = $dir . "/" . $facref . ".meta";
if (! file_exists($dir))
{
umask(0);

View File

@ -382,7 +382,7 @@ class Propal
$this->total_ttc = $obj->total;
$this->socidp = $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->modelpdf = $obj->model_pdf;
$this->note = $obj->note;