Author: tchemit Date: 2011-05-20 19:56:05 +0200 (Fri, 20 May 2011) New Revision: 192 Url: http://nuiton.org/repositories/revision/jredmine/192 Log: fix enum retreave Modified: trunk/jredmine-client/src/main/redmine/jredmine/app/controllers/jredmine_controller.rb Modified: trunk/jredmine-client/src/main/redmine/jredmine/app/controllers/jredmine_controller.rb =================================================================== --- trunk/jredmine-client/src/main/redmine/jredmine/app/controllers/jredmine_controller.rb 2011-05-20 17:54:47 UTC (rev 191) +++ trunk/jredmine-client/src/main/redmine/jredmine/app/controllers/jredmine_controller.rb 2011-05-20 17:56:05 UTC (rev 192) @@ -424,7 +424,8 @@ # recuperation des valeurs d'une enumeration def get_enumeration(type = params[:type]) - @result = Enumeration.get_values(type) + #@result = Enumeration.get_values(type) + @result = Enumeration.find(:all, :conditions =>["type = :sqlParamType", {:sqlParamType => type}]) render_array_result @result, "enumerations" end