specify6 icon indicating copy to clipboard operation
specify6 copied to clipboard

`UIFormatters`: Regex formatted fields have their value replaced with the pattern whenever changes are made

Open grantfitzsimmons opened this issue 3 years ago • 2 comments

https://github.com/specify/specify6/assets/37256050/b546ad06-8ceb-4bbe-8fea-6a14fe76e38e

See this guide on setting up a regular expression formatted field: https://discourse.specifysoftware.org/t/catalog-number-regular-expression-formatter-set-up-in-specify-7/766

Making any change to the UIFormatters file in 6 (by creating a new field format in the Schema Config, for instance) breaks the regular expression both in 6 and 7, as it replaces the value with the pattern.

grantfitzsimmons avatar Jul 11 '23 15:07 grantfitzsimmons

This was implemented but then removed in v6.8.03.

See https://github.com/specify/specify6/pull/1189/commits/6de8023fa8231fd13c8482398105f82beacb7697 for a way to fix this issue and add support for customizing regular expressions in the Field Format Editor.

melton-jason avatar Jul 11 '23 15:07 melton-jason

This was implemented but then removed in v6.8.03.

Implemented in development prior to the release of v6.8.03

grantfitzsimmons avatar Jul 11 '23 16:07 grantfitzsimmons