Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions specifyweb/frontend/js_src/lib/components/FormParse/cells.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,17 @@ export type SubViewSortField = {
export const cellAlign = ['left', 'center', 'right'] as const;
export const cellVerticalAlign = ['stretch', 'center', 'start', 'end'] as const;

const specialFieldNames = new Set([
/*
* Legacy synthetic form controls that are not schema-backed fields.
* These are still parsed intentionally by some field renderers.
*/
'this',
'generateLabelChk',
'generateInvoice',
'sendEMail',
]);

const processCellType: {
readonly [KEY in keyof CellTypes]: (props: {
readonly cell: SimpleXmlNode;
Expand Down Expand Up @@ -156,6 +167,7 @@ const processCellType: {

if (
resolvedFields === undefined &&
!specialFieldNames.has(rawFieldName ?? '') &&
(fieldDefinition.type !== 'Plugin' ||
fieldDefinition.pluginDefinition.type === 'PartialDateUI')
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export const operationPolicies = {
'/tree/edit/storage': [
'merge',
'move',
'bulk_move',
'synonymize',
'desynonymize',
'repair',
'bulk_move',
],
'/tree/edit/geologictimeperiod': [
'merge',
Expand Down
Loading