-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
See #6721 (comment)
Currently, if there is more than one CollectionObject with the same catalogNumber in the collection, the CollectionObject that gets selected by this statement is undefined.
This could result in returning the wrong set of component ids, possibly including or omitting incorrect Components in the Query.
The same applies for cog_primary_co_sibling_ids
when the COG inheritance setting is enabled
specify7/specifyweb/stored_queries/queryfieldspec.py
Lines 537 to 539 in 81680b1
def cog_primary_co_sibling_ids(cat_num, collection): | |
# Get the collection object with the given catalog number | |
co = Collectionobject.objects.filter(catalognumber=cat_num, collection=collection).first() |
Metadata
Metadata
Assignees
Labels
No labels