peterguo 1 miesiąc temu
rodzic
commit
70d413c302

+ 0 - 4
app/Services/File/FileService.php

@@ -20,10 +20,6 @@ class FileService
     public function update(string $id, array $updatedData): void
     {
         $file = File::query()->findOrFail($id);
-
-        if ($updatedData['naming_rule_id']) {
-            $updatedData['naming_rules'] = $this->customFieldRepository->keysByGroup($updatedData['naming_rule_id'])->value;
-        }
         $file->fill($updatedData);
 
         $changes = ModelChangeDetector::detector(ActionObjectType::CONTAINER_FILE, $file);

+ 0 - 3
app/Services/History/Detector/FileDetector.php

@@ -2,7 +2,6 @@
 
 namespace App\Services\History\Detector;
 
-use App\Services\History\Converter\CustomFieldSelectConverter;
 use App\Services\History\Converter\NamingRuleConverter;
 
 class FileDetector extends DetectorAbstract
@@ -14,7 +13,6 @@ class FileDetector extends DetectorAbstract
             'source',
             'is_hide',
             'version',
-            'naming_rules',
             'doc_stage',
             'doc_type'
         ];
@@ -27,7 +25,6 @@ class FileDetector extends DetectorAbstract
             'source',
             'is_hide',
             'version',
-            'naming_rules',
             'doc_stage',
             'doc_type'
         ];