mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-27 16:23:19 +01:00
Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
4c4c4080dc
@ -28,12 +28,12 @@ trait RecordTrait
|
|||||||
|
|
||||||
public function getModule()
|
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()
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user