Fixed bug with platforms#clone
This commit is contained in:
parent
103cb16f27
commit
392db40a31
|
@ -84,7 +84,7 @@ class PlatformsController < ApplicationController
|
|||
def clone
|
||||
can_perform? @platform if @platform
|
||||
if request.post?
|
||||
cloned = @platform.clone(request[:platform]['name'], request[:platform]['unixname'])
|
||||
cloned = @platform.clone(params[:platform]['name'], params[:platform]['unixname'])
|
||||
if cloned
|
||||
flash[:notice] = 'Клонирование успешно'
|
||||
redirect_to cloned
|
||||
|
|
Loading…
Reference in New Issue