Skip to content

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

Merged
PowerKiKi merged 1 commit intoPHPOffice:masterfrom
astronati:issues/1325
Mar 2, 2020
Merged

ref #1325 Removed all '$' values from the auto filter range#1326
PowerKiKi merged 1 commit intoPHPOffice:masterfrom
astronati:issues/1325

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
BlackyTay pushed a commit to BlackyTay/PhpSpreadsheet that referenced this pull request Aug 8, 2025
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