• Resolved krdevio

    (@krdevio)


    Hello,

    This is a bug report for a couple issues.

    1: Sort by date does not work properly for the forms table in Dashboard

    Clicking on the DATE CREATED table, expectation is that the form listing sorts by date. Behavior is that it does not sort in any meaningful way.

    Fix: in dashboard.min.js, currently, sortFormsTable.t() will return 0 for anything that is not an ID. changing the default 0 return to e (the actual variable value) fixes the issue.

    2: If you import a form with an empty date in the database, sort is broken

    Sometimes if you import a form via import/export, not sure what goes on with the process but the created_at in the database is NULL. This is represented properly in the forms table with “Invalid date” text. However, this breaks the sorting by DATE_CREATED, with a JS error Uncaught TypeError: Cannot read properties of null (reading 'match'). The issue is the same function as in 1 above, it is because . match() function does not exist on a NULL value. properly checking if the value is NULL/undefined should fix this issue.

    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘[Dashboard forms table]: Sort by date does not work properly’ is closed to new replies.