ORIENT/modules/backend/widgets
Tobias Kündig dc72cafcd1
Don't persist failed search terms (#5039)
If a column is defined as searchable, that is not actually searchable (like a partial) and a user filters a list using the searchbox, an Exception is thrown.

Unfortunately, this errorenous search term has already been persisted to the session so on subsequent page loads, the user is presented with an Exception with no way to resolve it themselves.

This PR catches any exception that happens during the search and resets any persisted search terms so that the user can continue working after a page load.

The exception itself will still be thrown.

To reproduce the issue this PR solves:

Set a partial column in any list as searchable: true
Submit a search query
Hit F5
2020-04-27 01:55:40 -06:00
..
filter/partials Support ignoreTimezone on `type: date` filter scopes too 2020-04-04 22:16:32 -06:00
form Add support for linkable form tabs (#4754) 2020-04-04 21:56:48 -06:00
lists Prevent browser caching of list checkboxes (#4949) 2020-03-31 02:31:16 -06:00
mediamanager Simplify Media Library upload logic (#5026) 2020-04-04 02:11:28 -06:00
reportcontainer Replace use of parseJSON with JSON.parse (#4517) 2019-09-14 06:25:18 -06:00
search/partials Fix issue where the clear search button would submit a form if the search widget is within an HTML form 2018-12-28 11:51:51 -06:00
table Auto-detect correct postback handler for datatable widget. (#4967) 2020-03-05 16:37:16 +08:00
toolbar/partials Decouple the toolbar from the layout system 2015-08-26 20:24:37 +10:00
Filter.php Add option to ignore timestamps for date range filters (#4966) 2020-04-04 22:12:32 -06:00
Form.php Fix argument name in event handler examples (#4950) 2020-02-19 23:42:51 -06:00
Lists.php Allow translations of default column values (#5038) 2020-04-12 11:17:45 -06:00
MediaManager.php Simplify Media Library upload logic (#5026) 2020-04-04 02:11:28 -06:00
ReportContainer.php Code quality clean up (#4449) 2019-07-18 08:50:37 -06:00
Search.php Don't persist failed search terms (#5039) 2020-04-27 01:55:40 -06:00
Table.php Auto-detect correct postback handler for datatable widget. (#4967) 2020-03-05 16:37:16 +08:00
Toolbar.php Code quality clean up (#4449) 2019-07-18 08:50:37 -06:00