Actions
Bug #1293
ferméProblème si la date séléctionnée ne correspond à aucune entrée dans la base
Début:
28/08/2015
Echéance:
% réalisé:
100%
Temps estimé:
Description
Started POST "/statistiques/modifier_code_qualite" for 127.0.0.1 at 2015-08-28 11:42:12 +0200 Processing by StatistiquesController#modifier_code_qualite as JS Parameters: {"utf8"=>"✓", "anne_code_qualite"=>"2015", "debutliste"=>"", "finliste"=>"", "dateliste"=>"1432382400000", "codequalite"=>"4", "commit"=>"submit"} (284.2ms) SELECT COUNT(*) FROM "donnees" Donnee Load (1.5ms) SELECT "donnees".* FROM "donnees" ORDER BY "donnees"."date" DESC LIMIT 1 CACHE (0.0ms) SELECT COUNT(*) FROM "donnees" Donnee Load (1.3ms) SELECT "donnees".* FROM "donnees" ORDER BY "donnees"."date" ASC LIMIT 1 Donnee Load (1.3ms) SELECT "donnees".* FROM "donnees" WHERE "donnees"."date" = '2015-05-23 12:00:00.000000' ORDER BY date ASC LIMIT 1 Completed 500 Internal Server Error in 296ms (ActiveRecord: 288.2ms) NoMethodError (undefined method `id' for nil:NilClass): app/controllers/statistiques_controller.rb:243:in `map' app/controllers/statistiques_controller.rb:243:in `modifier_code_qualite'
Actions