Got 500 error when change directory name. #430

This commit is contained in:
Karel Pičman 2015-08-09 08:05:46 +02:00
parent 80dc263646
commit 95db100e0f

View File

@ -306,8 +306,9 @@ class DmsfController < ApplicationController
redirect_to dmsf_folder_path(:id => @project, :folder_id => @folder)
return
end
@pathfolder = copy_folder(@folder)
@folder.attributes = params[:dmsf_folder]
@pathfolder = copy_folder(@folder)
@folder.title = params[:dmsf_folder][:title]
@folder.description = params[:dmsf_folder][:description]
# Custom fields
if params[:dmsf_folder][:custom_field_values].present?