device sort order when adding or modify address
phpipam open-source IP address management
Brought to you by:
myha
Hi,
I'd like to have my devices sort by hostname and not id when editing an address.
in /app/subnets/addresses/address-modify.php changing line 217 from
$devices = $Tools->fetch_devices();
to
$devices = $Tools->fetch_devices(null,'devices','hostname');
does the job, but I'm not sure if those are the correct variables for fetch_devices() or even if it's the correct place to do this.
Great app.
Thank you.
Anonymous
FYI to others: dont use the changes above it breaks stuff.