Skip to content

Commit 65a13cd

Browse files
committed
[FIX] Error with save resource.
1 parent 80121cd commit 65a13cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controllers/sLangController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public function prepareFields(array $content): array
121121
*/
122122
public function setLangContent(int $resourceId, string $langKey, array $fields): void
123123
{
124-
sLangContent::updateOrCreate(['resource' => $resourceId, 'lang' => $langKey], $fields);
124+
sLangContent::withoutGlobalScope('language')
125+
->updateOrCreate(['resource' => $resourceId, 'lang' => $langKey], $fields);
125126
}
126127

127128
/**

0 commit comments

Comments
 (0)