OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/controllers/rb_tasks_controller.rb

26 lines
639 B

class RbTasksController < RbApplicationController
unloadable
def create
@task = Task.create_with_relationships(params, @project.id)
status = (@task.errors.none? ? 200 : 400)
@include_meta = true
respond_to do |format|
format.html { render :partial => "task", :object => @task, :status => status }
end
end
def update
@task = Task.find_by_id(params[:id])
result = @task.update_with_relationships(params)
status = (result ? 200 : 400)
@include_meta = true
respond_to do |format|
format.html { render :partial => "task", :object => @task, :status => status }
end
end
end