Add FQDN support for network devices and fix printer installer map
## Printer Installer Map Fixes - Fixed printer_installer_map.asp to pass printer IDs instead of generated names - Fixed install_printer.asp dictionary key collision by using printerid ## Network Device FQDN Support - Added fqdn column to machines table (migration script included) - Updated device edit pages: deviceaccesspoint.asp, deviceserver.asp, deviceswitch.asp, devicecamera.asp - Updated save_network_device.asp to handle FQDN in INSERT/UPDATE - Updated network_devices.asp to display FQDN for Server, Switch, Camera - Updated vw_network_devices view to include FQDN from machines table - Added FQDN field to machine_edit.asp Network tab - Updated savemachineedit.asp to save FQDN ## Printer Install Path Edit - Added installpath field to displayprinter.asp Edit tab - Updated editprinter.asp to save installpath changes ## Documentation - Added IIS log location to CLAUDE.md ## Production Migration - sql/add_fqdn_to_machines.sql - Run on production to add column and update view 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -426,21 +426,19 @@ function clearSelection() {
|
||||
}
|
||||
|
||||
function downloadInstaller() {
|
||||
var printerNames = [];
|
||||
var printerIds = [];
|
||||
for (var printerId in selectedPrinters) {
|
||||
printerNames.push(printerData[printerId].name);
|
||||
printerIds.push(printerId);
|
||||
}
|
||||
|
||||
if (printerNames.length === 0) {
|
||||
if (printerIds.length === 0) {
|
||||
alert('Please select at least one printer');
|
||||
return;
|
||||
}
|
||||
|
||||
// Pass printer names as comma-separated list for auto-selection
|
||||
// Single printer: /PRINTER=PrinterName (uses partial matching)
|
||||
// Multiple printers: /PRINTER=Printer1,Printer2,Printer3 (uses exact matching)
|
||||
var printerParam = printerNames.join(',');
|
||||
window.location.href = 'install_printer.asp?printer=' + encodeURIComponent(printerParam);
|
||||
// Pass printer IDs for reliable lookup (names are generated dynamically and may not match DB)
|
||||
var printerParam = printerIds.join(',');
|
||||
window.location.href = 'install_printer.asp?printerid=' + encodeURIComponent(printerParam);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user