Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoDelAssembly committed Aug 4, 2020
2 parents 239ef61 + 57e0dfd commit 56955ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ This project <em>does not yet</em> adheres to [Semantic Versioning](https://semv
- Manage synonyms includes combinations [#1628]
- Recent and per params in source filter and controller
- Missing ZIP dependency for docker images
- Attempting to return geographic areas in OTU smart selector on certain conditions

[#446]: https://github.com/SpeciesFileGroup/taxonworks/issues/446
[#856]: https://github.com/SpeciesFileGroup/taxonworks/issues/856
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,5 +370,8 @@ export default {
max-width: 150px;
}
}
.otu_tag_taxon_name {
white-space: pre-wrap !important;
}
}
</style>
2 changes: 1 addition & 1 deletion app/models/otu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def self.select_optimized(user_id, project_id, target = nil)
Otu.where('"otus"."id" IN (?)', r.first(4) ).to_a).uniq.sort{|a,b| a.otu_name <=> b.otu_name}
else
h[:recent] = Otu.where(project_id: project_id).order('updated_at DESC').limit(10).to_a.sort{|a,b| a.otu_name <=> b.otu_name}
h[:quick] = GeographicArea.pinned_by(user_id).pinboard_inserted.where(pinboard_items: {project_id: project_id}).to_a.sort{|a,b| a.otu_name <=> b.otu_name}
h[:quick] = Otu.pinned_by(user_id).pinboard_inserted.where(pinboard_items: {project_id: project_id}).to_a.sort{|a,b| a.otu_name <=> b.otu_name}
end

h
Expand Down

0 comments on commit 56955ef

Please sign in to comment.