Compare commits
3 Commits
857a8694f9
...
4eeeed12d8
Author | SHA1 | Date |
---|---|---|
Pek5892 | 4eeeed12d8 | |
Pek5892 | 50e3d73400 | |
Pek5892 | 527b0c82e5 |
|
@ -35,6 +35,16 @@ include_once base_dir().'/actions.php';
|
|||
// Widget in alto
|
||||
echo '{( "name": "widgets", "id_module": "'.$id_module.'", "position": "top", "place": "controller" )}';
|
||||
|
||||
$segmenti = $dbo->FetchArray('SELECT `id` FROM `zz_segments` WHERE `id_module` = '.prepare($id_module));
|
||||
if ($segmenti) {
|
||||
$segmenti = Modules::getSegments($id_module);
|
||||
if (empty($segmenti)) {
|
||||
echo '<div class="alert alert-warning">
|
||||
<i class="fa fa-warning-circle"></i> '.tr("Questo gruppo di utenti non ha i permessi per visualizzare nessun segmento di questo modulo").'.
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
|
||||
// Lettura eventuali plugins modulo da inserire come tab
|
||||
echo '
|
||||
<div class="nav-tabs-custom">
|
||||
|
|
|
@ -105,7 +105,7 @@ switch (post('op')) {
|
|||
break;
|
||||
}
|
||||
|
||||
$segment = $dbo->selectOne('zz_segments_lang', 'name', ['id_record' => $_SESSION['module_'.$id_module]['id_segment']])['name'];
|
||||
$segment = $dbo->selectOne('zz_segments_lang', 'title', ['id_record' => $_SESSION['module_'.$id_module]['id_segment']])['name'];
|
||||
|
||||
if ($segment != 'Tutti') {
|
||||
$operations['copy_listino'] = [
|
||||
|
|
|
@ -24,6 +24,6 @@ return static function (RectorConfig $rectorConfig): void {
|
|||
|
||||
// define sets of rules
|
||||
$rectorConfig->sets([
|
||||
LevelSetList::UP_TO_PHP_81,
|
||||
LevelSetList::UP_TO_PHP_83,
|
||||
]);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue