gristlabs_grist-core/app
Dmitry S e0fb281eba (core) When searching, use formatter.formatAny() to handle values of invalid type.
Summary:
This turns out necessary because ReferenceList columns are formatted
using the formatter of the associated visibleCol. This works correctly
in dedicated widgets, but in generic code (like SearchModel here), this
formatter needs to handle unexpected values (of type ReferenceList).

Without the fix, it produces JS errors when search reaches a
RefList:<Date> column.

A better fix would allow a formatter to know that it expects a ReferenceList,
AND to know how to format each value of it, but that's a bigger question
that's outside the scope of this fix.

Test Plan: Includes a browser test which reproduces the bug.

Reviewers: cyprien

Reviewed By: cyprien

Differential Revision: https://phab.getgrist.com/D3195
2021-12-21 15:35:40 -05:00
..
client (core) When searching, use formatter.formatAny() to handle values of invalid type. 2021-12-21 15:35:40 -05:00
common (core) Parse string cell values in Doc API and Imports 2021-12-17 15:40:58 +02:00
gen-server (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
plugin (core) Parsing multiple values in reflists, parsing refs without table data in client 2021-11-09 14:41:04 +02:00
server (core) When searching, use formatter.formatAny() to handle values of invalid type. 2021-12-21 15:35:40 -05:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00