]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5389
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 12 Aug 2022 08:52:20 +0000 (10:52 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 12 Aug 2022 08:52:20 +0000 (10:52 +0200)
app/Models/Base/ToolboxModel.php
app/Models/FluidbookPublication.php

index f4f3a6a85950c8ece37fb87a2bb0271bc826b72c..61204fcc8e54e65dddf1538d1e8bdd1295b0e63e 100644 (file)
@@ -38,7 +38,8 @@ class ToolboxModel extends CubistMagicAbstractModel
             'column_attribute' => 'companyWithNameOnTwoLines',
             'column_escape' => false,
             'attribute' => 'companyWithName',
-            'default' => Auth::id()
+            'default' => Auth::id(),
+            'non_default_tracking' => false,
         ];
         if (null !== $tab) {
             $fieldSettings['tab'] = $tab;
index 956094359421a5e0675533724330f95aa6cd28f1..134942a8e7b6abb47b4b89de9f8cb1fbe9ae7847 100644 (file)
@@ -53,6 +53,7 @@ class FluidbookPublication extends ToolboxModel
             'default' => '',
             'column' => true,
             'translatable' => false,
+            'non_default_tracking' => false,
         ]);
 
         $this->addOwnerField();
@@ -62,6 +63,7 @@ class FluidbookPublication extends ToolboxModel
                     [-1 => __('Brouillon'), 0 => __('Prêt'), 1 => __('Téléchargé'), 2 => __('Facturé')],
                 'column' => true,
                 'filter' => true,
+                'non_default_tracking' => false,
             ]
         );
 
@@ -70,10 +72,10 @@ class FluidbookPublication extends ToolboxModel
         $this->addField('composition', FluidbookComposition::class, __('Composition'));
 
         $this->addField('section_theme', FormBigSection::class, __('Thème graphique'));
-        $this->addField('theme', \App\Fields\FluidbookTheme::class, __('Thème'));
+        $this->addField('theme', \App\Fields\FluidbookTheme::class, __('Thème'), ['non_default_tracking' => false,]);
 
         $this->addField('section_locale', FormBigSection::class, __('Langue'));
-        $this->addField('locale', FluidbookLocale::class, __('Langue principale'), ['default' => 'fr', 'allows_null' => false, 'filter' => true, 'filter_label' => 'Langue', 'column' => true, 'column_label' => '<i class="la la-language"></i>']);
+        $this->addField('locale', FluidbookLocale::class, __('Langue principale'), ['default' => 'fr', 'allows_null' => false, 'filter' => true, 'filter_label' => 'Langue', 'column' => true, 'column_label' => '<i class="la la-language"></i>', 'non_default_tracking' => false]);
         $this->addField('translations', \App\Fields\FluidbookTranslationOverwrite::class, __('Traductions personnalisées'));
 
         $this->addField('section_chapters', FormBigSection::class, __('Sommaire'));