Skip to content

Commit

Permalink
Input filter fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Feb 1, 2012
1 parent 445808e commit 4388fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/listed_taxa_controller.rb
Expand Up @@ -153,7 +153,7 @@ def destroy
private

def load_listed_taxon
unless @listed_taxon = ListedTaxon.find_by_id(params[:id], :include => [:list, :taxon, :user])
unless @listed_taxon = ListedTaxon.find_by_id(params[:id].to_i, :include => [:list, :taxon, :user])
flash[:notice] = "That listed taxon doesn't exist."
redirect_back_or_default('/')
return
Expand Down

0 comments on commit 4388fad

Please sign in to comment.