diff --git a/CHANGELOG.md b/CHANGELOG.md index 59e8101e93..98811d6133 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,16 @@ This project does not yet adheres to [Semantic Versioning](https://semv \- +## [0.34.1] - 2023-08-07 + +### Fixed + +- Missing organization tab in Owner panel on New image task +- BibTeX download shows incorrect results on New source task [#3510] +- Asserted distribution API endpoint crashing when count is above 50 + +[#3510]: https://github.com/SpeciesFileGroup/taxonworks/issues/3510 + ## [0.34.0] - 2023-08-04 ### Added @@ -3733,8 +3743,9 @@ This project does not yet adheres to [Semantic Versioning](https://semv [#1532]: https://github.com/SpeciesFileGroup/taxonworks/issues/1532 -[unreleased]: https://github.com/SpeciesFileGroup/taxonworks/compare/v0.34.0...development -[0.34.0]: https://github.com/SpeciesFileGroup/taxonworks/compare/v0.34.0...v0.33.1 +[unreleased]: https://github.com/SpeciesFileGroup/taxonworks/compare/v0.34.1...development +[0.34.1]: https://github.com/SpeciesFileGroup/taxonworks/compare/v0.34.0...v0.34.1 +[0.34.0]: https://github.com/SpeciesFileGroup/taxonworks/compare/v0.31.1...v0.34.0 [0.33.1]: https://github.com/SpeciesFileGroup/taxonworks/compare/v0.33.0...v0.33.1 [0.33.0]: https://github.com/SpeciesFileGroup/taxonworks/compare/v0.32.3...v0.33.0 [0.32.3]: https://github.com/SpeciesFileGroup/taxonworks/compare/v0.32.2...v0.32.3 diff --git a/app/controllers/asserted_distributions_controller.rb b/app/controllers/asserted_distributions_controller.rb index 34701790cb..d6f8571b10 100644 --- a/app/controllers/asserted_distributions_controller.rb +++ b/app/controllers/asserted_distributions_controller.rb @@ -161,7 +161,7 @@ def api_index .per(params[:per]) if @asserted_distributions.all.count > 50 - params['extend'].delete('geo_json') + params['extend']&.delete('geo_json') end render '/asserted_distributions/api/v1/index' diff --git a/app/javascript/vue/components/Filter/Facets/shared/FacetTags.vue b/app/javascript/vue/components/Filter/Facets/shared/FacetTags.vue index 83bc411cd9..48aeb9f853 100644 --- a/app/javascript/vue/components/Filter/Facets/shared/FacetTags.vue +++ b/app/javascript/vue/components/Filter/Facets/shared/FacetTags.vue @@ -1,42 +1,40 @@ diff --git a/app/javascript/vue/tasks/images/new_image/components/PeopleSelector.vue b/app/javascript/vue/tasks/images/new_image/components/PeopleSelector.vue index 14b9407695..e765a0cfac 100644 --- a/app/javascript/vue/tasks/images/new_image/components/PeopleSelector.vue +++ b/app/javascript/vue/tasks/images/new_image/components/PeopleSelector.vue @@ -4,18 +4,34 @@

{{ title }}

diff --git a/app/javascript/vue/tasks/images/new_image/store/actions/applyAttibutions.js b/app/javascript/vue/tasks/images/new_image/store/actions/applyAttibutions.js index 9361fb81e0..f77ce18b2a 100644 --- a/app/javascript/vue/tasks/images/new_image/store/actions/applyAttibutions.js +++ b/app/javascript/vue/tasks/images/new_image/store/actions/applyAttibutions.js @@ -56,7 +56,7 @@ export default ({ state, commit }) => { license: state.license, attribution_object_type: item.base_class, attribution_object_id: item.id, - roles_attributes: roles + roles_attributes: attributionRoles } const attributionCreated = state.attributionsCreated.find( @@ -67,8 +67,11 @@ export default ({ state, commit }) => { const createdRolesList = getRoleList(attributionCreated) const newRoles = attributionRoles.filter( (item) => - !createdRolesList.find( - (role) => !!item?.person_id && role.person.id === item.person_id + !createdRolesList.some( + (role) => + (!!item?.person_id && role.person?.id === item?.person_id) || + (role.organization && + role.organization.id === item.organization_id) ) ) diff --git a/app/javascript/vue/tasks/sources/filter/components/bibtex.vue b/app/javascript/vue/tasks/sources/filter/components/bibtex.vue index 8534e9e5db..2adad51902 100644 --- a/app/javascript/vue/tasks/sources/filter/components/bibtex.vue +++ b/app/javascript/vue/tasks/sources/filter/components/bibtex.vue @@ -1,15 +1,15 @@ -