This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :redmine do | |
namespace :backlogs do | |
desc "test sql execute" | |
task :test_sql_execute => :environment do | |
# using indices has different behavior between mysql and postgres | |
#query = "select coalesce(max(position), -1) + 1 from issues where not position is null" | |
#puts query | |
#res = RbStory.connection.execute(query) | |
#puts res | |
#res.each{|row| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb | |
index 734b2d8..a89a4a4 100644 | |
--- a/app/controllers/application_controller.rb | |
+++ b/app/controllers/application_controller.rb | |
@@ -105,7 +105,9 @@ class ApplicationController < ActionController::Base | |
elsif Setting.rest_api_enabled? && accept_api_auth? | |
if (key = api_key_from_request) | |
# Use API key | |
- User.find_by_api_key(key) | |
+ user = User.find_by_api_key(key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/views/backlogs/_project_settings.html.erb b/app/views/backlogs/_project_settings.ht | |
index 1a082df..29d0c6f 100644 | |
--- a/app/views/backlogs/_project_settings.html.erb | |
+++ b/app/views/backlogs/_project_settings.html.erb | |
@@ -1,4 +1,4 @@ | |
-<% rb_form_for @project, | |
+<%= form_for @project, | |
:as => :rb_project_settings, | |
:url => { :controller => 'rb_project_settings', | |
:action => 'project_settings', :project_id => @project }, |