We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06085f3 commit bda2db7Copy full SHA for bda2db7
src/Http/Controllers/TranslationController.php
@@ -152,8 +152,10 @@ public function updateMultiPhrase(Translation $translation): JsonResponse
152
]);
153
154
foreach (request()->phrases as $phrase) {
155
- if ($phrase['value'] == null)
+ if (empty($phrase['value'])) {
156
continue;
157
+ }
158
+
159
$phrase = Phrase::where('uuid', $phrase['uuid'])->first();
160
161
$phrase->update([
0 commit comments