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

ref #1325 Removed all '$' values from the auto filter range #1326

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

astronati
Copy link
Contributor

@astronati astronati commented Jan 15, 2020

See #1325

This is:

- [x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

The "$" character should be removed from the filter range.

What is the current behavior?

The setRange method of the Xlsx/AutoFilter class expects a filter range format like "A1:E10".
The returned value from $this->worksheetXml->autoFilter['ref'] could contain "$" and returning a value like "$A$1:$E$10".

Which versions of PhpSpreadsheet and PHP are affected?

1.10.1

@astronati
Copy link
Contributor Author

@PowerKiKi Added test

The `setRange` method of the `Xlsx/AutoFilter` class expects a filter
range format like "A1:E10". The returned value from
`$this->worksheetXml->autoFilter['ref']` could contain "$" and returning
a value like "$A$1:$E$10".

Fixes PHPOffice#687
Fixes PHPOffice#1325
Closes PHPOffice#1326
@PowerKiKi PowerKiKi merged commit 9f5a472 into PHPOffice:master Mar 2, 2020
paulkned pushed a commit to paulkned/PhpSpreadsheet that referenced this pull request Mar 6, 2020
The `setRange` method of the `Xlsx/AutoFilter` class expects a filter
range format like "A1:E10". The returned value from
`$this->worksheetXml->autoFilter['ref']` could contain "$" and returning
a value like "$A$1:$E$10".

Fixes PHPOffice#687
Fixes PHPOffice#1325
Closes PHPOffice#1326
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants