From f96cfb34d8e8470dfc272f55e1a724966fe50838 Mon Sep 17 00:00:00 2001 From: pavel Date: Thu, 1 Mar 2018 15:31:49 +0100 Subject: [PATCH 1/2] uninstall --- db/migrate/20170421101901_dmsf_file_container_rollback.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20170421101901_dmsf_file_container_rollback.rb b/db/migrate/20170421101901_dmsf_file_container_rollback.rb index 90f308b4..2f1a832a 100644 --- a/db/migrate/20170421101901_dmsf_file_container_rollback.rb +++ b/db/migrate/20170421101901_dmsf_file_container_rollback.rb @@ -69,7 +69,7 @@ class DmsfFileContainerRollback < ActiveRecord::Migration def down # dmsf_files - file_folder_ids = DmsfFile.joins(:dmsf_folder).where(:dmsf_folders => { :system => true }).pluck('dmsf_files.id, cast(dmsf_folders.title as int)') + file_folder_ids = DmsfFile.joins(:dmsf_folder).where(:dmsf_folders => { :system => true }).pluck('dmsf_files.id, cast(dmsf_folders.title as decimal)') remove_index :dmsf_files, :project_id rename_column :dmsf_files, :project_id, :container_id add_column :dmsf_files, :project_id, :int, :null => true # temporarily added for the save method From 154a913781e6f1d2f9efa451a6cdbad50ec40df8 Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Mon, 5 Mar 2018 14:00:33 +0100 Subject: [PATCH 2/2] ActionView::Template::Error, when i am creating issue from the list of all projects #831 --- app/views/dmsf_upload/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/dmsf_upload/_form.html.erb b/app/views/dmsf_upload/_form.html.erb index fb828e82..24a2a784 100644 --- a/app/views/dmsf_upload/_form.html.erb +++ b/app/views/dmsf_upload/_form.html.erb @@ -82,7 +82,7 @@ :max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i, :upload_path => dmsf_uploads_path(:format => 'js'), :description_placeholder => l(:label_optional_description), - :project => "#{@project.identifier}", + :project => @project ? "#{@project.identifier}" : "", :description => description, :awf => awf } %>