From 855fb2da849383b50af5e9d255b0a9dd55610aac Mon Sep 17 00:00:00 2001 From: Arnaud Levy <arnaud.levy@noesya.coop> Date: Tue, 17 Dec 2024 08:02:05 +0100 Subject: [PATCH] =?UTF-8?q?Gestion=20d'une=20subtilit=C3=A9=20de=20heading?= =?UTF-8?q?=20rank=20(#2503)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix rank subtlety * better --- app/models/communication/block/with_heading_ranks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/communication/block/with_heading_ranks.rb b/app/models/communication/block/with_heading_ranks.rb index 352011031..ecf3951e5 100644 --- a/app/models/communication/block/with_heading_ranks.rb +++ b/app/models/communication/block/with_heading_ranks.rb @@ -9,7 +9,7 @@ module Communication::Block::WithHeadingRanks def heading_rank_children return false unless heading_children? - heading_rank_self ? heading_rank_self + 1 : heading_rank_base + title.present? ? heading_rank_self + 1 : heading_rank_self end def heading_children? -- GitLab