You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I save a file as .xlsx in Excel (I am using the most recent version, 2312) and I use a "between" data validation, this is how Excel saves the validation:
FixPHPOffice#3863. Data Validation default operator is `between`. When Excel writes out a data validation item, it may omit the operator. Xlsx reader will therefore initialize operator to null string. Issue indicates that user wants `between` returned for `getOperator`. A more serious problem is that `isValid` method does not handle this situation correctly. Data Validation is changed to set Operator to the default value if an attempt is made to set it to null string.
This is a bug report.
If I save a file as .xlsx in Excel (I am using the most recent version, 2312) and I use a "between" data validation, this is how Excel saves the validation:
No operator="between" like Excel would add for other operators and PHPSpreadsheet seems to expect.
What is the expected behavior?
I think if no operator is given, "between" should be assumed.
From the xlsx spec:
What is the current behavior?
$dataValidation['operator'] is null and gets parsed into an empty string "".
What are the steps to reproduce?
min_example_validation_between.xlsx
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
.xlsx is affected, didn't try others yet.
Which versions of PhpSpreadsheet and PHP are affected?
I am using PHPSpreadsheet 1.29.0 with PHP 8.0.12
The text was updated successfully, but these errors were encountered: