From 8957808536e53bb9329cb6ae12835fde7835210b Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 27 Jun 2026 21:43:55 +0200 Subject: Stage 7 click-testing fixes (2) - nodes_controller: permit staged_slug and staged_parent_id in node params; these were silently dropped since strong parameters migration, breaking the two-phase slug/parent change workflow - file_attachment: add SVG support; vector files are copied to all style directories without rasterisation, preserving scalability in the browser - assets index/show: constrain image display with max-width/max-height via admin.css td img rule; fixes oversized SVG thumbnails while leaving raster variants unaffected --- app/controllers/nodes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index bd60b27..494887d 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb @@ -107,7 +107,7 @@ class NodesController < ApplicationController private def node_params - params.fetch(:node, {}).permit(:slug, :parent_id) + params.fetch(:node, {}).permit(:slug, :parent_id, :staged_slug, :staged_parent_id) end def page_params -- cgit v1.3