1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-03-19 04:30:05 +01:00

fix: verifica presenza plugin nei moduli

This commit is contained in:
valentina 2024-12-02 12:05:38 +01:00
parent 06ccf1f4b5
commit 250bada432

@ -65,7 +65,13 @@ foreach (App::getAssets()['print'] as $style) {
}
if (Auth::check()) {
$has_plugins = Plugin::where('idmodule_to', $id_module)->where('position', 'tab_main')->where('enabled', 1)->count();
if ($id_record) {
$position = 'tab';
} else {
$position = 'tab_main';
}
$has_plugins = Plugin::where('idmodule_to', $id_module)->where('position', $position)->where('enabled', 1)->count();
echo '
<script>