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

Xlsx Writer Formula with Bool Result of False #2087

Merged
merged 1 commit into from
May 11, 2021

Conversation

oleibman
Copy link
Collaborator

Fix for #2082. Xlsx Writer was writing a cell which is a formula which evaluates to boolean false as an empty XML tag. This is okay for Excel 365, but not for Excel 2016-. Change to write the tag as a value of 0 instead, which works for all Excel releases. Add test.

This is:

- [x] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

Fix for PHPOffice#2082. Xlsx Writer was writing a cell which is a formula which evaluates to boolean false as an empty XML tag. This is okay for Excel 365, but not for Excel 2016-. Change to write the tag as a value of 0 instead, which works for all Excel releases. Add test.
@MarkBaker MarkBaker merged commit 9c43d5f into PHPOffice:master May 11, 2021
@oleibman oleibman deleted the boolwrite branch July 1, 2021 15:47
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