gjbarnard / moodle-format_grid

Grid course format contributed by Gareth J Barnard originally created by Paul Krix
GNU General Public License v3.0
21 stars 55 forks source link

Duplicated section name #134

Closed golenkovm closed 3 years ago

golenkovm commented 3 years ago

Hi,

Just found a bug that duplicates a section name in Moodle 3.9.

Steps to replicate:

Screenshot: image

Replicated with Moodle 3.9 and master with boost theme.

golenkovm commented 3 years ago

This works fine with Moodle 3.7 and 3.8

golenkovm commented 3 years ago

Hi @gjb2048

I've done some research how does it look like in 3.8 and 3.9.

Moodle 3.8: All sections on one page layout:

One section per page layout:

Moodle 3.9: All sections on one page layout:

One section per page layout:

From my point of view, not linkable and not editable section name without dots should be removed from one section per page layout with general section moved into grid.

Cheers Mikhail

golenkovm commented 3 years ago

This looks to be a regression of https://github.com/gjb2048/moodle-format_grid/commit/3db48d5d258215ab5b4ec05212d87835053575e6

golenkovm commented 3 years ago

Hey @gjb2048

Could you please have a look at the pull requests that I've created. Feel free to let me know if you think this should be fixed in another way.

Cheers, Mikhail

gjb2048 commented 3 years ago

Dear Mikhail,

Will look as soon as I can.

Kind regards,

Gareth

gjb2048 commented 3 years ago

Patches are incomplete. Is actually a misplacement of the 'id' -> https://github.com/gjb2048/moodle-format_grid/commit/3db48d5d258215ab5b4ec05212d87835053575e6#diff-e82e7ce1e17af09c0cd0f5fee5930434efabb50487fa59a889bc3ba36503c1b8R244.

gjb2048 commented 3 years ago

Far more complex than anticipated -> https://github.com/gjb2048/moodle-format_grid/commit/3c73a292767f015a3ef72d266d111c1cb4bb140f

golenkovm commented 3 years ago

Hi @gjb2048 Seems like your patch does what it's supposed to do. Thank you

gjb2048 commented 3 years ago

@golenkovm Sorry I couldn't accept your patches, removing the section title there was not the whole story.

golenkovm commented 3 years ago

No worries @gjb2048 Thank you for quick response and fixing the issue. I think this can be closed now. Cheers