-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Labels
1 - RequestA request made by a member of the communityA request made by a member of the community2 - QueriesIssues that are related to the query builder or queries in generalIssues that are related to the query builder or queries in general
Description
When formatter includes a field that does not have a field name and exists just to provide a separator, back-end fails. Example Formatter:
<format
name="Agent"
title="Agent"
class="edu.ku.brc.specify.datamodel.Agent"
default="true"
>
<switch single="false" field="agentType">
<fields value="0">
<field>firstName</field>
</fields>
<fields value="1">
<field>firstName</field>
<field sep=":||">firstName</field>
<field sep=" *">agentType</field>
<!-- It fails because of the following field: -->
<field sep=" "/>
</fields>
<fields value="2">
<field>lastName</field>
</fields>
</switch>
</format>Back-end should be modified to handle this case
See #3309 (comment)
Fails on line this line:
specify7/specifyweb/stored_queries/format.py
Line 112 in 8a2860a
| path = fieldNode.text.split('.') |
Metadata
Metadata
Assignees
Labels
1 - RequestA request made by a member of the communityA request made by a member of the community2 - QueriesIssues that are related to the query builder or queries in generalIssues that are related to the query builder or queries in general
Type
Projects
Status
✅ Done