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
963075bb
Commit
963075bb
authored
Mar 27, 2019
by
Marc Egger
Browse files
Fixes #8149 Excel Export cutoff at Column AA
parent
e00853d2
Pipeline
#1782
passed with stage
in 2 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Source/core/report/Excel.php
View file @
963075bb
...
...
@@ -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