specify / specify6

Source Code for Specify 6, Biological Collections Management Platform
https://specifysoftware.org
GNU General Public License v2.0
14 stars 6 forks source link

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

Open grantfitzsimmons opened 1 year ago

grantfitzsimmons commented 1 year ago

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.

melton-jason commented 1 year ago

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.

grantfitzsimmons commented 1 year ago

This was implemented but then removed in v6.8.03.

Implemented in development prior to the release of v6.8.03