Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SAMBUMBA
pasteque-server
Commits
c3e2c0bf
Commit
c3e2c0bf
authored
Feb 01, 2016
by
philippepary
Browse files
Fixed export bug
parent
99a051d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
report.php
View file @
c3e2c0bf
<?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
[]
=
""
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment