mirror of
https://github.com/itflow-org/itflow
synced 2026-12-01 00:29:02 +00:00
One Import window for clients, contacts, locations, credentials, networks, assets and products: new agent/modals/import/import.php and agent/post/import.php replace the seven per-list import windows and their handlers; the file's columns are matched to fields by heading and shown with sample values to change or leave out, a record already here can be skipped or updated with the file's non-empty cells, and before importing the window shows what every row will do by running the import in a transaction and rolling it back; rows that do not import download as a CSV with the reason; each kind is an entry in importKinds in new functions/import_kinds.php with its fields, matching and row function, each row behind a savepoint; contacts, locations, credentials and networks now take tags, notes and their other export columns, assets keep history rows and merge details on update, and templates need read access to their module; 26.11.9 changelog entries rewritten for the new window
This commit is contained in:
@@ -163,7 +163,7 @@ function getExportColumns($export_type) {
|
||||
],
|
||||
|
||||
'networks' => [
|
||||
// The first nine are the import's columns, in its order
|
||||
// Headed as the network import heads them, so an export imports again (functions/import_kinds.php)
|
||||
'network_name' => ['label' => 'Name', 'weight' => 2],
|
||||
'network_description' => ['label' => 'Description', 'weight' => 3],
|
||||
'network_vlan' => ['label' => 'VLAN'],
|
||||
|
||||
Reference in New Issue
Block a user