mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 11:30:55 +01:00
Fix link al plugin
This commit is contained in:
parent
5a513a13c4
commit
8b46f867a2
@ -282,7 +282,7 @@ class Modules
|
||||
$testo = $testo.' <i class="fa fa-external-link"></i>';
|
||||
}
|
||||
|
||||
$module = self::get(Module::where('name', $modulo)->first()->id);
|
||||
$module = self::get(Module::where('name', $modulo)->orWhere('id', $modulo)->first()->id);
|
||||
|
||||
$extra .= !empty($blank) ? ' target="_blank"' : '';
|
||||
|
||||
|
@ -135,7 +135,7 @@ class Plugins
|
||||
if (!empty($plugin) && in_array($plugin->permission, ['r', 'rw'])) {
|
||||
$anchor = 'tab_'.$plugin->id;
|
||||
|
||||
return Modules::link($plugin->module->name, $id_record, $testo, $alternativo, $extra, $blank, $anchor);
|
||||
return Modules::link($plugin->idmodule_to, $id_record, $testo, $alternativo, $extra, $blank, $anchor);
|
||||
}
|
||||
|
||||
return $alternativo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user