From 5d77defea71d620d56e9853b5ea340840dc1bff4 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Wed, 6 Mar 2024 12:19:37 +0100 Subject: [PATCH] Fix minore --- src/Traits/RecordTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Traits/RecordTrait.php b/src/Traits/RecordTrait.php index 6df4bcf46..83478572d 100755 --- a/src/Traits/RecordTrait.php +++ b/src/Traits/RecordTrait.php @@ -28,12 +28,12 @@ trait RecordTrait public function getModule() { - return !empty($this->module) ? Module::find($this->module) : null; + return !empty($this->module) ? Module::find((new Module())->getByName($this->module)->id_record) : null; } public function getPlugin() { - return !empty($this->plugin) ? (new Plugin())->getByName($this->plugin) : null; + return !empty($this->plugin) ? Plugin::find((new Plugin())->getByName($this->plugin)->id_record) : null; } /**