Fixing export functionality when exporting zero
Last updated on 29 September, 2021
1 min read
What was the issue?
The problem was that when trying to export translated data to XLIFF, any input field or row from textarea that had only 0 in it, would be considered empty and the final XLIFF would have an empty field instead of 0.
How did you solve it?
I needed to check if the data we are transforming is not empty or is not identical(===) to 0.
Why is this fix important?
This fix is important because users now can export to XLIFF data that has 0 as its only value in that field.
How does it feel to contribute to a platform such as Pimcore?
To know that I helped in the development of something on this scale is amazing.
And if you want to check out this pull request, just follow the link!
This guide is part of the category, read more on
Looking for Exponential Growth? Let’s Get Started.