From b78a91f158f90343d49a252fc332680108eba18d Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 22 Jul 2026 20:43:55 +0200 Subject: Make important flash notices survive the boilerplate Node-locked info in nodes controller --- app/controllers/nodes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/nodes_controller.rb') diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index 9c84420..87d2681 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb @@ -77,7 +77,7 @@ class NodesController < ApplicationController "This page has unsaved changes from a previous session, shown below. " \ "Save to keep them, or use \"Discard Autosave\" below to go back to the last saved version." elsif freshly_locked - flash.now[:notice] = "Node locked and ready to edit" + flash.now[:notice] ||= "Node locked and ready to edit" end rescue LockedByAnotherUser => e flash[:error] = e.message -- cgit v1.3