Skip to content

Commit

Permalink
Invalid has a special meaning for trackers
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Mar 20, 2011
1 parent 2513695 commit eaa20e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/trackers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def update
if !preview_mode && @tracker.save
redirect_to trackers_url, :notice => "Entrée du suivi modifiée"
else
flash.now[:alert] = "Impossible d'enregistrer cette entrée de suivi" if @tracker.invalid?
flash.now[:alert] = "Impossible d'enregistrer cette entrée de suivi" unless @tracker.valid?
render :edit
end
end
Expand Down

0 comments on commit eaa20e8

Please sign in to comment.