diff --git a/include/common/importa.php b/include/common/importa.php index 42ed95c8f..baa2b52e1 100755 --- a/include/common/importa.php +++ b/include/common/importa.php @@ -125,7 +125,7 @@ if (!empty($options['create_document'])) { elseif ($final_module['name'] == 'Interventi') { echo '
- {[ "type": "select", "label": "'.tr('Stato').'", "name": "id_stato_intervento", "required": 1, "values": "query=SELECT idstatointervento AS id, descrizione, colore AS _bgcolor_ FROM in_statiintervento WHERE deleted_at IS NULL ORDER BY descrizione" ]} + {[ "type": "select", "label": "'.tr('Stato').'", "name": "id_stato_intervento", "required": 1, "values": "query=SELECT idstatointervento AS id, descrizione, colore AS _bgcolor_ FROM in_statiintervento WHERE deleted_at IS NULL AND is_completato = 0 ORDER BY descrizione" ]}
diff --git a/modules/interventi/add.php b/modules/interventi/add.php index d5040e39d..397378849 100755 --- a/modules/interventi/add.php +++ b/modules/interventi/add.php @@ -212,7 +212,7 @@ echo ' {[ "type": "select", "label": "'.tr('Tipo').'", "name": "idtipointervento", "required": 1, "value": "'.$id_tipo.'", "ajax-source": "tipiintervento" ]}
-
+
{[ "type": "select", "label": "'.tr('Stato').'", "name": "idstatointervento", "required": 1, "values": "query=SELECT idstatointervento AS id, descrizione, colore AS _bgcolor_ FROM in_statiintervento WHERE deleted_at IS NULL ORDER BY descrizione", "value": "'.($origine_dashboard ? setting('Stato predefinito dell\'attività da Dashboard') : setting('Stato predefinito dell\'attività')).'" ]}