Topic on Extension talk:CollapsibleSections/Flow

v1.39 Unable to collapse all headings under h2

14
Summary by Elcapitan68

Patch created and backported to REL1_39 and REL1_35

Blyatman9000 (talkcontribs)

I have a desktop page with several h2 headings, and with several h3 headings under each of the h2 headings. When I collapse the h2 heading, it ONLY collapses the text up until the h3 heading.

In the example below, when I try to collapse Heading 2.1, it only collapses "Text2.1", but everything after this remains uncollapsed. Is there a way for me to set it up such that when I collapse Heading 2.1, it will collapse everything up until Heading 2.2?

I used the following settings:

wfLoadExtension( 'CollapsibleSections' );

$wgCollapsibleSectionsCollapsedByDefault = true;

$wgCollapsibleSectionsEnableDesktop = true;

Heading 2.1

Text2.1

Heading 3.1

Text3.1

Heading 2.2

Elcapitan68 (talkcontribs)

Thank you for reporting the issue @Blyatman9000. I believe the extension is supposed to work as you expected and it does work as expected on MW 1.39 as I can see on my test installation. Please, note that official compatibility policy of the extension is LTS. Anyway, please let me know what skin you use (vector, vector-2022 or something else). Can you share the exact wiki markup you use? So that I could try to reproduce the issue on 1.40. The version of the CollapsibleSections will also help.

Blyatman9000 (talkcontribs)

Hi @Elcapitan68, I am using the following:

- MW 1.39.3

- vector-2022 skin

- CollapsibleSections 1.40.


wiki markup:

== Heading 2.1 ==
Text2.1

=== Heading 3.1 ===
Text3.1

== Heading 2.2 ==

Screenshot of issue: https://ibb.co/BGyYFhx

I also noticed that I sometimes need to bypass the browser's cache to see the changes. In addition, some of the h2 headings do not have the collapsible arrow next to them (screenshot: https://ibb.co/jvqsgJ2).

Elcapitan68 (talkcontribs)

@Blyatman9000, I guess you are supposed to use the version that matches the version of the core (1.39). Can you please downgrade the CollapsibleSections to 1.39 (REL1_39 branch if you use git) and repeat checking?

Blyatman9000 (talkcontribs)

@Elcapitan68, I downgraded to 1.39 but the issue persists.

Elcapitan68 (talkcontribs)

@Blyatman9000 Thank you for your patience and collaboration. The issue is confirmed. Fixing ... Will update you ASAP.

Elcapitan68 (talkcontribs)
Blyatman9000 (talkcontribs)

@Elcapitan68 thanks for the update. Can a comment be posted here once a fix has been implemented?

Elcapitan68 (talkcontribs)
Tosfos (talkcontribs)

We have a patch in review for this.

Elcapitan68 (talkcontribs)
Blyatman9000 (talkcontribs)

Thank you. This is probably a stupid question, but how do I update the version to include this patch? I tried to redownload the extension using the extension distributor, and then delete the old folder and replacing it with the new one in the ../extensions folder. However, in the Special:Versions page, the version has not changed and the behaviour of the collapsible headings is still as before. I also tried downloading the files in the above links but the same thing happens - version and behaviour is still not updating.

Elcapitan68 (talkcontribs)