Skip to content
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

DRAFT: Mdl 72188 master seb js integration dev #1

Open
wants to merge 96 commits into
base: master-seb
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
81b0d05
MDL-72470 calendar: Add breadcrumbs to calendar page
sharidas Nov 8, 2021
697594c
MDL-73011 core: Clean previous tab content when switching tabs
dravek Nov 5, 2021
c0ceaef
MDL-73011 reportbuilder: remove workarounds for tab switching.
paulholden Nov 11, 2021
10baa46
MDL-73038 course: remove course module title double encoding.
paulholden Nov 9, 2021
2bd34ed
MDL-72612 Custom user field support: Quiz report grading
Sep 21, 2021
ef9ffcd
MDL-69496 form: Check if element has attributes
1JackBlack1 Nov 11, 2021
e11332c
MDL-69092 behat: Repeated generator
andrewnicols Oct 26, 2020
ec160a9
MDL-72966 File upload: Uncaught Error from JS when uploading the file
JBThong Nov 10, 2021
7be967d
Merge branch 'MDL-73038' of https://github.com/paulholden/moodle
andrewnicols Nov 15, 2021
6ca9c21
MDL-70801 core_my: Add a new courses page
Chocolate-lightning Oct 21, 2021
e110e5b
MDL-70801 block_myoverview: Upgrade steps to relocate the block
Chocolate-lightning Oct 21, 2021
6d26ba7
MDL-72096 core: Add safe ORDER BY helpers for db sorting from user input
mickhawkins Nov 4, 2021
5efc19d
Merge branch 'MDL-72612' of https://github.com/mkassaei/moodle
ilyatregubov Nov 15, 2021
4f96d7a
MDL-70721 core: a new mustache helper to clean string after get_string
rezaies Aug 5, 2021
01f8949
Merge branch 'MDL-73011' of https://github.com/paulholden/moodle
ilyatregubov Nov 15, 2021
836f2f0
MDL-72908 admin: correctly distinguish purging all/selected caches.
paulholden Nov 9, 2021
ad1747e
MDL-71699 grade_report: Add custom user field support
Jun 29, 2021
f897b26
Merge branch 'MDL-72908' of https://github.com/paulholden/moodle
stronk7 Nov 15, 2021
d0fc23c
Merge branch 'MDL-72096-master' of https://github.com/mickhawkins/moodle
stronk7 Nov 15, 2021
652392d
MDL-70721 output: remove {{#quote}} wherever it was misused
rezaies Aug 9, 2021
7ba7920
MDL-70721 output: Remove redundant title
rezaies Aug 11, 2021
3c88cc7
Automatically generated installer lang files
Nov 16, 2021
26ca780
MDL-72967 lib: fix typo in excellib insert_bitmap() method
faisalkaleem Nov 14, 2021
c988241
Merge branch 'MDL-72966-master' of https://github.com/NashTechOpenUni…
junpataleta Nov 16, 2021
815f519
MDL-72925 mod_forum: Filter discussion when grading
TomoTsuyuki Nov 16, 2021
4fb5fb0
MDL-72250 theme_boost: add mobile nav drawer
Oct 20, 2021
8d976f9
MDL-72250 tool_usertours: behat update for new drawer toggle button
Oct 25, 2021
9b5367b
MDL-72907 core_repository: Fix enable_plugin function
Nov 8, 2021
70e9143
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/mo…
stronk7 Nov 16, 2021
eab63d2
on-demand release 4.0dev+
stronk7 Nov 16, 2021
be11216
MDL-72826 reportbuilder: per-report option to show only unique rows.
paulholden Nov 12, 2021
8f65f24
Merge branch 'MDL-72907-master' of https://github.com/sarjona/moodle
rezaies Nov 16, 2021
dfe03b3
Merge branch 'MDL-72250-master-3' of https://github.com/bmbrands/moodle
rezaies Nov 16, 2021
982d1bb
MDL-69496 quiz: Only validate completion if unlocked
1JackBlack1 Nov 11, 2021
347878b
Automatically generated installer lang files
Nov 17, 2021
c1e639c
MDL-71882 grunt: Replace module names
andrewnicols Jun 9, 2021
738d4ca
Merge branch 'MDL-70801-new' of https://github.com/Chocolate-lightnin…
andrewnicols Nov 17, 2021
cffd19b
Merge branch 'MDL-69496_Master' of https://github.com/1JackBlack1/moodle
ilyatregubov Nov 17, 2021
24bfcd9
MDL-72799 navigation: Improvements to navigation styling
Chocolate-lightning Oct 21, 2021
cb6f1d3
Merge branch 'MDL-72799' of https://github.com/Chocolate-lightning/mo…
rezaies Nov 17, 2021
b238091
Merge branch 'MDL-71699' of https://github.com/mkassaei/moodle
sarjona Nov 17, 2021
423e5a5
MDL-72816 navigation: Make sure a primary node is active
Oct 26, 2021
a7a5f66
MDL-72816 navigation: Make sure a secondary node is active
Oct 27, 2021
f6a1525
Merge branch 'MDL-72925_master_v2' of https://github.com/TomoTsuyuki/…
junpataleta Nov 17, 2021
557b56e
Merge branch 'MDL-72816-master-nov17' of https://github.com/peterRd/m…
ilyatregubov Nov 17, 2021
f435f31
MDL-69092 mod_lti: Add pagination to toolconfigure.php.
andrewmadden Sep 12, 2021
1c78187
MDL-69092 pagination: Add first/last config for paging_content_factory
andrewmadden Nov 15, 2021
aff86af
MDL-72250 core_course: behat fix for targeting close button
Nov 17, 2021
80dd297
MDL-73090 reportbuilder: confirmation before resetting conditions.
paulholden Nov 16, 2021
4c0ae3e
MDL-73098 install: Detect stale bootstrap.php files and disable them
stronk7 Nov 17, 2021
a5d38be
Automatically generated installer lang files
Nov 18, 2021
646a089
MDL-70801 block_myoverview: Correct the user for course searching in …
Chocolate-lightning Nov 16, 2021
46e4130
MDL-73067 block_calendar_month: remove event key filter
lameze Nov 16, 2021
f64e4ec
Merge branch 'MDL-70801-new' of https://github.com/Chocolate-lightnin…
andrewnicols Nov 18, 2021
83c69cd
Merge branch 'MDL-73090' of https://github.com/paulholden/moodle
andrewnicols Nov 18, 2021
12ded63
MDL-72934 core_navigation: Early return if no nodes to be rendered.
Nov 18, 2021
66bcaa6
MDL-72887 search: Tooltip added to navbar search icon.
michael-milette Oct 21, 2021
cb4e37c
MDL-73095 core_ddl: Fix binary type field check
TomoTsuyuki Nov 18, 2021
39cae56
Merge branch 'MDL-69092-master_lti_pagination' of https://github.com/…
ilyatregubov Nov 18, 2021
4f76d40
Merge branch 'MDL-72887-master' of https://github.com/michael-milette…
rezaies Nov 18, 2021
dc0e7a4
Merge branch 'MDL-70721-master' of git://github.com/rezaies/moodle
sarjona Nov 18, 2021
1bdb9ca
Merge branch 'MDL-72470-master' of https://github.com/sharidas/moodle
stronk7 Nov 18, 2021
628de2b
MDL-69092 mod_lti: SQL fix for cross-db
stronk7 Nov 18, 2021
2db434e
Merge branch 'MDL-71882-master' of https://github.com/andrewnicols/mo…
stronk7 Nov 18, 2021
243eb25
Automatically generated installer lang files
Nov 19, 2021
357ddca
Merge branch 'MDL-72826' of git://github.com/paulholden/moodle
junpataleta Nov 19, 2021
a46aa00
Merge branch 'MDL-73098' of https://github.com/stronk7/moodle
rezaies Nov 19, 2021
e14bb0b
Merge branch 'MDL-69092' of https://github.com/stronk7/moodle
ilyatregubov Nov 19, 2021
36f3aee
MDL-69092 mod_lti: Add js_pending to help behat tests
andrewmadden Nov 19, 2021
47c9289
MDL-69092 mod_lti: Fix typo.
ilyatregubov Nov 19, 2021
57a2188
Merge branch 'MDL-69092-patched' of https://github.com/ilyatregubov/m…
stronk7 Nov 19, 2021
b62095f
MDL-72799 behat: Increase allowed size for privacy exports
stronk7 Nov 19, 2021
fe80a2b
Merge branch 'MDL-72799' of https://github.com/stronk7/moodle
sarjona Nov 19, 2021
dc5a834
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/mo…
stronk7 Nov 19, 2021
7013bda
on-demand release 4.0dev+
stronk7 Nov 19, 2021
0805e38
MDL-72076 bulk actions ui: Implement bulk actions in qbank API
safatshahin Sep 26, 2021
a44d41b
MDL-72927 core: Make Remember username checkbox look like a checkbox
junpataleta Nov 22, 2021
675f8e2
MDL-72776 theme_boost: new editing progress effect
ferranrecio Nov 3, 2021
f4bf4dc
MDL-73112 reportbuilder: improve handling of concatenated columns.
paulholden Nov 18, 2021
881dcca
MDL-73069 reportbuilder: filter/condition for selecting user.
paulholden Nov 12, 2021
6d1a7a8
MDL-73129 reportbuilder: Remove string with trailing whitespace
dravek Nov 22, 2021
a0407f6
MDL-73128 badges: Fix warning with external badges
sarjona Nov 19, 2021
89ab2b1
Merge branch 'master_MDL-72076-bulkactionsui-121' of https://github.c…
sarjona Nov 22, 2021
0dd508d
Merge branch 'MDL-73095_master_v3' of https://github.com/TomoTsuyuki/…
stronk7 Nov 22, 2021
5cdaaa4
Merge branch 'MDL-72967-master' of https://github.com/lameze/moodle
ilyatregubov Nov 22, 2021
d122f73
Merge branch 'MDL-73112' of https://github.com/paulholden/moodle
sarjona Nov 22, 2021
e379b1d
Merge branch 'MDL-73128-master' of https://github.com/sarjona/moodle
stronk7 Nov 22, 2021
a7571e9
Merge branch 'MDL-73067-master' of https://github.com/lameze/moodle
stronk7 Nov 22, 2021
9773051
Merge branch 'MDL-72927-master' of https://github.com/junpataleta/moodle
sarjona Nov 22, 2021
4c1ccf5
Merge branch 'MDL-72934-master' of https://github.com/peterRd/moodle
sarjona Nov 22, 2021
be78cb0
Merge branch 'MDL-73129-master' of https://github.com/dravek/moodle
sarjona Nov 22, 2021
eab5f3c
Merge branch 'MDL-73069' of https://github.com/paulholden/moodle
andrewnicols Nov 23, 2021
46e6502
Merge branch 'MDL-72776-master' of https://github.com/ferranrecio/moodle
rezaies Nov 23, 2021
16a5169
on-demand release 4.0dev+
ilyatregubov Nov 23, 2021
ec42a56
MDL-72188 quizaccess_seb: Implement Safe Exam Browser JS API.
andrewmadden Nov 8, 2021
655d22d
MDL-72188 quizaccess_seb: Auto redirect should only happen from where…
andrewmadden Jan 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .grunt/babel-plugin-add-module-to-define.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,22 @@ module.exports = ({template, types}) => {
if (!this.seenDefine && path.get('callee').isIdentifier({name: 'define'})) {
// We only want to modify the first instance of define that we find.
this.seenDefine = true;

// Get the Moodle component for the file being processed.
var moduleName = getModuleNameFromFileName(this.file.opts.filename);

// The function signature of `define()` is:
// define = function (name, deps, callback) {...}
// Ensure that if the moduel supplied its own name that it is replaced.
if (path.node.arguments.length > 0) {
// Ensure that there is only one name.
if (path.node.arguments[0].type === 'StringLiteral') {
// eslint-disable-next-line
console.log(`Replacing module name '${path.node.arguments[0].extra.rawValue}' with ${moduleName}`);
path.node.arguments.shift();
}
}

// Add the module name as the first argument to the define function.
path.node.arguments.unshift(types.stringLiteral(moduleName));
// Add a space after the define function in the built file so that previous versions
Expand Down
5 changes: 2 additions & 3 deletions admin/purgecaches.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@
if ($data = $form->get_data()) {

// Valid request. Purge, and redirect the user back to where they came from.
$selected = $data->purgeselectedoptions;
purge_caches($selected);

if (isset($data->all)) {
purge_caches();
$message = get_string('purgecachesfinished', 'admin');
} else {
purge_caches($data->purgeselectedoptions);
$message = get_string('purgeselectedcachesfinished', 'admin');
}

Expand Down
8 changes: 6 additions & 2 deletions admin/repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ function repository_action_url($repository) {
$success = true;
if (!$repoid = $type->create()) {
$success = false;
} else {
add_to_config_log('repository_visibility', '', (int)$visible, $plugin);
}
$data = data_submitted();
}
Expand Down Expand Up @@ -184,14 +186,14 @@ function repository_action_url($repository) {
print_error('confirmsesskeybad', '', $baseurl);
}
$class = \core_plugin_manager::resolve_plugininfo_class('repository');
$class::enable_plugin($repository, true);
$class::enable_plugin($repository, 1);
$return = true;
} else if ($action == 'hide') {
if (!confirm_sesskey()) {
print_error('confirmsesskeybad', '', $baseurl);
}
$class = \core_plugin_manager::resolve_plugininfo_class('repository');
$class::enable_plugin($repository, false);
$class::enable_plugin($repository, 0);
$return = true;
} else if ($action == 'delete') {
$repositorytype = repository::get_type_by_typename($repository);
Expand All @@ -202,6 +204,8 @@ function repository_action_url($repository) {
}

if ($repositorytype->delete($downloadcontents)) {
// Include this information into config changes table.
add_to_config_log('repository_visibility', $repositorytype->get_visible(), '', $repository);
core_plugin_manager::reset_caches();
redirect($baseurl);
} else {
Expand Down
1 change: 0 additions & 1 deletion admin/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
}

$PAGE->has_secondary_navigation_setter(false);
$PAGE->set_primary_active_tab('siteadminnode');

// and finally, if we get here, then there are matching settings and we have to print a form
// to modify them
Expand Down
2 changes: 1 addition & 1 deletion admin/templates/setting_configcolourpicker.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
</div>
<input type="text" name="{{name}}" id="{{id}}" value="{{value}}" size="12" class="form-control text-ltr" {{#readonly}}disabled{{/readonly}}>
{{#haspreviewconfig}}
<input type="button" id="{{id}}_preview" value={{#quote}}{{#str}}preview{{/str}}{{/quote}} class="admin_colourpicker_preview">
<input type="button" id="{{id}}_preview" value="{{#cleanstr}}preview{{/cleanstr}}" class="admin_colourpicker_preview">
{{/haspreviewconfig}}
</div>
8 changes: 4 additions & 4 deletions admin/tool/behat/tests/behat/i_am_on_page.feature
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ Feature: Use core page resolvers for the I am on the page steps
Then I should see "<shouldsee>"

Examples:
| description | identifier | shouldsee |
| Admin page | "Admin notifications" | Check for available updates |
| Home page | Homepage | Course overview |
| description | identifier | shouldsee |
| Admin page | "Admin notifications" | Check for available updates |
| Home page | Homepage | Calendar |

Scenario Outline: When I am on a named page logged in as
When I am on the <identifier> page logged in as admin
Expand All @@ -82,4 +82,4 @@ Feature: Use core page resolvers for the I am on the page steps
Examples:
| description | identifier | shouldsee |
| Admin page | "Admin notifications" | Check for available updates |
| Home page | Homepage | Course overview |
| Home page | Homepage | Calendar |
6 changes: 3 additions & 3 deletions admin/tool/dataprivacy/tests/behat/dataexport.feature
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Feature: Data export from the privacy API
And I reload the page
And I should see "Download ready" in the "Victim User 1" "table_row"
And I open the action menu in "Victim User 1" "table_row"
And following "Download" should download between "1" and "146000" bytes
And following "Download" should download between "1" and "150000" bytes
And the following config values are set as admin:
| privacyrequestexpiry | 1 | tool_dataprivacy |
And I wait "1" seconds
Expand Down Expand Up @@ -89,7 +89,7 @@ Feature: Data export from the privacy API
And I reload the page
And I should see "Download ready" in the "Export all of my personal data" "table_row"
And I open the action menu in "Victim User 1" "table_row"
And following "Download" should download between "1" and "146000" bytes
And following "Download" should download between "1" and "150000" bytes

And the following config values are set as admin:
| privacyrequestexpiry | 1 | tool_dataprivacy |
Expand Down Expand Up @@ -126,7 +126,7 @@ Feature: Data export from the privacy API
And I reload the page
And I should see "Download ready" in the "Victim User 1" "table_row"
And I open the action menu in "Victim User 1" "table_row"
And following "Download" should download between "1" and "146000" bytes
And following "Download" should download between "1" and "150000" bytes

And the following config values are set as admin:
| privacyrequestexpiry | 1 | tool_dataprivacy |
Expand Down
4 changes: 2 additions & 2 deletions admin/tool/policy/templates/page_agreedocs.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@
{{# str }}somefieldsrequired, form, <i class="icon fa fa-exclamation-circle text-danger fa-fw" title="{{# str }} required {{/ str }}" ></i>{{/ str }}
<hr>

<input type="submit" class="btn btn-primary" name="submit" value={{#quote}}{{#str}} next {{/str}}{{/quote}}>
<input type="submit" class="btn btn-primary" name="submit" value="{{#cleanstr}} next {{/cleanstr}}">
{{#cancancel}}
<input type="submit" class="btn btn-secondary" name="cancel" value={{#quote}}{{#str}} cancel {{/str}}{{/quote}}>
<input type="submit" class="btn btn-secondary" name="cancel" value="{{#cleanstr}} cancel {{/cleanstr}}">
{{/cancancel}}
</form>

Expand Down
10 changes: 5 additions & 5 deletions admin/tool/policy/tests/behat/acceptances.feature
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Feature: Viewing acceptances reports and accepting on behalf of other users
And I press "Next"
And I set the field "I agree to the This site policy" to "1"
And I press "Next"
And I should see "Course overview"
And I should see "Calendar"
And I log out
And I log in as "manager"
And I press "Next"
Expand Down Expand Up @@ -82,7 +82,7 @@ Feature: Viewing acceptances reports and accepting on behalf of other users
And I press "Next"
And I set the field "I agree to the This site policy" to "1"
And I press "Next"
And I should see "Course overview"
And I should see "Calendar"
And I navigate to "Users > Privacy and policies > Manage policies" in site administration
And I click on "1 of 4 (25%)" "link" in the "This site policy" "table_row"
And I click on "Accept This site policy" "link" in the "User One" "table_row"
Expand Down Expand Up @@ -111,7 +111,7 @@ Feature: Viewing acceptances reports and accepting on behalf of other users
And I set the field "I agree to the This site policy" to "1"
And I set the field "I agree to the This privacy policy" to "1"
And I press "Next"
And I should see "Course overview"
And I should see "Calendar"
And I log out
And I log in as "manager"
And I press "Next"
Expand Down Expand Up @@ -300,7 +300,7 @@ Feature: Viewing acceptances reports and accepting on behalf of other users
And I press "Next"
And I set the field "I agree to the This site policy" to "1"
And I press "Next"
And I should see "Course overview"
And I should see "Calendar"
And I log out
And I log in as "admin"
And I navigate to "Users > Privacy and policies > Manage policies" in site administration
Expand All @@ -311,4 +311,4 @@ Feature: Viewing acceptances reports and accepting on behalf of other users
And I press "Continue"
And I log out
When I log in as "user1"
Then I should see "Course overview"
Then I should see "Calendar"
8 changes: 4 additions & 4 deletions admin/tool/usertours/tests/behat/create_tour.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Feature: Add a new user tour
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful |
And I add steps to the "First tour" tour:
| targettype | targetvalue_block | Title | Content |
| Block | Course overview | Course overview | This area shows you what's happening in some of your courses |
| Block | Timeline | Timeline | This is the Timeline. All of your upcoming activities can be found here |
| Block | Calendar | Calendar | This is the Calendar. All of your assignments and due dates can be found here |
And I add steps to the "First tour" tour:
| targettype | targetvalue_selector | Title | Content |
| Selector | .usermenu | User menu | This is your personal user menu. You'll find your personal preferences and your user profile here. |
When I am on homepage
Then I should see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
And I click on "Next" "button" in the "[data-role='flexitour-step']" "css_element"
And I should see "This area shows you what's happening in some of your courses"
And I should see "This is the Timeline. All of your upcoming activities can be found here"
And I should not see "This is the Calendar. All of your assignments and due dates can be found here"
And I click on "Next" "button" in the "[data-role='flexitour-step']" "css_element"
And I should see "This is the Calendar. All of your assignments and due dates can be found here"
Expand Down Expand Up @@ -95,7 +95,7 @@ Feature: Add a new user tour
| Display in middle of page | Welcome | First step of the Tour |
And I add steps to the "Steps tour" tour:
| targettype | targetvalue_block | Title | Content |
| Block | Course overview | Course overview | Second step of the Tour |
| Block | Timeline | Timeline | Second step of the Tour |
| Block | Calendar | Calendar | Third step of the Tour |
When I am on homepage
Then I should see "First step of the Tour"
Expand Down Expand Up @@ -129,7 +129,7 @@ Feature: Add a new user tour
| Display in middle of page | Welcome | First step of the Tour |
And I add steps to the "Steps tour" tour:
| targettype | targetvalue_block | Title | Content |
| Block | Course overview | Course overview | Second step of the Tour |
| Block | Timeline | Timeline | Second step of the Tour |
| Block | Calendar | Calendar | Third step of the Tour |
When I am on homepage
Then I should see "First step of the Tour"
Expand Down
14 changes: 7 additions & 7 deletions admin/tool/usertours/tests/behat/tour_accessibility.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Feature: Apply accessibility to a tour
And I add steps to the tour:
| targettype | targetvalue_selector | Title | Content |
| Selector | .usermenu | User menu | Next page |
| Selector | input,button | Page 2 | Next page |
| Selector | .navbar-brand | Page 2 | Next page |
And I add steps to the tour:
| targettype | Title | Content |
| Display in middle of page | Page 3 | Final page. |
Expand Down Expand Up @@ -66,11 +66,11 @@ Feature: Apply accessibility to a tour
And I am on site homepage
When I click on "Next" "button"
And I click on "Next" "button"
Then "input[aria-describedby^='tour-step-tool_usertours'],button[aria-describedby^='tour-step-tool_usertours']" "css_element" should exist
And "input[tabindex],button[tabindex]" "css_element" should exist
Then ".navbar-brand[aria-describedby^='tour-step-tool_usertours']" "css_element" should exist
And ".navbar-brand[tabindex]" "css_element" should exist
When I click on "Next" "button"
Then "input[aria-describedby^='tour-step-tool_usertours'],button[aria-describedby^='tour-step-tool_usertours']" "css_element" should not exist
And "input[tabindex]:not([tabindex='-1']),button[tabindex]:not([tabindex='-1'])" "css_element" should not exist
Then ".navbar-brand[aria-describedby^='tour-step-tool_usertours']" "css_element" should not exist
And ".navbar-brand[tabindex]:not([tabindex='-1'])" "css_element" should not exist
When I click on "End tour" "button"
Then "input[aria-describedby^='tour-step-tool_usertours'],button[aria-describedby^='tour-step-tool_usertours']" "css_element" should not exist
And "input[tabindex]:not([tabindex='0']),button[tabindex]:not([tabindex='0'])" "css_element" should not exist
Then ".navbar-brand[aria-describedby^='tour-step-tool_usertours']" "css_element" should not exist
And ".navbar-brand[tabindex]:not([tabindex='0'])" "css_element" should not exist
4 changes: 2 additions & 2 deletions admin/tool/usertours/tests/behat/tour_navigation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ Feature: Steps can be navigated within a tour
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful |
And I add steps to the "First tour" tour:
| targettype | targetvalue_block | Title | Content |
| Block | Course overview | Course overview | This area shows you what's happening in some of your courses |
| Block | Timeline | Timeline | This is the Timeline. All of your upcoming activities can be found here |
| Block | Calendar | Calendar | This is the Calendar. All of your assignments and due dates can be found here |
When I am on homepage
Then I should see "Skip tour"
And I should see "Next (1/3)"
And I click on "Next (1/3)" "button" in the "Welcome" "dialogue"
And I should see "Skip tour"
And I click on "Next (2/3)" "button" in the "Course overview" "dialogue"
And I click on "Next (2/3)" "button" in the "Timeline" "dialogue"
And I should see "End tour"

@javascript
Expand Down
3 changes: 2 additions & 1 deletion badges/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public function print_badges_list($badges, $userid, $profile = false, $external

$name = html_writer::tag('span', $bname, array('class' => 'badge-name'));

$image = html_writer::empty_tag('img', ['src' => $imageurl, 'class' => 'badge-image', 'alt' => $badge->imagecaption]);
$imagecaption = $badge->imagecaption ?? '';
$image = html_writer::empty_tag('img', ['src' => $imageurl, 'class' => 'badge-image', 'alt' => $imagecaption]);
if (!empty($badge->dateexpire) && $badge->dateexpire < time()) {
$image .= $this->output->pix_icon('i/expired',
get_string('expireddate', 'badges', userdate($badge->dateexpire)),
Expand Down
4 changes: 0 additions & 4 deletions blocks/calendar_month/block_calendar_month.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ public function get_content() {
$renderer = $this->page->get_renderer('core_calendar');
$this->content->text .= $renderer->render_from_template($template, $data);

if ($this->page->course->id != SITEID) {
$this->content->text .= $renderer->event_filter();
}

$options = [
'showfullcalendarlink' => true
];
Expand Down
Loading