Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
439ce045
Commit
439ce045
authored
Mar 29, 2019
by
Carsten Rose
Browse files
Merge branch 'B8149ExcelExportcutoffatColumnAA' into 'master'
Fixes #8149 Excel Export cutoff at Column AA See merge request
!136
parents
e00853d2
963075bb
Pipeline
#1786
passed with stage
in 2 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Source/core/report/Excel.php
View file @
439ce045
...
...
@@ -173,24 +173,16 @@ class Excel {
}
/**
* Increment the alpha string.
If 'Z' is reached on the last position, it appends 'A'
.
* Increment the alpha string.
i.e. count using A-Z as base
.
* 'A' > 'B'
* 'Z' > 'ZA'
* 'ZA' > 'ZB'
* 'Z' > 'AA'
* 'AA' > 'AB'
* 'AGTC' > 'AGTD'
*
* @param $column
* @return string - incremented column.
*/
private
function
nextColumn
(
$column
)
{
$len
=
strlen
(
$column
);
$c
=
$column
[
$len
-
1
];
if
(
$c
==
'Z'
)
{
$column
.
=
'A'
;
}
else
{
$c
=
++
$c
;
$column
[
$len
-
1
]
=
$c
;
}
return
$column
;
return
++
$column
;
}
}
Write
Preview
Supports
Markdown
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