]> _ Git - cubist_cms-back.git/commitdiff
wait #5877 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 Jun 2023 13:29:08 +0000 (15:29 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 Jun 2023 13:29:08 +0000 (15:29 +0200)
src/app/Magic/Models/Translate.php

index 7c9bed09e650f7ac37b5a74339b4babb85dd5804..e309d106f731dfbfcf4037842483a901a2d06620 100644 (file)
@@ -41,7 +41,7 @@ class Translate extends CubistMagicTranslatableModel
         $translate->parseFiles();
 
         $this->addField('id', Hidden::class, '', ['value' => 1, 'database_type' => 'none']);
-        $this->addField('locale', Hidden::class, '', ['database_type' => 'none', 'value' => request()->get("locale", App::getLocale())]);
+        $this->addField('locale', Hidden::class, '', ['fillable' => false, 'database_type' => 'none', 'value' => request()->get("locale", App::getLocale())]);
 
         $this->addField(['name' => 'k',
             'label' => '-',