diff --git a/include/manager.php b/include/manager.php index c96b09fe2..6e8afe356 100644 --- a/include/manager.php +++ b/include/manager.php @@ -45,35 +45,33 @@ include App::filepath($directory.'|custom|', 'init.php'); // Caricamento file aggiuntivo su elenco record include App::filepath($directory.'|custom|', 'controller_before.php'); -if (count(Modules::getSegments($id_module)) > 1) { - ?> -
-
- {[ "type": "select", "name": "id_segment_", "required": 0, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module = ''", "value": "" ]} -
-
-
- - - - 1) { + echo ' +
+
+ {[ "type": "select", "name": "id_segment_", "required": 0, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module = '.prepare($id_module).'", "value": "'.$_SESSION['m'.$id_module]['id_segment'].'" ]} +
+
+
'; + + echo ' + '; + } + $table_id = 'main_'.rand(0, 99); echo ' diff --git a/plugins/fatturazione/actions.php b/plugins/fatturazione/actions.php index 6214ab6ec..abea6072c 100644 --- a/plugins/fatturazione/actions.php +++ b/plugins/fatturazione/actions.php @@ -10,7 +10,7 @@ switch (filter('op')) { App::flash()->info(tr('Fattura elettronica generata correttamente!')); - if ($fattura->isValid()) { + if (!$fattura->isValid()) { App::flash()->warning(tr('La fattura elettronica potrebbe avere delle irregolarità!')); } } catch (UnexpectedValueException $e) {