-
-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle null values in database columns as null in translations
- Updated the HasTranslations trait to return null for translations when the underlying database attribute is null. - Adjusted the logic in getTranslation to check if the raw attribute value is null before attempting to resolve translations. - Modified a test case to validate that null database values are treated as null in translations instead of empty strings.
- Loading branch information
1 parent
4509548
commit 2bf4dcd
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters