2
0
forked from Wavyzz/dolibarr

Fix: bug sur le nombre de colonne enregistr

This commit is contained in:
Regis Houssin
2007-09-09 16:30:01 +00:00
parent 6fe53dbb2d
commit 48c7d36518
4 changed files with 22 additions and 23 deletions

View File

@@ -146,26 +146,25 @@ class ExportExcel extends ModeleExports
function write_record($array_alias,$array_selected_sorted,$objp)
{
global $langs;
global $langs;
$this->col=0;
foreach($array_selected_sorted as $code => $value)
$this->col=0;
foreach($array_selected_sorted as $code => $value)
{
$alias=$array_alias[$code];
$newvalue=$objp->$alias;
// Nettoyage newvalue
$newvalue=clean_html($newvalue);
// Traduction newvalue
if (eregi('^\((.*)\)$',$newvalue,$reg))
{
$alias=$array_alias[$code];
$newvalue=$objp->$alias;
// Nettoyage newvalue
$newvalue=clean_html($newvalue);
// Traduction newvalue
if (eregi('^\((.*)\)$',$newvalue,$reg))
{
$newvalue=$langs->transnoentities($reg[1]);
}
$this->worksheet->write($this->row, $this->col, $newvalue);
$this->col++;
}
$this->row++;
return 0;
$newvalue=$langs->transnoentities($reg[1]);
}
$this->worksheet->write($this->row, $this->col, $newvalue);
$this->col++;
}
$this->row++;
return 0;
}