GEWIS / gewisweb

GEWIS Website
https://gewis.nl
GNU General Public License v3.0
16 stars 33 forks source link

Return empty string instead of `null` for double `null` in `LocalisedText` #1821

Closed tomudding closed 2 months ago

tomudding commented 2 months ago

The LocaliseText view helper is used in places where strings are expected and not nulls. As such, it makes more sense to perform a null coalescing check and return an empty string '' if there are double nulls in the LocalisedText object.

Fixes GH-1820.