Bug #7649
closedpkg_edit.php - The last row cannot be deleted with ntopng.xml
0%
Description
When I click on "Delete data" button in Diagnostics - ntopng Settings, I only get "the last row cannot be deleted" pop-up. The relevant code here [1], no idea what "row" is it referring to.
Updated by Kill Bill almost 7 years ago
Eh, linked wrong line: https://github.com/pfsense/FreeBSD-ports/blob/devel/net/pfSense-pkg-ntopng/files/usr/local/pkg/ntopng.xml#L176
<button class="btn btn-warning btn-sm" name='Delete' id='delete_ntopng_data' type='submit' value='Delete Data'><i class="fa fa-trash icon-embed-btn"></i>Delete Data</button>
Updated by Jim Pingle almost 7 years ago
- Assignee set to Jim Pingle
It doesn't like that the element id has "delete" in it and it isn't part of a repeatable/rowhelper control.
If you change the ID to something like "remove_ntopng_data" it works without producing the error. Since the ID is not important for how ntopng is using the buttton, I'd say that's the best way to fix this issue.
Updated by Jim Pingle almost 7 years ago
- Status changed from New to Feedback
New version of ntopng with a renamed ID is building now.
Updated by Kill Bill almost 7 years ago
Works (just edited manually for a quick test).
Updated by Jim Pingle almost 7 years ago
- Status changed from Feedback to Resolved