-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
DataValidation corrupted when written to Xlsx #290
Comments
This error was introduced in PR #131 because the function If you unzip testFile.xlsx you will see that <dataValidations count="2">
<dataValidation
type="nonestopequalffftErrorThis cell value must not be changedPhpOffice\PhpSpreadsheet\Cell\DataValidation"
errorStyle="stopequalffftErrorThis cell value must not be changedPhpOffice\PhpSpreadsheet\Cell\DataValidation"
operator="equal" allowBlank="0" showDropDown="1" showInputMessage="0" showErrorMessage="1"
errorTitle="Error" error="This cell value must not be changed" sqref="A2">
<formula1>88</formula1>
</dataValidation>
<dataValidation
type="nonestopequalffftErrorThis cell value must not be changedPhpOffice\PhpSpreadsheet\Cell\DataValidation"
errorStyle="stopequalffftErrorThis cell value must not be changedPhpOffice\PhpSpreadsheet\Cell\DataValidation"
operator="equal" allowBlank="0" showDropDown="1" showInputMessage="0" showErrorMessage="1"
errorTitle="Error" error="This cell value must not be changed" sqref="A1">
<formula1>77</formula1>
</dataValidation>
</dataValidations> |
It seems you have a pretty good understanding of the issue. Would you be able to submit a PR to fix it ? |
I am not sure I have time before Christmas. |
This is:
What is the expected behavior?
Data validation of cells should have the correct type and errorStyle.
What is the current behavior?
All data validation ends up with the type 'none'.
The error style is also garbled.
What are the steps to reproduce?
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
Which versions of PhpSpreadsheet and PHP are affected?
Versions after pull request #131
The text was updated successfully, but these errors were encountered: