Fixing export functionality when exporting zero

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! 

Looking for Exponential Growth? Let’s Get Started.
Explore next

Pimcore guides & How to

Collection of latest concepts, viewpoints and examples from the Pimcore word written by Pimcore industry experts.

Discover more