specify / specify7

Specify 7
https://www.specifysoftware.org/products/specify-7/
GNU General Public License v2.0
66 stars 36 forks source link

Taxon form is based on current discipline, not host taxon discipline #3293

Open grantfitzsimmons opened 1 year ago

grantfitzsimmons commented 1 year ago

While testing #3283 I found that the rank options are based on the current discipline's tree rather than the host taxon discipline.

It was originally /api/specify/taxontreedefitem/20/, appearing similar to the one below (link):

image image

I can change the rank to the valid rank in the current discipline, which in this case is now "DB", which is a rank that does not exist in the other discipline's tree definition.

https://user-images.githubusercontent.com/37256050/229657264-d6dc539d-e939-4f6f-9dcd-5a3838a8de5b.mov

Now I cannot open the "Life" rank as the lower rank is not part of the tree definition in the destination collection.

grantfitzsimmons commented 1 year ago

For more context, the rank Kingdom in the host taxon collection's discipline (Host) has a taxontreedefitem ID of 20. The rank of Kingdom in the source collection's discipline (Kriebel_Plants) has a taxontreedefitem ID of 2.

https://purdueherbaria11023-issue-2405.test.specifysystems.org/specify/view/taxontreedefitem/2/ https://purdueherbaria11023-issue-2405.test.specifysystems.org/specify/view/taxontreedefitem/20/

This means I cannot set the rank back to the correct option.

maxpatiiuk commented 1 year ago

This issue is a subset of #1886

emenslin commented 3 months ago

Can recreate in edge (7.9.6)