diff --git a/specifyweb/frontend/js_src/lib/components/WbPlanView/navigator.ts b/specifyweb/frontend/js_src/lib/components/WbPlanView/navigator.ts index 782d3ca87fe..fdcc81cb4e9 100644 --- a/specifyweb/frontend/js_src/lib/components/WbPlanView/navigator.ts +++ b/specifyweb/frontend/js_src/lib/components/WbPlanView/navigator.ts @@ -177,7 +177,7 @@ export type MappingLineData = Pick< readonly defaultValue: string; }; -const queryBuilderTreeFields = new Set(['fullName', 'author']); +const queryBuilderTreeFields = new Set(['fullName', 'author', 'groupNumber']); /** * Get data required to build a mapping line from a source mapping path diff --git a/specifyweb/stored_queries/queryfieldspec.py b/specifyweb/stored_queries/queryfieldspec.py index ed4824d84c3..e92d47f92fa 100644 --- a/specifyweb/stored_queries/queryfieldspec.py +++ b/specifyweb/stored_queries/queryfieldspec.py @@ -22,7 +22,7 @@ DATE_PART_RE = re.compile(r'(.*)((NumericDay)|(NumericMonth)|(NumericYear))$') # Pull out author or groupnumber field from taxon query fields. -TAXON_FIELD_RE = re.compile(r'(.*) ((Author)|(GroupNumber))$') +TAXON_FIELD_RE = re.compile(r'(.*) ((Author)|(groupNumber))$') # Look to see if we are dealing with a tree node ID. TREE_ID_FIELD_RE = re.compile(r'(.*) (ID)$')