Commit 08e897bb authored by Klaus Stein's avatar Klaus Stein
Browse files

Fix failed save for new map fields

parent d362efe0
......@@ -75,7 +75,7 @@ class MapsController < ApplicationController
puts '###################################################'
puts params.require(:map).inspect
params.require(:map).permit(:title, :place_id, :repository_id,
params.require(:map).permit(:title, :titles, :interpretation, :place_id, :repository_id,
:description, :district, :basemap, :scale, :orientation, :papersize, :techniques, :platenumber, :creator, :legend, :damage_categories, :doi, :repository, :repo_location, :repo_doc_ref, :repo_doc_ref_part, :repo_url, :copyright, :copyright_holder, category_ids: [], itemdates_attributes: [:id, :edtfdate, :description, :_destroy], image_maps_attributes: [:id, :name, :anchors, :clip, :image, :_destroy])
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment