Project

General

Profile

Actions

Bug #8159

closed

services_dnsmasq.php: Deleting a Host Override entry removes the wrong item

Added by Jim Pingle almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
DNS Forwarder
Target version:
Start date:
12/04/2017
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.2
Affected Architecture:
All

Description

On Services > DNS Forwarder, when there are multiple Host Override entries the wrong item can be deleted from the list.

It may be related to how the items are sorted before display or before deleting. On a test VM here, hovering over the delete icon shows the IDs are not in order as if the list was sorted, for example:

aaaaa id=0
bbbbb id=3
ccccc id=1
ddddd id=2

Clicking the delete icon for entry "ccccc" actually removes "bbbbb".

The id numbers reflect the actual order of the entries in config.xml, which is unsorted.

Actions #1

Updated by Steve Beaver almost 4 years ago

  • Assignee changed from Steve Beaver to Anonymous

I think there was a recent PR that added sorting. That probably broke the relationship between the list and the indices.

Actions #2

Updated by Anonymous almost 4 years ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100
Actions #3

Updated by Jim Pingle almost 4 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF