Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close #556. Catch null error when there are no common names #562

Merged
merged 6 commits into from
Mar 21, 2015

Conversation

simonv3
Copy link
Member

@simonv3 simonv3 commented Mar 21, 2015

What's Changed

  • Catch null error when there are no common names
  • Update search on the crop api

@@ -66,6 +66,7 @@ var getUrlVar = function(key) {

var getIDFromURL = function(key) {
var result = new RegExp(key + "/([0-9a-zA-Z\-]*)", "i").exec(window.location.pathname);
console.log(result)

Choose a reason for hiding this comment

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

Missing semicolon.

crops = Crop.search(q,
limit: 25,
partial: true,
misspellings: {distance: 2},

Choose a reason for hiding this comment

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

Space inside { missing.
Space inside } missing.

FactoryGirl.create(:detail_option, name: 'Potted', category: 'environment')
FactoryGirl.create(:detail_option, name: 'Inside', category: 'environment')
FactoryGirl.create(:detail_option, name: 'Inside', category: 'environment')
outside = FactoryGirl.create(:detail_option,

Choose a reason for hiding this comment

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

Useless assignment to variable - outside.

@simonv3
Copy link
Member Author

simonv3 commented Mar 21, 2015

I will fix the hound errors in another PR.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 99.94% when pulling 6b287f3 on simonv3:master into 88722d9 on openfarmcc:master.

simonv3 added a commit that referenced this pull request Mar 21, 2015
Close #556. Catch null error when there are no common names
@simonv3 simonv3 merged commit 27edbeb into openfarmcc:master Mar 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants