Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dsenalik
Copy link
Contributor

@dsenalik dsenalik commented Aug 1, 2024

Bug Fix

Closes #1941

Tripal Version: 4.x

Description

We were unable to add the ChadoAdditionalTypeTypeDefault field manually. This is now fixed.

Also revert an inadvertent recent change from PR #1940 i.e. https://github.com/tripal/tripal/pull/1940/files#r1709455275

Testing

  1. Tripal -> Page Structure -> Contact -> Manage Fields
  2. Remove the "Contact Type" field (Chado Type Reference).
  3. Click "+Create a new field"
  4. Manually add this field type back, the CV term was "Communication Contact" but any will do.
  5. Now create a new contact entity and specify any CV term for the type. Contact will be created without error.

@dsenalik dsenalik added bug - confirmed For issues where a core developer has confirmed a bug exists. Tripal 4 Group 1 - Tripal Content Types | Terms | Fields Any issue relating to Tripal Content including types, terms, and fields. labels Aug 1, 2024
Copy link
Member

@laceysanderson laceysanderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Code looks good, clean and simple
✅ Able to add a type field to the contact as described
✅ Able to create/edit a contact with the new field and the type is set as it should be.

Thanks for the fix @dsenalik! This is ready to merge! 🎉

@laceysanderson laceysanderson merged commit 7ef42b4 into 4.x Aug 23, 2024
@laceysanderson laceysanderson deleted the tv4g1-issue1941-additional-type-field branch August 23, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug - confirmed For issues where a core developer has confirmed a bug exists. Group 1 - Tripal Content Types | Terms | Fields Any issue relating to Tripal Content including types, terms, and fields.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't add "Chado Type Reference" field

2 participants