summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index d580c28e6..f53c3d1d6 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -41,7 +41,17 @@ class RepositoriesController < ApplicationController
@repository.project = @project if @repository
end
if request.post? && @repository
- @repository.attributes = params[:repository]
+ p1 = params[:repository]
+ p = {}
+ p_extra = {}
+ p1.each do |k, v|
+ if k =~ /^extra_/
+ p_extra[k] = v
+ else
+ p[k] = v
+ end
+ end
+ @repository.attributes = p
@repository.save
end
render(:update) do |page|