Fix: var_dump must be commented

This commit is contained in:
Laurent Destailleur 2012-11-21 18:45:52 +01:00
parent 66cf1419ca
commit 6a11016a21

View File

@ -353,7 +353,7 @@ if ($step == 4 && $action == 'submitFormField')
if (is_array($objexport->array_export_TypeFields[0]))
{
$_SESSION["export_FilterValue_fields"]=array();
var_dump($_POST);
//var_dump($_POST);
foreach($objexport->array_export_TypeFields[0] as $code => $type) // $code: s.fieldname $value: Text|Boolean|List:ccc
{
$newcode=(string) preg_replace('/\./','_',$code);
@ -362,7 +362,7 @@ if ($step == 4 && $action == 'submitFormField')
if (! isset($_POST[$newcode]) || $_POST[$newcode] == '') $filterqualified=0;
elseif (preg_match('/^List/',$type) && $_POST[$newcode] <= 0) $filterqualified=0;
if ($filterqualified)
{
{
//print 'Filter on '.$newcode.' type='.$type.' value='.$_POST[$newcode]."\n";
$objexport->array_export_FilterValue[0][$code] = $_POST[$newcode];
}
@ -739,7 +739,7 @@ if ($step == 3 && $datatoexport)
print '<td>';
print $form->textwithpicto($text,$htmltext);
print '</td>';
// Filter value
print '<td>';
if (! empty($Typefieldsarray[$code]))
@ -847,7 +847,7 @@ if ($step == 4 && $datatoexport)
$list='';
foreach($array_filtervalue as $code=>$value)
{
if (isset($objexport->array_export_fields[0][$code]))
if (isset($objexport->array_export_fields[0][$code]))
{
$list.=($list?', ':'');
$list.=$langs->trans($objexport->array_export_fields[0][$code])."='".(isset($array_filtervalue[$code])?$array_filtervalue[$code]:'')."'";
@ -1079,7 +1079,7 @@ if ($step == 5 && $datatoexport)
$list='';
foreach($array_filtervalue as $code=>$value)
{
if (isset($objexport->array_export_fields[0][$code]))
if (isset($objexport->array_export_fields[0][$code]))
{
$list.=($list?', ':'');
$list.=$langs->trans($objexport->array_export_fields[0][$code])."='".(isset($array_filtervalue[$code])?$array_filtervalue[$code]:'')."'";