Fix minore

This commit is contained in:
Pek5892 2024-03-06 12:19:37 +01:00
parent ef16c663eb
commit 5d77defea7
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
/**