Sorting Jobs table by object causes FieldError #14223
Labels
severity: low
Does not significantly disrupt application functionality, or a workaround is available
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.6.4
Python version
3.8
Steps to Reproduce
When attempting to sort by object, Django will throw a FieldError meaning the HTMX request appears to do nothing. The error can be observed in the browser console. Subsequently, the FieldError becomes visible when reloading the page, because sorting by object is now stored in the user's preferences.
In case anyone stumbles across this, the fix is to remove the table configuration for the JobTable from the user preferences or remove the ordering by appending ?sort= to the /core/jobs URL.
Expected Behavior
The Jobs list should either return a list sorted by the object, or shouldn't allow the table to be sorted by the object field at all.
Observed Behavior
A FieldError exception is raised.
The text was updated successfully, but these errors were encountered: