Opening the edit window for a particular zone will often result in a previously edited zone being displayed in the edit window
Description
When more than one zones are configured with the DNS plugin, and one is edited, if the user uses the back button to get to the DNS zone list, and then clicks edit on a different zone, the edit dialogue for the first zone is presented.
Distribution Name and Version
Ubuntu 16.04
FusionDirectory Version
1.2.1
Plugin with the defect
dns
PHP version used
7.0.22
Origin of php packages
Distribution
Steps to Reproduce
- Ensure the Systems and DNS plugins are installed
- Click the DNS menu item under the Systems category (left hand of the screen)
- Click Actions -> Create -> DNS Zone
- Fill in zone name e.g. foo.
- Fill in Primary DNS server e.g. dns.foo.
- Fill in Mail address e.g. mail.foo.
- Click OK
- Click Actions -> Create -> DNS Zone
- Fill in zone name e.g. bar.
- Fill in Primary DNS server e.g. dns.bar.
- Fill in Mail address e.g. mail.bar.
- Click OK
- Click the edit button (the pencil) for zone foo.
- Click the browser's back button
- Click the edit button (the pencil) for zone bar.
- Observe that the edit dialogue is for zone foo not zone bar as it should be.
Expected behavior:
When clicking edit next to a zone, it should edit the selected zone.
Actual behavior:
An edit dialogue is presented for the previous zone being edited if that dialogue was not exited using the Cancel or OK buttons.
Reproduces how often: Consistently.