Merge branch 'master' into master-to-rails3

Conflicts:
	Gemfile
	README_DEVEL
	app/controllers/articles_controller.rb
	app/controllers/orders_controller.rb
	app/controllers/tasks_controller.rb
	app/models/task.rb
	app/views/articles/_import_search_results.haml
	app/views/articles/index.haml
	app/views/messages/new.haml
	app/views/ordering/_order_head.haml
	app/views/ordering/my_order_result.haml
	app/views/orders/show.haml
	app/views/stockit/new.html.haml
	db/schema.rb
This commit is contained in:
benni 2012-12-14 18:10:46 +01:00
commit 0edd29dfd4
15 changed files with 44 additions and 22 deletions

View file

@ -37,8 +37,7 @@ class TasksController < ApplicationController
def update
@task = Task.find(params[:id])
@task.attributes=(params[:task])
if @task.errors.empty?
@task.save
if @task.errors.empty? && @task.save
flash[:notice] = "Aufgabe wurde aktualisiert"
if @task.workgroup
redirect_to workgroup_tasks_url(workgroup_id: @task.workgroup_id)