Paul Holden [Fri, 18 Mar 2022 11:32:40 +0000 (11:32 +0000)]
MDL-74110 forms: disable calendar link when date selector disabled.
Sara Arjona [Fri, 18 Mar 2022 15:28:33 +0000 (16:28 +0100)]
on-demand release 4.0beta+
Sara Arjona [Fri, 18 Mar 2022 12:27:04 +0000 (13:27 +0100)]
MDL-74116 behat: Unrelated, add the @skip_interim tag
This commit is UNRELATED to the MDL-74116, but we need the
@skip_interim tag added to a couple of scenarios that are
causing lots of noise and failures @CI infrastructure.
MDL-74265 has been created to deal with this issue.
So we are using MDL-74116 (this extra commit) to add that tag
(sorry for the noise).
Jun Pataleta [Fri, 18 Mar 2022 08:15:19 +0000 (16:15 +0800)]
Merge branch 'MDL-73233-fix' of https://github.com/sarjona/moodle
Sara Arjona [Fri, 18 Mar 2022 06:44:41 +0000 (07:44 +0100)]
MDL-73233 navigation: Breadcrumbs removed from user preferences
In MDL-74087 breadcrumbs were removed from the User preferences page.
This patch re-introduces a piece of code that was removed originally
in MDL-73233 while reviewing all the places where the Dashboard was
displayed by default (to avoid inconsistencies). New item in primary
navigation has been changed to "Home" but we still need the code
re-added to hide breadcrumbs when its content matches the primary
navigation.
Jun Pataleta [Fri, 18 Mar 2022 04:00:23 +0000 (12:00 +0800)]
Merge branch 'MDL-73383-master' of https://github.com/rezaies/moodle
Jun Pataleta [Fri, 18 Mar 2022 03:51:20 +0000 (11:51 +0800)]
Merge branch 'MDL-73793-master' of https://github.com/bmbrands/moodle
Shamim Rezaie [Fri, 18 Mar 2022 00:30:27 +0000 (11:30 +1100)]
Merge branch 'MDL-73593-master' of https://github.com/bmbrands/moodle
Víctor Déniz [Thu, 17 Mar 2022 23:02:24 +0000 (23:02 +0000)]
Merge branch 'MDL-74153-master' of https://github.com/ferranrecio/moodle
Eloy Lafuente (stronk7) [Thu, 17 Mar 2022 21:22:03 +0000 (22:22 +0100)]
Merge branch 'MDL-69078-better-error-message-for-wrong-encoding' of https://github.com/ziegenberg/moodle
Daniel Ziegenberg [Wed, 17 Jun 2020 12:53:44 +0000 (14:53 +0200)]
MDL-69078 questions: check for UTF-8 encoding of the import file
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Eloy Lafuente (stronk7) [Thu, 17 Mar 2022 17:08:25 +0000 (18:08 +0100)]
Merge branch 'MDL-74159-master' of https://github.com/sarjona/moodle
Eloy Lafuente (stronk7) [Thu, 17 Mar 2022 17:06:05 +0000 (18:06 +0100)]
Merge branch 'MDL-74240-master' of https://github.com/bmbrands/moodle
Jun Pataleta [Thu, 17 Mar 2022 16:35:11 +0000 (00:35 +0800)]
Merge branch 'MDL-73233-master' of https://github.com/sarjona/moodle
Sara Arjona [Thu, 17 Mar 2022 16:21:23 +0000 (17:21 +0100)]
Merge branch 'MDL-74080-master' of https://github.com/aanabit/moodle
Sara Arjona [Thu, 17 Mar 2022 15:58:00 +0000 (16:58 +0100)]
Merge branch 'MDL-74076' of https://github.com/paulholden/moodle
Sara Arjona [Thu, 17 Mar 2022 14:48:14 +0000 (15:48 +0100)]
Merge branch 'MDL-74172-master' of https://github.com/bmbrands/moodle
Sara Arjona [Thu, 17 Mar 2022 14:42:34 +0000 (15:42 +0100)]
Merge branch 'MDL-74132' of https://github.com/roland04/moodle
Andrew Nicols [Thu, 17 Mar 2022 14:25:10 +0000 (22:25 +0800)]
Merge branch 'MDL-72991-master-4' of https://github.com/HuongNV13/moodle
Bas Brands [Thu, 17 Mar 2022 12:56:29 +0000 (13:56 +0100)]
MDL-74240 mod_forum: tertiary nav button wrapper
Sara Arjona [Thu, 17 Mar 2022 12:11:47 +0000 (13:11 +0100)]
Merge branch 'MDL-74214' of https://github.com/paulholden/moodle
Jun Pataleta [Thu, 17 Mar 2022 11:47:46 +0000 (19:47 +0800)]
Merge branch 'MDL-74216-master' of https://github.com/mihailges/moodle
Sara Arjona [Thu, 17 Mar 2022 10:33:58 +0000 (11:33 +0100)]
Merge branch 'MDL-73863-master' of https://github.com/mihailges/moodle
Ilya Tregubov [Thu, 17 Mar 2022 09:23:56 +0000 (15:23 +0600)]
Merge branch 'MDL-73999' of https://github.com/paulholden/moodle
Jun Pataleta [Thu, 17 Mar 2022 09:08:47 +0000 (17:08 +0800)]
Merge branch 'MDL-74112-master' of https://github.com/andrewnicols/moodle
Huong Nguyen [Tue, 1 Mar 2022 04:11:57 +0000 (11:11 +0700)]
MDL-72991 Course: Partial course cache rebuild with cache versioning
Huong Nguyen [Tue, 18 Jan 2022 03:29:42 +0000 (10:29 +0700)]
MDL-72991 Course: Fix move_section_to is not updating correct section
When we change the position of two sections, we just need to update
the position of the affected sections, not all the sections in the course.
This will improve the performance since the system only executes the queries to affected sections.
Also, the system only clears the cache for affected sections, not all the sections in the course.
Huong Nguyen [Mon, 17 Jan 2022 05:05:24 +0000 (12:05 +0700)]
MDL-72991 Course: Create PHPUnit for course_modinfo and move_section_to
Newly PHPUnit tests were created to verify the below methods
- course_modinfo::purge_section_cache_by_id()
- course_modinfo::purge_section_cache_by_number()
- move_section_to()
Huong Nguyen [Thu, 17 Mar 2022 08:07:06 +0000 (15:07 +0700)]
MDL-72991 Course: Modify the courseminfo cacheid to force a rebuild
Co-authored-by: Andrew Lyons <andrew@nicols.co.uk>
Dongsheng Cai [Fri, 16 Jul 2021 03:49:35 +0000 (13:49 +1000)]
MDL-72991 Course: Partial course cache rebuild
When updating/deleting a section/module, the system now only
invalidate of the element (section/module), not the whole course cache
Also, the system now only recalculate the cache for element (section/module)
if necessary, not the whole course cache
Move module/section purging to course_modinfo:
+ course_modinfo::purge_course_section_cache_by_id was created to purge section by id
+ course_modinfo::purge_course_section_cache_by_number was created to purge section by number
+ course_modinfo::purge_course_module_cache was created to purge module
Sara Arjona [Thu, 17 Mar 2022 08:14:58 +0000 (09:14 +0100)]
Merge branch 'MDL-74127-master' of https://github.com/peterRd/moodle
Jun Pataleta [Thu, 17 Mar 2022 07:50:36 +0000 (15:50 +0800)]
Merge branch 'MDL-73597-master' of https://github.com/HuongNV13/moodle
Andrew Nicols [Tue, 8 Mar 2022 03:18:08 +0000 (11:18 +0800)]
MDL-74112 course: Support multiple mforms in format chooser
The format chooser JS assumes that it is the only mform on the page. If
it is not, and another mform appears before it, then the jump will not
work.
This change:
* updates the formatchooser to modern JS
* allows multiple forms to exist on the page
* stops using id fields
* always hide the format selection button
Eloy Lafuente (stronk7) [Wed, 16 Mar 2022 21:18:40 +0000 (22:18 +0100)]
Merge branch 'MDL-74116-master' of https://github.com/andrewnicols/moodle
Eloy Lafuente (stronk7) [Wed, 16 Mar 2022 21:13:57 +0000 (22:13 +0100)]
Merge branch 'MDL-74114-master' of https://github.com/aanabit/moodle
Eloy Lafuente (stronk7) [Wed, 16 Mar 2022 21:03:25 +0000 (22:03 +0100)]
Merge branch 'MDL-74175' of https://github.com/paulholden/moodle
Eloy Lafuente (stronk7) [Wed, 16 Mar 2022 15:45:42 +0000 (16:45 +0100)]
Merge branch 'MDL-74154-fix' of https://github.com/sarjona/moodle
Eloy Lafuente (stronk7) [Wed, 16 Mar 2022 15:36:49 +0000 (16:36 +0100)]
Merge branch 'MDL-74181-fix' of https://github.com/sarjona/moodle
Sara Arjona [Wed, 16 Mar 2022 15:23:18 +0000 (16:23 +0100)]
MDL-74181 user: has_secondary_navigation_setter has been renamed
In MDL-72481, method has_secondary_navigation_setter has been renamed
to set_secondary_navigation.
Víctor Déniz [Wed, 16 Mar 2022 15:12:30 +0000 (15:12 +0000)]
Merge branch 'MDL-73489-master' of https://github.com/HuongNV13/moodle
Sara Arjona [Wed, 16 Mar 2022 15:10:20 +0000 (16:10 +0100)]
MDL-74154 calendar: has_secondary_navigation_setter has been renamed
In MDL-72481, method has_secondary_navigation_setter has been renamed
to set_secondary_navigation.
Andrew Nicols [Tue, 8 Mar 2022 05:56:45 +0000 (13:56 +0800)]
MDL-74116 behat: Fix browser instantiation for Selenium 4
Sara Arjona [Wed, 16 Mar 2022 11:29:07 +0000 (12:29 +0100)]
Merge branch 'MDL-74154-master' of https://github.com/peterRd/moodle
Sara Arjona [Wed, 16 Mar 2022 11:17:08 +0000 (12:17 +0100)]
Merge branch 'MDL-74073-master-2' of https://github.com/junpataleta/moodle
Sara Arjona [Mon, 28 Feb 2022 15:04:25 +0000 (16:04 +0100)]
MDL-73233 course: Remove make_active() call
When accessing to User grades and then to the grades from a
specific course, this call was causing several behat errors
because the dashboard node was not found.
The code causing this issue can be safely removed because it
isn't used (the current node is calculated a few lines below).
Sara Arjona [Fri, 25 Feb 2022 16:10:28 +0000 (17:10 +0100)]
MDL-73233 tool_mobile: Return enabledashboard setting
External function tool_mobile::get_config now returns the
enabledashboard setting.
Sara Arjona [Fri, 25 Feb 2022 15:43:17 +0000 (16:43 +0100)]
MDL-73233 navigation: Remove dashboard when it is disabled
- Only add Dashboard to 'home' the root node if the $CFG->enabledashboard
setting is enabled.
- The "More..." link displayed in the "My courses" section from the
navigation block was pointing to the dashboard. However, now that we have
the "My courses" page, it makes more sense to change it and link to it.
- For the User preferences, I've changed breadcrumbs from "Dashboard" to
"Home" because they are more generic (and don't strictly belong to the
dashboard).
Sara Arjona [Fri, 25 Feb 2022 15:36:28 +0000 (16:36 +0100)]
MDL-73233 shibboleth: Change urltogo only when dashboard is enabled
Sara Arjona [Fri, 25 Feb 2022 15:34:10 +0000 (16:34 +0100)]
MDL-73233 moodlenet: Change cancel link to /
The cancel link when content is imported from MoodleNet has
been changed from /my to /, in order to get it working always,
regardless the $CFG->enabledashboard setting is enabled or not.
Sara Arjona [Fri, 25 Feb 2022 15:30:19 +0000 (16:30 +0100)]
MDL-73233 frontpage: Display link to My courses
Before MDL-70801, the "My courses" page didn't exist so the "More"
button displayed bellow the "Enrolled courses" in frontpage pointed
to Dashboard.
I think this is a leftover from the issue when the "My courses" page
was added and it makes more sense using the "My courses" page here
always.
Sara Arjona [Fri, 25 Feb 2022 15:26:59 +0000 (16:26 +0100)]
MDL-73233 my: Disable /my page depending on setting
When $CFG->enabledashboard will be disabled, the /my page
will redirect to a different page or display an error message.
Sara Arjona [Fri, 25 Feb 2022 15:25:00 +0000 (16:25 +0100)]
MDL-73233 navigation: Hide Dashboard from primary nav
When the $CFG->enabledashboard is disabled, the "Dashboard"
menu option won't be displayed in the primary navigation.
Sara Arjona [Fri, 25 Feb 2022 15:18:45 +0000 (16:18 +0100)]
MDL-73233 user: Review Start page user preferences
The "Start page" user preferences page has been reviewed to
consider the new $CFG->enabledashboard setting.
The "Dashboard" won't be displayed in the list if it's disabled.
Besides, the default value is now calculated calling the new
get_default_home_page() method.
Sara Arjona [Fri, 25 Feb 2022 15:14:04 +0000 (16:14 +0100)]
MDL-73233 admin: Add enabledashboard setting
The $CFG->enabledashboard setting has been added to Appearance >
Navigation, to let admins disable the "Dashboard" option from the
primary navigation.
This commit also changes the behaviour of get_home_page(), to take
into account this setting and adds a new method, get_default_home_page(),
to return the expected default home page (that wil be used when current
default page is not defined or valid).
Mihail Geshoski [Wed, 16 Mar 2022 02:59:52 +0000 (10:59 +0800)]
MDL-74216 navigation: Add behat tests
Mihail Geshoski [Wed, 16 Mar 2022 02:57:50 +0000 (10:57 +0800)]
MDL-74216 navigation: Do not show 'My courses' in primary nav to guests
Ferran Recio [Wed, 16 Mar 2022 10:02:56 +0000 (11:02 +0100)]
MDL-74153 portfolio_download: fix download form
The download form usas autosubmit to start downloading the content. This
breaks the JS modules loading because the page loading is cancelled when
the form is submitted. To prevent this from happen the download form now
has a hidden iframe to execute the download action without affecting the
rest of the page.
Bas Brands [Wed, 16 Mar 2022 09:24:29 +0000 (10:24 +0100)]
MDL-74172 theme_boost: printer friendly drawers layout
Mikel Martín [Wed, 9 Mar 2022 12:58:45 +0000 (13:58 +0100)]
MDL-74132 reportbuilder: Fix horizontal scrolling regression in editor
MDL-73902 caused a regression in reportbuilder editor horizontal scrolling because of the 'no-overflow' class removal
in the table container wrapper. This patch add styles to allow horizontal scroll in reportbuilder editor table.
Huong Nguyen [Tue, 8 Feb 2022 11:01:16 +0000 (18:01 +0700)]
MDL-73597 Questions: Form checker integration for D&D question types
Ilya Tregubov [Wed, 16 Mar 2022 07:57:59 +0000 (13:57 +0600)]
Merge branch 'MDL-74071' of https://github.com/paulholden/moodle
Jun Pataleta [Fri, 4 Mar 2022 15:24:29 +0000 (23:24 +0800)]
MDL-74073 courseformat: Toggle Collapse/Expand all via space key
* Add 'space' keydown event handler on the Collapse/Expand all element
on the course homepage.
* Set aria-expanded attribute of the Expand/Collapse all element
accordingly
Reference:
https://www.w3.org/TR/wai-aria-practices-1.1/#disclosure
Jun Pataleta [Fri, 4 Mar 2022 15:05:15 +0000 (23:05 +0800)]
MDL-74073 theme_boost: Enhanced kb handling for BS Collapse components
* Make sure that Bootstrap Collapse components can also be toggled by
the Space key.
Reference:
https://www.w3.org/TR/wai-aria-practices-1.1/#disclosure
Jun Pataleta [Thu, 3 Mar 2022 06:44:08 +0000 (14:44 +0800)]
MDL-74073 core: Fix collapsesections accessibility
* Fix focus outline
* Set aria-expanded state accordingly
* Set aria-expanded in the template to false by default as the default
mode of the link is to expand all the sections.
Reference:
https://www.w3.org/TR/wai-aria-practices-1.1/#disclosure
Ilya Tregubov [Wed, 16 Mar 2022 04:33:22 +0000 (10:33 +0600)]
Merge branch 'MDL-74144' of https://github.com/paulholden/moodle
Ilya Tregubov [Wed, 16 Mar 2022 04:05:03 +0000 (10:05 +0600)]
Merge branch 'MDL-73344-master' of https://github.com/peterRd/moodle
Jun Pataleta [Wed, 16 Mar 2022 03:45:40 +0000 (11:45 +0800)]
Merge branch 'MDL-72481-master' of https://github.com/rezaies/moodle
Peter Dias [Thu, 10 Mar 2022 06:12:16 +0000 (14:12 +0800)]
MDL-74154 calendar: Disable secondary nav in calendar
Eloy Lafuente (stronk7) [Tue, 15 Mar 2022 22:38:14 +0000 (23:38 +0100)]
Merge branch 'MDL-74141-master' of https://github.com/sarjona/moodle
Eloy Lafuente (stronk7) [Tue, 15 Mar 2022 22:07:47 +0000 (23:07 +0100)]
Merge branch 'MDL-73193' of https://github.com/call-learning/moodle
Laurent David [Thu, 10 Mar 2022 18:21:25 +0000 (19:21 +0100)]
MDL-73193 mod_bigbluebuttonbn: Fix random failures in behat tests
* On selenium chrome this fixes random failure of the "I can delete a recording"
test due to race condition between the popup being closed and the script waiting
for it to be displayed
Sara Arjona [Tue, 15 Mar 2022 16:42:38 +0000 (17:42 +0100)]
Merge branch 'MDL-74180-master' of https://github.com/mihailges/moodle
Víctor Déniz [Tue, 15 Mar 2022 16:14:17 +0000 (16:14 +0000)]
Merge branch 'MDL-74098' of https://github.com/stronk7/moodle
Eloy Lafuente (stronk7) [Tue, 15 Mar 2022 15:46:07 +0000 (16:46 +0100)]
Merge branch 'MDL-74131-master' of https://github.com/aanabit/moodle
Eloy Lafuente (stronk7) [Tue, 15 Mar 2022 15:41:26 +0000 (16:41 +0100)]
Merge branch 'MDL-74181' of https://github.com/paulholden/moodle
Paul Holden [Fri, 11 Mar 2022 11:12:40 +0000 (11:12 +0000)]
MDL-74175 cohort: correct type/callback of entity category column.
Víctor Déniz [Tue, 15 Mar 2022 15:13:48 +0000 (15:13 +0000)]
Merge branch 'MDL-73865-master' of https://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Tue, 15 Mar 2022 14:38:01 +0000 (15:38 +0100)]
Merge branch 'MDL-74156-master' of https://github.com/junpataleta/moodle
Eloy Lafuente (stronk7) [Tue, 15 Mar 2022 14:07:02 +0000 (15:07 +0100)]
Merge branch 'MDL-74100' of https://github.com/paulholden/moodle
Paul Holden [Tue, 15 Mar 2022 13:41:06 +0000 (13:41 +0000)]
MDL-74214 forms: re-calculate calendar panel zIndex each time.
The previous iteration only calculated it's zIndex value on
initial load. This meant that any nodes added subsequent to this
would not be taken into account (e.g. modal forms).
Sara Arjona [Tue, 15 Mar 2022 13:27:55 +0000 (14:27 +0100)]
Merge branch 'MDL-74173-master' of https://github.com/junpataleta/moodle
Sara Arjona [Tue, 15 Mar 2022 11:28:56 +0000 (12:28 +0100)]
Merge branch 'MDL-73979-master' of https://github.com/HuongNV13/moodle
Sara Arjona [Tue, 15 Mar 2022 11:19:10 +0000 (12:19 +0100)]
Merge branch 'MDL-74130' of https://github.com/timhunt/moodle
Sara Arjona [Tue, 15 Mar 2022 10:30:47 +0000 (11:30 +0100)]
on-demand release 4.0beta+
Sara Arjona [Tue, 15 Mar 2022 10:30:42 +0000 (11:30 +0100)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Jun Pataleta [Tue, 15 Mar 2022 09:08:15 +0000 (17:08 +0800)]
MDL-74030 mod_lesson: Access lesson report via page administration step
* So it will consistently pass between Boost and Classic runs.
Huong Nguyen [Tue, 15 Mar 2022 05:22:18 +0000 (12:22 +0700)]
MDL-73489 Quiz: Fix question was added in the wrong place
Huong Nguyen [Tue, 15 Mar 2022 05:19:30 +0000 (12:19 +0700)]
MDL-73489 Quiz: Fix incorrect XPath for custom Behat step
Paul Holden [Mon, 14 Mar 2022 10:55:40 +0000 (10:55 +0000)]
MDL-74194 mod_bigbluebuttonbn: access checks for inplace editables.
Shamim Rezaie [Tue, 15 Mar 2022 03:30:49 +0000 (14:30 +1100)]
MDL-72481 theme_boost: Do not update tabindex of the "more" tab
Shamim Rezaie [Wed, 9 Mar 2022 19:17:44 +0000 (06:17 +1100)]
MDL-72481 core: prevent loosing the tick next to selected dropdown itme
prevent loosing the tick when user clicks on the toggle button
or when they Press Esc to close the dropdown.
Shamim Rezaie [Thu, 24 Feb 2022 13:34:02 +0000 (00:34 +1100)]
MDL-72481 core: Make more menu tabbable when the active tab moves inside
Sujith Haridasan [Tue, 22 Feb 2022 14:07:53 +0000 (01:07 +1100)]
MDL-72481 core: Fix the keyboard navigation in RTL
Also updated e.keyCode to e.key because keyCode is deprecated.
Co-authored-by: Shamim Rezaie <shamim@moodle.com>
Shamim Rezaie [Tue, 22 Feb 2022 06:55:35 +0000 (17:55 +1100)]
MDL-72481 core: only move through visible tabs
Sujith Haridasan [Tue, 22 Feb 2022 04:59:09 +0000 (15:59 +1100)]
MDL-72481 theme_boost: Find the tab if it is inside the more dropdown
keep the selector limited to tablists to prevent infinite redirects
Co-authored-by: Shamim Rezaie <shamim@moodle.com>
Sujith Haridasan [Tue, 22 Feb 2022 15:03:03 +0000 (02:03 +1100)]
MDL-72481 admin: Update behat selector
The more menu can be a tablist or a manubar
Co-authored-by: Shamim Rezaie <shamim@moodle.com>
Jun Pataleta [Fri, 18 Feb 2022 04:55:31 +0000 (15:55 +1100)]
MDL-72481 admin: Render the site admin navigation menu as tablist
only render the secondary nav as tablist if it is for the site admin tabs
Co-authored-by: Shamim Rezaie <shamim@moodle.com>
Jun Pataleta [Thu, 17 Feb 2022 02:50:06 +0000 (13:50 +1100)]
MDL-72481 core: Fix more menu keyboard navigation
* Allow the more menu to be rendered as a tablist when needed.
* Let menu_navigation handle keyboard navigation only when
menu items are not rendered as dropdowns. Otherwise, leave
the keyboard navigation handling via the default handlers
(e.g. dropdown.js/aria.js/tab.js).
* When the more menu is rendered as a tablist, use aria-selected
for the selected tab. When it's rendered as a menu, use aria-current
for the selected menu item. (The menuitem role supports aria-current and
not aria-selected)
* Make sure that the active tab is tabbable by default.
* Submenu items should always have tabindex=-1
* Update behat to use css_element instead of xpath. Also, improved it
to consider that it is the active element that should be tabbable.
Co-authored-by: Shamim Rezaie <shamim@moodle.com>
Shamim Rezaie [Thu, 17 Feb 2022 01:54:06 +0000 (12:54 +1100)]
MDL-73865 blocks_timeline: Increase debounce wait to 1 second
Shamim Rezaie [Thu, 17 Feb 2022 01:53:06 +0000 (12:53 +1100)]
MDL-73865 blocks_myoverview: Increase debounce wait to 1 second