mirror of
https://github.com/redmine/redmine.git
synced 2025-11-06 21:35:46 +01:00
Localization plugin removed (replaced with GLoc)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@14 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -38,7 +38,7 @@ class EnumerationsController < ApplicationController
|
||||
def create
|
||||
@enumeration = Enumeration.new(params[:enumeration])
|
||||
if @enumeration.save
|
||||
flash[:notice] = 'Enumeration was successfully created.'
|
||||
flash[:notice] = l(:notice_successful_create)
|
||||
redirect_to :action => 'list', :opt => @enumeration.opt
|
||||
else
|
||||
render :action => 'new'
|
||||
@@ -52,7 +52,7 @@ class EnumerationsController < ApplicationController
|
||||
def update
|
||||
@enumeration = Enumeration.find(params[:id])
|
||||
if @enumeration.update_attributes(params[:enumeration])
|
||||
flash[:notice] = 'Enumeration was successfully updated.'
|
||||
flash[:notice] = l(:notice_successful_update)
|
||||
redirect_to :action => 'list', :opt => @enumeration.opt
|
||||
else
|
||||
render :action => 'edit'
|
||||
@@ -60,7 +60,8 @@ class EnumerationsController < ApplicationController
|
||||
end
|
||||
|
||||
def destroy
|
||||
Enumeration.find(params[:id]).destroy
|
||||
Enumeration.find(params[:id]).destroy
|
||||
flash[:notice] = l(:notice_successful_delete)
|
||||
redirect_to :action => 'list'
|
||||
rescue
|
||||
flash[:notice] = "Unable to delete enumeration"
|
||||
|
||||
Reference in New Issue
Block a user