-
Notifications
You must be signed in to change notification settings - Fork 82
Bugfix: Site support form success message is shown below blocks or advert tiles on frontpage, resolves #488 #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -199,6 +199,7 @@ | |
| {{> core/moremenu}} | ||
| </div> | ||
| {{/secondarymoremenu}} | ||
| {{{ output.course_content_header }}} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am afraid that we can't move that function call that easily. The My gut feeling is that we could move forward by overwriting the We have done something like that before with the Do you think you could proceed into this direction? |
||
| {{#regions.contentupper.hasblocks}} | ||
| <section id="theme-block-region-content-upper" class="theme-block-region" aria-label="{{#str}}blocks{{/str}}"> | ||
| {{{ regions.contentupper.addblockbutton }}} | ||
|
|
@@ -217,7 +218,6 @@ | |
| {{#hasregionmainsettingsmenu}} | ||
| <div class="region_main_settings_menu_proxy"></div> | ||
| {{/hasregionmainsettingsmenu}} | ||
| {{{ output.course_content_header }}} | ||
| {{#headercontent}} | ||
| {{> core/activity_header }} | ||
| {{/headercontent}} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -236,6 +236,25 @@ Feature: Configuring the theme_boost_union plugin for the "Support page" tab on | |
| Then I should see "Your accessibility support request was sent" | ||
| # Unfortunately, the content of the email can't be tested with Behat yet as we do not have a way to test sent emails yet. | ||
|
|
||
| @javascript | ||
| Scenario: Support form success notification is shown before content-upper blocks on the homepage | ||
|
||
| Given the following config values are set as admin: | ||
| | config | value | plugin | | ||
| | defaulthomepage | Home | | | ||
| | enableaccessibilitysupport | yes | theme_boost_union | | ||
| | blockregionsforfrontpage | content-upper | theme_boost_union | | ||
| And the following "blocks" exist: | ||
| | blockname | contextlevel | reference | pagetypepattern | defaultregion | | ||
| | online_users | Course | Acceptance test site | site-index | content-upper | | ||
| When I log in as "admin" | ||
| And I am on site homepage | ||
| And I should see "Online users" in the "#theme-block-region-content-upper" "css_element" | ||
| And I am on accessibilitysupport page | ||
| And I set the field "Message" to "Frontpage notification order test" | ||
| And I click on "Submit" "button" | ||
| And I wait until the page is ready | ||
| Then "Your accessibility support request was sent" "text" should appear before ".block_online_users" "css_element" | ||
|
|
||
| # Unfortunately, this can't be tested with Behat yet as we do not have a way to test sent emails yet (or rather block the sending of the email). | ||
| # Scenario: Sending the accessibility support form fails and the fallback message is shown | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| defined('MOODLE_INTERNAL') || die(); | ||
|
|
||
| $plugin->component = 'theme_boost_union'; | ||
| $plugin->version = 2025041428; | ||
| $plugin->version = 2025041429; | ||
|
||
| $plugin->release = 'v5.0-r11'; | ||
| $plugin->requires = 2025041401; | ||
| $plugin->supported = [500, 500]; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog entries with bug fixes should be formulated in the past tense, if possible.
I will fix that in a review changes commit.