Commit c3e2c0bf authored by philippepary's avatar philippepary
Browse files

Fixed export bug

parent 99a051d3
<?php
// Pastèque Web back office
//
// Copyright (C) 2013 Scil (http://scil.coop)
// Copyright (C) 2013, 2016 Scil (http://scil.coop)
// Cédric Houbart
//
// This file is part of Pastèque.
//
......@@ -75,8 +76,11 @@ function report_csv($module, $name, $values) {
function init_data($report, $data, $line, $field) {
$field = strtoupper($field);
if (isset($line[$field])) {
$upField = strtoupper($field);
if (isset($line[$upField])) {
$data[] = $report->applyVisualFilter($upField, $line, Report::DISP_CSV);
}
else if (isset($line[$field])) {
$data[] = $report->applyVisualFilter($field, $line, Report::DISP_CSV);
} else {
$data[] = "";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment