Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug with mainlabel causing duplicate headers in excel format. #19

Merged
merged 2 commits into from
Mar 10, 2014

Conversation

netbrain
Copy link
Contributor

@netbrain netbrain commented Mar 4, 2014

if mainlabel parameter was set to "Test", the first two columns in the excel
file would result in column headers like the following:

Test Test#

This patch filters out the second column header Test#

Note, this is also the result seen in the CSV format...

if mainlabel parameter was set to "Test", the first two columns in the
excel file would result in column headers like the following:

Test	Test#

This patch filters out the second column header Test#
@JeroenDeDauw JeroenDeDauw added this to the 1.9.0.2 milestone Mar 5, 2014
@@ -195,6 +198,10 @@ protected function populateDocumentWithHeaders ( $res, $sheet ) {
$colOffset = 0;
foreach ( $res->getPrintRequests() as $pr ) {
$header = $pr->getLabel();
if($this->skipExtraMainLabel($header) ){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about flipping the return value of this method and renaming it to shouldShowHeader(), and then bringing the stuff inside the body of this foreach into the body of the if, and getting rid of the odd continue statement?

@netbrain
Copy link
Contributor Author

any ETA on merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants