Compare commits

...

4365 Commits

Author SHA1 Message Date
Jun Pataleta db959720ed Moodle release 4.3.8 2024-10-05 14:46:42 +08:00
AMOS bot 7836fde50f Automatically generated installer lang files 2024-10-05 00:07:43 +00:00
Huong Nguyen 2bf0d3b149 weekly release 4.3.7+ 2024-10-04 20:48:15 +07:00
Huong Nguyen a8f220b2b7 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-10-04 20:48:13 +07:00
AMOS bot 65463981dc Automatically generated installer lang files 2024-10-04 00:07:42 +00:00
Michael Hawkins 5bb490e979 MDL-83352 message: Update usercantbemessaged string 2024-10-03 17:47:06 +07:00
Jun Pataleta c7b2b1c439 Merge branch 'MDL-83238-403-enfix' of https://github.com/mudrd8mz/moodle into MOODLE_403_STABLE 2024-10-03 16:02:17 +08:00
David Mudrák d869697f97 MDL-83238 lang: Fix the changed strings in the tests, too 2024-10-02 22:22:44 +02:00
Helen Foster 9ad5f88019 MDL-83238 lang: Import fixed English strings (en_fix) 2024-10-02 22:09:32 +02:00
Shamim Rezaie 90f82cbe86 Merge branch 'MDL-83332-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-10-03 02:24:36 +10:00
Paul Holden e22816a954 MDL-83180 reportbuilder: correct access check for viewing schedules. 2024-10-02 16:49:46 +08:00
meirzamoodle 23f51d88cf MDL-83332 environment: Reverts the slashargument removal on MDL-62640
We are encountering Behat failures on MacOS and possibly Windows.

This reverts commit 3202109780.
2024-10-02 13:32:28 +07:00
Jun Pataleta 6aa12043d1 Merge branch 'm43-md83163' of https://github.com/danmarsden/moodle into MOODLE_403_STABLE 2024-10-02 12:31:27 +08:00
Dan Marsden 772c763e6b MDL-83310 course: remove hard-coded list of course formats from test. 2024-10-02 08:53:11 +13:00
Paul Holden 9f773c160e MDL-83181 reportbuilder: ensure audience correctness before delete. 2024-10-01 12:44:16 +00:00
Paul Holden d3b930d67c MDL-82386 block_rss_client: user access checks for feed edit/delete. 2024-10-01 12:44:16 +00:00
Huong Nguyen 886f5c8465 weekly release 4.3.7+ 2024-10-01 19:33:04 +07:00
Jun Pataleta 0138b520a4 Merge branch 'MDL-83264-403-1' of https://github.com/mihailges/moodle into MOODLE_403_STABLE 2024-10-01 12:47:18 +08:00
Mihail Geshoski f2f64d40c5 MDL-83264 mod_quiz: Return the correct name for top categories 2024-10-01 09:43:28 +08:00
Shamim Rezaie d56e90c1b7 Merge branch 'MDL-81590-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-09-30 23:01:54 +10:00
Huong Nguyen ab291aa8ed weekly release 4.3.7+ 2024-09-27 18:44:11 +07:00
Huong Nguyen a60f0883cc NOBUG: Fixed SVG browser compatibility 2024-09-27 18:44:10 +07:00
Huong Nguyen 34b45fea59 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-09-27 18:44:09 +07:00
Jun Pataleta 5a24beab3c MDL-81590 core: Build the context path without using DIRECTORY_SEPARATOR 2024-09-27 16:46:16 +08:00
Jun Pataleta 7ba0f509c7 Merge branch 'MDL-80929-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-27 12:40:23 +08:00
Huong Nguyen fa5eec299a Merge branch 'MDL-83205-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-09-27 11:27:20 +07:00
Huong Nguyen deb427c38f Merge branch 'MDL-82483-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-27 11:16:08 +07:00
Jun Pataleta caa14d5283 Merge branch 'MDL-82602-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-27 12:10:53 +08:00
Huong Nguyen f5af008e0f Merge branch 'MDL-80974-MOODLE_403_STABLE' of https://github.com/sh-csg/moodle into MOODLE_403_STABLE 2024-09-27 11:09:02 +07:00
Jun Pataleta 22b6d706bd Merge branch 'MDL-82973-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-27 12:06:05 +08:00
Jun Pataleta 1f4bca1a2e Merge branch 'MDL-83163-m403' of https://github.com/sammarshallou/moodle into MOODLE_403_STABLE 2024-09-27 11:59:29 +08:00
Andrew Nicols 4b36a967d0 Merge branch 'MDL-83094-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-27 11:06:14 +08:00
Jun Pataleta 071cc916fd Merge branch 'MDL-81157-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-27 10:28:31 +08:00
Jun Pataleta d2595b4a4e Merge branch 'MDL-82581-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-27 10:10:55 +08:00
AMOS bot 9c811f8a4c Automatically generated installer lang files 2024-09-27 00:07:42 +00:00
Andrew Nicols 8e40b64f8d Merge branch 'MDL-83268-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-09-26 22:07:15 +08:00
Sara Arjona e600fb2782 MDL-83268 core_h5p: Fix version number 2024-09-26 16:02:47 +02:00
Andrew Nicols fd4f256768 Merge branch 'MDL-83268-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-09-26 21:33:24 +08:00
Sara Arjona 57f527587b MDL-83268 core_h5p: Fix required Moodle version 2024-09-26 15:26:26 +02:00
Andrew Nicols 5e95aa4b3a Merge branch 'MDL-83268-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-09-26 21:08:05 +08:00
Jun Pataleta c36c4e8caf Merge branch 'MDL-79288-403_blockaccessreview_colourcontrastcheck' of https://github.com/brickfield/moodle into MOODLE_403_STABLE 2024-09-26 19:45:06 +08:00
Sara Arjona c217ab2947 MDL-83268 core_h5p: Remove unused font files
In https://h5ptechnology.atlassian.net/browse/HFP-4105, the
fonts/h5p-core-29.svg was merged with some conflicts.
Looking at the patch there, it seems all the h5p-core-29* fonts
can be removed because the ones used by the library are the
h5p-core-30-*.

I haven't added a note in the upgrade because it seems an error
on their release process (so I don't think it's worth adding
a note because it should be fixed in future releases).
2024-09-26 10:32:12 +02:00
Sara Arjona a64e2bc235 MDL-83268 core_h5p: Remove the h5plib_v126 plugin
The h5plib_v126 plugin can be removed because it has been replaced
with h5plib_v127, which is using the latest versions of the
libraries.
2024-09-26 10:32:11 +02:00
Sara Arjona d9f2f7006e MDL-83268 core_h5p: Add editor lib changes after upgrading it 2024-09-26 10:32:11 +02:00
Sara Arjona 5481ef00a1 MDL-83268 core_h5p: Upgrade editor lib to 1.27
This commit is upgrading the joubel/editor library to the one
tagged as moodle-1.27.0 (which also increases the coreApi minorVersion).
2024-09-26 10:32:11 +02:00
Sara Arjona 099f65274c MDL-83268 core_h5p: Add core lib changes after upgrading it 2024-09-26 10:32:10 +02:00
Sara Arjona 15eb08acc2 MDL-83268 core_h5p: Upgrade core lib to 1.27
This commit is upgrading the joubel/core library to the one
tagged as moodle-1.27.0 (which also increases the coreApi minorVersion).
That's why the previous commit was duplicating the existing
h5plib_v126.
2024-09-26 10:32:10 +02:00
Sara Arjona b5b838e16b MDL-83268 h5plib: Create first version of h5plib_v127
AMOS BEGIN
  CPY [editor:a11ytitleshowlabel,h5plib_v126],[editor:a11ytitleshowlabel,h5plib_v127]
  CPY [editor:a11ytitlehidelabel,h5plib_v126],[editor:a11ytitlehidelabel,h5plib_v127]
  CPY [editor:atoz,h5plib_v126],[editor:atoz,h5plib_v127]
  CPY [editor:add,h5plib_v126],[editor:add,h5plib_v127]
  CPY [editor:addauthor,h5plib_v126],[editor:addauthor,h5plib_v127]
  CPY [editor:addentity,h5plib_v126],[editor:addentity,h5plib_v127]
  CPY [editor:addfile,h5plib_v126],[editor:addfile,h5plib_v127]
  CPY [editor:addnewchange,h5plib_v126],[editor:addnewchange,h5plib_v127]
  CPY [editor:addtitle,h5plib_v126],[editor:addtitle,h5plib_v127]
  CPY [editor:addvideodescription,h5plib_v126],[editor:addvideodescription,h5plib_v127]
  CPY [editor:avtablistlabel,h5plib_v126],[editor:avtablistlabel,h5plib_v127]
  CPY [editor:belowmin,h5plib_v126],[editor:belowmin,h5plib_v127]
  CPY [editor:cancel,h5plib_v126],[editor:cancel,h5plib_v127]
  CPY [editor:cancellabel,h5plib_v126],[editor:cancellabel,h5plib_v127]
  CPY [editor:changefile,h5plib_v126],[editor:changefile,h5plib_v127]
  CPY [editor:changelanguage,h5plib_v126],[editor:changelanguage,h5plib_v127]
  CPY [editor:changelibrary,h5plib_v126],[editor:changelibrary,h5plib_v127]
  CPY [editor:changelogdescription,h5plib_v126],[editor:changelogdescription,h5plib_v127]
  CPY [editor:close,h5plib_v126],[editor:close,h5plib_v127]
  CPY [editor:commonfields,h5plib_v126],[editor:commonfields,h5plib_v127]
  CPY [editor:commonfieldsdescription,h5plib_v126],[editor:commonfieldsdescription,h5plib_v127]
  CPY [editor:confirmchangelibrary,h5plib_v126],[editor:confirmchangelibrary,h5plib_v127]
  CPY [editor:confirmdeletechangelog,h5plib_v126],[editor:confirmdeletechangelog,h5plib_v127]
  CPY [editor:confirmimageremoval,h5plib_v126],[editor:confirmimageremoval,h5plib_v127]
  CPY [editor:confirmpastebuttontext,h5plib_v126],[editor:confirmpastebuttontext,h5plib_v127]
  CPY [editor:confirmpastecontent,h5plib_v126],[editor:confirmpastecontent,h5plib_v127]
  CPY [editor:confirmremoval,h5plib_v126],[editor:confirmremoval,h5plib_v127]
  CPY [editor:confirmremoveauthor,h5plib_v126],[editor:confirmremoveauthor,h5plib_v127]
  CPY [editor:contenttypebackbuttonlabel,h5plib_v126],[editor:contenttypebackbuttonlabel,h5plib_v127]
  CPY [editor:contenttypecacheoutdated,h5plib_v126],[editor:contenttypecacheoutdated,h5plib_v127]
  CPY [editor:contenttypecacheoutdateddesc,h5plib_v126],[editor:contenttypecacheoutdateddesc,h5plib_v127]
  CPY [editor:contenttypedemobuttonlabel,h5plib_v126],[editor:contenttypedemobuttonlabel,h5plib_v127]
  CPY [editor:contenttypedetailbuttonlabel,h5plib_v126],[editor:contenttypedetailbuttonlabel,h5plib_v127]
  CPY [editor:contenttypegetbuttonlabel,h5plib_v126],[editor:contenttypegetbuttonlabel,h5plib_v127]
  CPY [editor:contenttypeiconalttext,h5plib_v126],[editor:contenttypeiconalttext,h5plib_v127]
  CPY [editor:contenttypeinstallbuttonlabel,h5plib_v126],[editor:contenttypeinstallbuttonlabel,h5plib_v127]
  CPY [editor:contenttypeinstallerror,h5plib_v126],[editor:contenttypeinstallerror,h5plib_v127]
  CPY [editor:contenttypeinstallsuccess,h5plib_v126],[editor:contenttypeinstallsuccess,h5plib_v127]
  CPY [editor:contenttypeinstallingbuttonlabel,h5plib_v126],[editor:contenttypeinstallingbuttonlabel,h5plib_v127]
  CPY [editor:contenttypelicensepaneltitle,h5plib_v126],[editor:contenttypelicensepaneltitle,h5plib_v127]
  CPY [editor:contenttypenotinstalled,h5plib_v126],[editor:contenttypenotinstalled,h5plib_v127]
  CPY [editor:contenttypenotinstalleddesc,h5plib_v126],[editor:contenttypenotinstalleddesc,h5plib_v127]
  CPY [editor:contenttypeowner,h5plib_v126],[editor:contenttypeowner,h5plib_v127]
  CPY [editor:contenttyperestricted,h5plib_v126],[editor:contenttyperestricted,h5plib_v127]
  CPY [editor:contenttyperestricteddesc,h5plib_v126],[editor:contenttyperestricteddesc,h5plib_v127]
  CPY [editor:contenttypesearchfieldplaceholder,h5plib_v126],[editor:contenttypesearchfieldplaceholder,h5plib_v127]
  CPY [editor:contenttypesectionall,h5plib_v126],[editor:contenttypesectionall,h5plib_v127]
  CPY [editor:contenttypeunsupportedapiversioncontent,h5plib_v126],[editor:contenttypeunsupportedapiversioncontent,h5plib_v127]
  CPY [editor:contenttypeunsupportedapiversiontitle,h5plib_v126],[editor:contenttypeunsupportedapiversiontitle,h5plib_v127]
  CPY [editor:contenttypeupdateavailable,h5plib_v126],[editor:contenttypeupdateavailable,h5plib_v127]
  CPY [editor:contenttypeupdatebuttonlabel,h5plib_v126],[editor:contenttypeupdatebuttonlabel,h5plib_v127]
  CPY [editor:contenttypeupdatesuccess,h5plib_v126],[editor:contenttypeupdatesuccess,h5plib_v127]
  CPY [editor:contenttypeupdatingbuttonlabel,h5plib_v126],[editor:contenttypeupdatingbuttonlabel,h5plib_v127]
  CPY [editor:contenttypeusebuttonlabel,h5plib_v126],[editor:contenttypeusebuttonlabel,h5plib_v127]
  CPY [editor:contributetranslations,h5plib_v126],[editor:contributetranslations,h5plib_v127]
  CPY [editor:copiedbutton,h5plib_v126],[editor:copiedbutton,h5plib_v127]
  CPY [editor:copiedtoclipboard,h5plib_v126],[editor:copiedtoclipboard,h5plib_v127]
  CPY [editor:copybutton,h5plib_v126],[editor:copybutton,h5plib_v127]
  CPY [editor:copytoclipboard,h5plib_v126],[editor:copytoclipboard,h5plib_v127]
  CPY [editor:createcontenttablabel,h5plib_v126],[editor:createcontenttablabel,h5plib_v127]
  CPY [editor:currentmenuselected,h5plib_v126],[editor:currentmenuselected,h5plib_v127]
  CPY [editor:editcopyright,h5plib_v126],[editor:editcopyright,h5plib_v127]
  CPY [editor:editimage,h5plib_v126],[editor:editimage,h5plib_v127]
  CPY [editor:editmode,h5plib_v126],[editor:editmode,h5plib_v127]
  CPY [editor:enteraudiotitle,h5plib_v126],[editor:enteraudiotitle,h5plib_v127]
  CPY [editor:enteraudiourl,h5plib_v126],[editor:enteraudiourl,h5plib_v127]
  CPY [editor:enterfullscreenbuttonlabel,h5plib_v126],[editor:enterfullscreenbuttonlabel,h5plib_v127]
  CPY [editor:entervideotitle,h5plib_v126],[editor:entervideotitle,h5plib_v127]
  CPY [editor:entervideourl,h5plib_v126],[editor:entervideourl,h5plib_v127]
  CPY [editor:errorcalculatingmaxscore,h5plib_v126],[editor:errorcalculatingmaxscore,h5plib_v127]
  CPY [editor:errorcommunicatinghubcontent,h5plib_v126],[editor:errorcommunicatinghubcontent,h5plib_v127]
  CPY [editor:errorcommunicatinghubtitle,h5plib_v126],[editor:errorcommunicatinghubtitle,h5plib_v127]
  CPY [editor:errorheader,h5plib_v126],[editor:errorheader,h5plib_v127]
  CPY [editor:errornotsupported,h5plib_v126],[editor:errornotsupported,h5plib_v127]
  CPY [editor:errorparamsbroken,h5plib_v126],[editor:errorparamsbroken,h5plib_v127]
  CPY [editor:errortoohighversion,h5plib_v126],[editor:errortoohighversion,h5plib_v127]
  CPY [editor:example,h5plib_v126],[editor:example,h5plib_v127]
  CPY [editor:exceedsmax,h5plib_v126],[editor:exceedsmax,h5plib_v127]
  CPY [editor:exitfullscreenbuttonlabel,h5plib_v126],[editor:exitfullscreenbuttonlabel,h5plib_v127]
  CPY [editor:expandcollapse,h5plib_v126],[editor:expandcollapse,h5plib_v127]
  CPY [editor:filetolarge,h5plib_v126],[editor:filetolarge,h5plib_v127]
  CPY [editor:fillinthefieldsbelow,h5plib_v126],[editor:fillinthefieldsbelow,h5plib_v127]
  CPY [editor:gethelp,h5plib_v126],[editor:gethelp,h5plib_v127]
  CPY [editor:h5pfileuploadservererrorcontent,h5plib_v126],[editor:h5pfileuploadservererrorcontent,h5plib_v127]
  CPY [editor:h5pfileuploadservererrortitle,h5plib_v126],[editor:h5pfileuploadservererrortitle,h5plib_v127]
  CPY [editor:h5pfilevalidationfailedcontent,h5plib_v126],[editor:h5pfilevalidationfailedcontent,h5plib_v127]
  CPY [editor:h5pfilevalidationfailedtitle,h5plib_v126],[editor:h5pfilevalidationfailedtitle,h5plib_v127]
  CPY [editor:h5pfilewrongextensioncontent,h5plib_v126],[editor:h5pfilewrongextensioncontent,h5plib_v127]
  CPY [editor:h5pfilewrongextensiontitle,h5plib_v126],[editor:h5pfilewrongextensiontitle,h5plib_v127]
  CPY [editor:height,h5plib_v126],[editor:height,h5plib_v127]
  CPY [editor:hide,h5plib_v126],[editor:hide,h5plib_v127]
  CPY [editor:hideimportantinstructions,h5plib_v126],[editor:hideimportantinstructions,h5plib_v127]
  CPY [editor:hubpanellabel,h5plib_v126],[editor:hubpanellabel,h5plib_v127]
  CPY [editor:illegaldecimalnumber,h5plib_v126],[editor:illegaldecimalnumber,h5plib_v127]
  CPY [editor:imagelightboxprogress,h5plib_v126],[editor:imagelightboxprogress,h5plib_v127]
  CPY [editor:imagelightboxtitle,h5plib_v126],[editor:imagelightboxtitle,h5plib_v127]
  CPY [editor:importantinstructions,h5plib_v126],[editor:importantinstructions,h5plib_v127]
  CPY [editor:insert,h5plib_v126],[editor:insert,h5plib_v127]
  CPY [editor:invalidformat,h5plib_v126],[editor:invalidformat,h5plib_v127]
  CPY [editor:language,h5plib_v126],[editor:language,h5plib_v127]
  CPY [editor:librarymissing,h5plib_v126],[editor:librarymissing,h5plib_v127]
  CPY [editor:licensecandistribute,h5plib_v126],[editor:licensecandistribute,h5plib_v127]
  CPY [editor:licensecanholdliable,h5plib_v126],[editor:licensecanholdliable,h5plib_v127]
  CPY [editor:licensecanmodify,h5plib_v126],[editor:licensecanmodify,h5plib_v127]
  CPY [editor:licensecansublicense,h5plib_v126],[editor:licensecansublicense,h5plib_v127]
  CPY [editor:licensecanusecommercially,h5plib_v126],[editor:licensecanusecommercially,h5plib_v127]
  CPY [editor:licensecannotholdliable,h5plib_v126],[editor:licensecannotholdliable,h5plib_v127]
  CPY [editor:licensedescription,h5plib_v126],[editor:licensedescription,h5plib_v127]
  CPY [editor:licensefetchdetailsfailed,h5plib_v126],[editor:licensefetchdetailsfailed,h5plib_v127]
  CPY [editor:licensemodalsubtitle,h5plib_v126],[editor:licensemodalsubtitle,h5plib_v127]
  CPY [editor:licensemodaltitle,h5plib_v126],[editor:licensemodaltitle,h5plib_v127]
  CPY [editor:licensemustincludecopyright,h5plib_v126],[editor:licensemustincludecopyright,h5plib_v127]
  CPY [editor:licensemustincludelicense,h5plib_v126],[editor:licensemustincludelicense,h5plib_v127]
  CPY [editor:licenseunspecified,h5plib_v126],[editor:licenseunspecified,h5plib_v127]
  CPY [editor:listbelowmin,h5plib_v126],[editor:listbelowmin,h5plib_v127]
  CPY [editor:listexceedsmax,h5plib_v126],[editor:listexceedsmax,h5plib_v127]
  CPY [editor:listlabel,h5plib_v126],[editor:listlabel,h5plib_v127]
  CPY [editor:loading,h5plib_v126],[editor:loading,h5plib_v127]
  CPY [editor:loadingimageeditor,h5plib_v126],[editor:loadingimageeditor,h5plib_v127]
  CPY [editor:logthischange,h5plib_v126],[editor:logthischange,h5plib_v127]
  CPY [editor:loggedchanges,h5plib_v126],[editor:loggedchanges,h5plib_v127]
  CPY [editor:maxscoresemanticsmissing,h5plib_v126],[editor:maxscoresemanticsmissing,h5plib_v127]
  CPY [editor:metadata,h5plib_v126],[editor:metadata,h5plib_v127]
  CPY [editor:metadatasharingandlicensinginfo,h5plib_v126],[editor:metadatasharingandlicensinginfo,h5plib_v127]
  CPY [editor:missingproperty,h5plib_v126],[editor:missingproperty,h5plib_v127]
  CPY [editor:missingtranslation,h5plib_v126],[editor:missingtranslation,h5plib_v127]
  CPY [editor:newchangehasbeenlogged,h5plib_v126],[editor:newchangehasbeenlogged,h5plib_v127]
  CPY [editor:newestfirst,h5plib_v126],[editor:newestfirst,h5plib_v127]
  CPY [editor:nextimage,h5plib_v126],[editor:nextimage,h5plib_v127]
  CPY [editor:nochangeshavebeenlogged,h5plib_v126],[editor:nochangeshavebeenlogged,h5plib_v127]
  CPY [editor:nocontenttypesavailable,h5plib_v126],[editor:nocontenttypesavailable,h5plib_v127]
  CPY [editor:nocontenttypesavailabledesc,h5plib_v126],[editor:nocontenttypesavailabledesc,h5plib_v127]
  CPY [editor:nofollow,h5plib_v126],[editor:nofollow,h5plib_v127]
  CPY [editor:notimageordimensionsfield,h5plib_v126],[editor:notimageordimensionsfield,h5plib_v127]
  CPY [editor:numresults,h5plib_v126],[editor:numresults,h5plib_v127]
  CPY [editor:numberfield,h5plib_v126],[editor:numberfield,h5plib_v127]
  CPY [editor:ok,h5plib_v126],[editor:ok,h5plib_v127]
  CPY [editor:onlynumbers,h5plib_v126],[editor:onlynumbers,h5plib_v127]
  CPY [editor:or,h5plib_v126],[editor:or,h5plib_v127]
  CPY [editor:orderitemdown,h5plib_v126],[editor:orderitemdown,h5plib_v127]
  CPY [editor:orderitemup,h5plib_v126],[editor:orderitemup,h5plib_v127]
  CPY [editor:outofstep,h5plib_v126],[editor:outofstep,h5plib_v127]
  CPY [editor:pasteandreplacebutton,h5plib_v126],[editor:pasteandreplacebutton,h5plib_v127]
  CPY [editor:pasteandreplacefromclipboard,h5plib_v126],[editor:pasteandreplacefromclipboard,h5plib_v127]
  CPY [editor:pastebutton,h5plib_v126],[editor:pastebutton,h5plib_v127]
  CPY [editor:pastecontent,h5plib_v126],[editor:pastecontent,h5plib_v127]
  CPY [editor:pastecontentnotsupported,h5plib_v126],[editor:pastecontentnotsupported,h5plib_v127]
  CPY [editor:pastecontentrestricted,h5plib_v126],[editor:pastecontentrestricted,h5plib_v127]
  CPY [editor:pasteerror,h5plib_v126],[editor:pasteerror,h5plib_v127]
  CPY [editor:pastefromclipboard,h5plib_v126],[editor:pastefromclipboard,h5plib_v127]
  CPY [editor:pastenocontent,h5plib_v126],[editor:pastenocontent,h5plib_v127]
  CPY [editor:pastetoonew,h5plib_v126],[editor:pastetoonew,h5plib_v127]
  CPY [editor:pastetooold,h5plib_v126],[editor:pastetooold,h5plib_v127]
  CPY [editor:popularfirst,h5plib_v126],[editor:popularfirst,h5plib_v127]
  CPY [editor:previousimage,h5plib_v126],[editor:previousimage,h5plib_v127]
  CPY [editor:proceedbuttonlabel,h5plib_v126],[editor:proceedbuttonlabel,h5plib_v127]
  CPY [editor:readless,h5plib_v126],[editor:readless,h5plib_v127]
  CPY [editor:readmore,h5plib_v126],[editor:readmore,h5plib_v127]
  CPY [editor:recentlyusedfirst,h5plib_v126],[editor:recentlyusedfirst,h5plib_v127]
  CPY [editor:reloadbuttonlabel,h5plib_v126],[editor:reloadbuttonlabel,h5plib_v127]
  CPY [editor:removefile,h5plib_v126],[editor:removefile,h5plib_v127]
  CPY [editor:removeimage,h5plib_v126],[editor:removeimage,h5plib_v127]
  CPY [editor:removeitem,h5plib_v126],[editor:removeitem,h5plib_v127]
  CPY [editor:requiredproperty,h5plib_v126],[editor:requiredproperty,h5plib_v127]
  CPY [editor:resettooriginallabel,h5plib_v126],[editor:resettooriginallabel,h5plib_v127]
  CPY [editor:savelabel,h5plib_v126],[editor:savelabel,h5plib_v127]
  CPY [editor:savemetadata,h5plib_v126],[editor:savemetadata,h5plib_v127]
  CPY [editor:screenshots,h5plib_v126],[editor:screenshots,h5plib_v127]
  CPY [editor:scriptmissing,h5plib_v126],[editor:scriptmissing,h5plib_v127]
  CPY [editor:searchresults,h5plib_v126],[editor:searchresults,h5plib_v127]
  CPY [editor:selectfiletoupload,h5plib_v126],[editor:selectfiletoupload,h5plib_v127]
  CPY [editor:selectlibrary,h5plib_v126],[editor:selectlibrary,h5plib_v127]
  CPY [editor:semanticserror,h5plib_v126],[editor:semanticserror,h5plib_v127]
  CPY [editor:show,h5plib_v126],[editor:show,h5plib_v127]
  CPY [editor:showimportantinstructions,h5plib_v126],[editor:showimportantinstructions,h5plib_v127]
  CPY [editor:tabtitlebasicfileupload,h5plib_v126],[editor:tabtitlebasicfileupload,h5plib_v127]
  CPY [editor:tabtitleinputlinkurl,h5plib_v126],[editor:tabtitleinputlinkurl,h5plib_v127]
  CPY [editor:textfield,h5plib_v126],[editor:textfield,h5plib_v127]
  CPY [editor:thecontenttype,h5plib_v126],[editor:thecontenttype,h5plib_v127]
  CPY [editor:thiswillpotentially,h5plib_v126],[editor:thiswillpotentially,h5plib_v127]
  CPY [editor:title,h5plib_v126],[editAMOS END
  or:title,h5plib_v127]
  CPY [editor:toolong,h5plib_v126],[editor:toolong,h5plib_v127]
  CPY [editor:tryagain,h5plib_v126],[editor:tryagain,h5plib_v127]
  CPY [editor:tutorial,h5plib_v126],[editor:tutorial,h5plib_v127]
  CPY [editor:unabletointerpreterror,h5plib_v126],[editor:unabletointerpreterror,h5plib_v127]
  CPY [editor:unabletointerpretsolution,h5plib_v126],[editor:unabletointerpretsolution,h5plib_v127]
  CPY [editor:unknownfieldpath,h5plib_v126],[editor:unknownfieldpath,h5plib_v127]
  CPY [editor:uploadinstructionstitle,h5plib_v126],[editor:uploadinstructionstitle,h5plib_v127]
  CPY [editor:uploadplaceholder,h5plib_v126],[editor:uploadplaceholder,h5plib_v127]
  CPY [editor:uploadsuccess,h5plib_v126],[editor:uploadsuccess,h5plib_v127]
  CPY [editor:uploadtablabel,h5plib_v126],[editor:uploadtablabel,h5plib_v127]
  CPY [editor:uploadvideotitle,h5plib_v126],[editor:uploadvideotitle,h5plib_v127]
  CPY [editor:uploading,h5plib_v126],[editor:uploading,h5plib_v127]
  CPY [editor:uploadingthrobber,h5plib_v126],[editor:uploadingthrobber,h5plib_v127]
  CPY [editor:usedforsearchingreportsandcopyrightinformation,h5plib_v126],[editor:usedforsearchingreportsandcopyrightinformation,h5plib_v127]
  CPY [editor:videoquality,h5plib_v126],[editor:videoquality,h5plib_v127]
  CPY [editor:videoqualitydefaultlabel,h5plib_v126],[editor:videoqualitydefaultlabel,h5plib_v127]
  CPY [editor:videoqualitydescription,h5plib_v126],[editor:videoqualitydescription,h5plib_v127]
  CPY [editor:warningchangebrowsingtoseeresults,h5plib_v126],[editor:warningchangebrowsingtoseeresults,h5plib_v127]
  CPY [editor:warningnocontenttypesinstalled,h5plib_v126],[editor:warningnocontenttypesinstalled,h5plib_v127]
  CPY [editor:warningupdateavailablebody,h5plib_v126],[editor:warningupdateavailablebody,h5plib_v127]
  CPY [editor:warningupdateavailabletitle,h5plib_v126],[editor:warningupdateavailabletitle,h5plib_v127]
  CPY [editor:width,h5plib_v126],[editor:width,h5plib_v127]
AMOS END
2024-09-26 10:32:10 +02:00
Jun Pataleta 31537778b9 Merge branch 'MDL-83263-403' of https://github.com/mihailges/moodle into MOODLE_403_STABLE 2024-09-26 16:28:52 +08:00
Michael Pound 78912de2ab MDL-79288 block_accessreview: Improve heatmap colour contrast. 2024-09-26 08:13:44 +00:00
Huong Nguyen 415195088b Merge branch 'MDL-62640-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-09-26 11:07:35 +07:00
Cameron Ball c90226fc23 MDL-82298 navigation: Update behat tests for theme_classic 2024-09-26 11:15:06 +08:00
Jun Pataleta 372318257c Merge branch 'MDL-83235-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-26 09:25:46 +08:00
Andrew Nicols 8c6c3f0d06 Merge branch 'MDL-82298-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-09-25 22:56:01 +08:00
Andrew Nicols 7a91817a1c MDL-82298 navigation: Update behat tests 2024-09-25 22:38:32 +08:00
Karjun Loong a4290bec3f MDL-82298 navigation: Add behat tests for secondary menu navigation 2024-09-25 22:38:32 +08:00
Jose 1dcf079286 MDL-82298 navigation: Add setting data-disableactive on moremenu items
This setting will avoid conflicts between checkmark and
bfcache. The removed function added as part of the MDL-77732
is no longer required as the behaviour on the menu items (including the
secondary navigation) is not altered anymore by the menuItemHelper function
(menu_navigation file).
2024-09-25 22:38:31 +08:00
Mihail Geshoski fcbe432066 MDL-83263 grade: Handle undefined array key on grade override revert 2024-09-25 17:27:23 +08:00
Huong Nguyen b7852c7225 Merge branch 'MDL-72856-M403' of https://github.com/michael-milette/moodle into MOODLE_403_STABLE 2024-09-25 08:58:34 +07:00
Sara Arjona 4e7e308a77 weekly release 4.3.7+ 2024-09-24 16:52:12 +02:00
Shamim Rezaie a686489653 Merge branch 'MDL-77625_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-09-24 02:54:13 +10:00
Paul Holden 1179e1f534 MDL-83235 qbank_columnsortorder: correct config retrieval ordering.
There is a unique index on plugin/name, so having a trailing order
clause on value would produce no effect. We also cannot order by
CLOB fields on Oracle, lest it complain loudly.
2024-09-23 08:56:45 +01:00
meirzamoodle ee66d8f2bf MDL-62640 environment: Remove the deprecated slash argument check 2024-09-23 13:06:05 +07:00
Sara Arjona 818863cccd Merge branch 'MDL-81612_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-09-23 07:36:26 +02:00
Paul Holden 1a6d6694a2 MDL-82581 mod_label: avoid overflowing length of label name. 2024-09-20 19:26:53 +01:00
Sara Arjona da802580da weekly release 4.3.7+ 2024-09-20 16:36:12 +02:00
Sara Arjona 534f220f21 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-09-20 16:36:07 +02:00
Ilya Tregubov d2e842f7b3 Merge branch 'MDL-82663-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-20 10:17:44 +08:00
Huong Nguyen 4eb7c5a590 Merge branch 'MDL-82740-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-09-20 08:44:34 +07:00
Ilya Tregubov 3b6f8e334f Merge branch 'MDL-74188-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-20 09:39:55 +08:00
Ilya Tregubov 5ba84639dd Merge branch 'MDL-82488-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-20 09:25:33 +08:00
Tim Hunt 7cc4823684 MDL-81612 assign: show current value when editing a student's extension
Also, if there is not currently an extension set, the set extension form
will default to whatever is the latest out of the due date, the cut-off date
and midnight tonight (in the server time-zone).
2024-09-19 16:06:21 +01:00
Tim Hunt 476ae75b70 MDL-81612 assign: test generation of extensions
Also, some other improvements.

* In Behat you can now use either idnumber of name to identify an
  assignment you are generating things for.
* create_submission generator methods now wants the cmid in $data['cmid']
  not the confusingly named 'assignid'. The old name is accepted, but
  generates a debugging warning. (That will fail the test, but in a way
  that explains how to fix it.)
2024-09-19 16:06:20 +01:00
Sara Arjona 2528a52808 Merge branch 'MDL-83050-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-09-19 17:06:11 +02:00
Jun Pataleta 197aac357e MDL-82740 core: Check for monologo icons in theme overrides 2024-09-19 20:49:43 +08:00
Laurent David 26babd2ac0 MDL-83050 core_courseformat: Fix index highlight for collapsed section
* Collapsed sections on course index is not highlighting the correct
element when scrolling over subelements.
2024-09-19 12:01:17 +02:00
Ilya Tregubov e494cab5b9 Merge branch 'MDL-82909-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-19 15:08:51 +08:00
Ilya Tregubov 298a87baf3 Merge branch 'MDL-82494-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-19 14:05:50 +08:00
Andrew Nicols fd18519ea6 MDL-83205 core: Ensure that redis lock expiry is valid
PHP allows the specification of invalid values for `max_execution_time`,
including negative values. These should be normalised the same way that
an empty (unlimited) value is.
2024-09-19 13:37:02 +08:00
Ilya Tregubov 6f3c6fc5eb Merge branch 'MDL-81987_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2024-09-19 12:50:57 +08:00
Jun Pataleta cf1e58654c MDL-79628 core: Add upgrade notes for the navigation_cache changes 2024-09-19 11:08:48 +08:00
Jun Pataleta f2773ec1cc Merge branch 'MDL-79628-move-navcache-to-muc-feature-MOODLE_403_STABLE' of https://github.com/rajandangi/moodle into MOODLE_403_STABLE 2024-09-19 11:07:36 +08:00
Jun Pataleta 04cf9b4e06 Merge branch 'MDL-80965-403-behat-fix' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-09-19 08:41:50 +08:00
AMOS bot 895acd4aa1 Automatically generated installer lang files 2024-09-19 00:09:29 +00:00
Simey Lameze 1f45291f24 MDL-80965 behat: remove wrong tag from step 2024-09-19 07:49:29 +08:00
Sara Arjona db7296f2f6 Merge branch 'MDL-74917-403-wrong-post-actions-list-in-statslib' of https://github.com/melanietreitinger/moodle into MOODLE_403_STABLE 2024-09-18 17:19:23 +02:00
Huong Nguyen 94a643c0d8 Merge branch 'MDL-81278-403' of https://github.com/mickhawkins/moodle into MOODLE_403_STABLE 2024-09-18 16:09:12 +07:00
Ilya Tregubov f7dd7e096a Merge branch 'MDL-80965-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2024-09-18 15:33:40 +08:00
Ilya Tregubov 674fbe100b MDL-80965 mod_quiz: Code style fixes. 2024-09-18 15:29:54 +08:00
Luca Bösch 93dd090c38 MDL-80965 mod_quiz: Put back random q category on the question page. 2024-09-18 15:29:54 +08:00
AMOS bot 7d229de154 Automatically generated installer lang files 2024-09-18 00:07:40 +00:00
Julien 0457ed850c MDL-77625 question restore: test restoring a quiz into a course twice
The verifies that the previous two commits are doing the right thing.
2024-09-17 16:59:02 +01:00
Tim Hunt 6c325a2b3c MDL-77625 question restore: fix restore of existing questions
Continuing from the last commit, the code to restore question
bank entries, versions and questions, was not taking note of
whether the first stage had indentified questions that did not
need to be restored. This is tricky, but the mapping can only be
worked out for questions, but in the backup file, the questions are
inside the question_bank_entries, and versions, so we encounter
those first.

Now, the code just saves the QBE and QV when it encounters them,
and then does all the processing when it gets to the question,
correctly taking note of whether each question should be restored or not.
In cases where a particular question does not need to be restored,
we still set up the corresponding mappings.
2024-09-17 16:59:02 +01:00
Tim Hunt 31734b11c8 MDL-77625 question restore: fix pre-parsing of questions
Restore of categories and questions happens in several phases.
First, the file is scanned for which questions and categories
it contains, to work out if these are new questions which need
to be restored, or if they already exist in the database in a
place that can be used.

That code had not been updated to cope with the Moodle 4.0
versioning changes, so it is updated here (while still keeping
the code to cope with the old backup format.)
2024-09-17 16:59:01 +01:00
Paul Holden 52746d4c9a MDL-82973 tool_usertours: add missing filelib library require. 2024-09-17 16:49:20 +01:00
Sara Arjona 9a0a83a456 Merge branch 'MDL-82389-403' of https://github.com/ssj365/moodle into MOODLE_403_STABLE 2024-09-17 17:31:52 +02:00
Sara Arjona 3d2052dd89 weekly release 4.3.7+ 2024-09-17 15:09:30 +02:00
sam marshall 84d831318f MDL-83163 core_course: Fresh install fails if dependency on format
If any plugin had dependency on a course format, Moodle fresh install
showed dependency errors (even though course format exists).
2024-09-17 10:40:45 +01:00
Melanie Treitinger 49d74934f1 MDL-74917 core: fix typo in function stats_get_post_actions
Fix phpunit test and apply coding guidelines.
2024-09-16 11:19:22 +02:00
Sara Arjona f01bc02e78 Merge branch 'MDL-82875_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-09-16 09:44:12 +02:00
Michael Hawkins 2ab39f557b MDL-81278 core: Update security.txt expiry 2024-09-16 14:50:43 +08:00
Paul Holden e0933f4f41 MDL-81157 files: consistent repository button styling on small screen. 2024-09-15 11:13:08 +01:00
Paul Holden 7eb8fce830 MDL-82909 theme_boost: ensure we target immediate loading icon only.
Ignoring those used within inplace editable components in the table.
2024-09-15 11:11:50 +01:00
Paul Holden 3c3c7b3268 MDL-82909 javascript: replace custom loading icon with existing module. 2024-09-15 11:11:50 +01:00
Tim Hunt 340e5f9a2c MDL-82875 question export: test for not exporting hidden questions 2024-09-13 16:04:43 +01:00
Vithusha Kethiri 28adbc1374 MDL-82875 qbank_export: Fix removing hidden questions from the export 2024-09-13 16:04:43 +01:00
Sara Arjona 4a5d428cd3 weekly release 4.3.7+ 2024-09-13 13:20:56 +02:00
Sara Arjona abeec88715 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-09-13 13:20:51 +02:00
Paul Holden f16681b267 MDL-83094 customfield: align persistent definitions with DB schema.
Where the field/category tables allow nulls, the definition within
each corresponding persistent should match.
2024-09-12 17:37:04 +01:00
Paul Holden 15b4403980 MDL-82602 webservice: correct config link to enable for mobile. 2024-09-12 08:05:12 +01:00
Huong Nguyen eedb5e5f81 Merge branch 'MDL-82545_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2024-09-12 10:47:08 +07:00
Huong Nguyen 6b3c54d981 Merge branch 'MDL-82959-MOODLE_403_STABLE' of https://github.com/sh-csg/moodle into MOODLE_403_STABLE 2024-09-12 10:35:28 +07:00
AMOS bot c77d234c19 Automatically generated installer lang files 2024-09-12 00:07:40 +00:00
Shamiso.Jaravaza aa07578b4c MDL-82389 mod_bigbluebuttonbn: Fix disablenotes 2024-09-11 09:32:16 -06:00
Huong Nguyen 9b9965110e Merge branch 'MDL-68676-403' of https://github.com/rhell4/moodle into MOODLE_403_STABLE 2024-09-11 15:50:25 +07:00
Huong Nguyen cd8a797f31 Merge branch 'MDL-75692-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-09-11 15:45:35 +07:00
Jun Pataleta 342f13d5df Merge branch 'MDL-82492-403' of https://github.com/vladaskidanovas/moodle into MOODLE_403_STABLE 2024-09-11 15:36:51 +08:00
Huong Nguyen 8341d84ce5 Merge branch 'MDL-79020-403' of https://github.com/ferranrecio/moodle into MOODLE_403_STABLE 2024-09-11 09:19:36 +07:00
AMOS bot 6dff42d1af Automatically generated installer lang files 2024-09-11 00:07:44 +00:00
Huong Nguyen 7b7e907e66 weekly release 4.3.7+ 2024-09-10 20:03:06 +07:00
Laurent David 0ae1c37e6d MDL-75692 core_h5p: Debounce resize events
* Make sure that we don't call the resize event too often to
avoid infinite loop when content is auto resizing (fonts for example)
2024-09-10 11:31:52 +02:00
Huong Nguyen bdba5a0594 Merge branch 'MDL-83047-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-09-10 10:47:50 +07:00
Jun Pataleta 782d262ef6 MDL-83047 theme_boost: Add upgrade note for theme plugins 2024-09-10 10:33:47 +08:00
Jun Pataleta 91932bf748 MDL-83047 theme_boost: Apply background colour only on select layouts
* Apply the styling of `background-color` for `.page-header-headings`
only in the maintenance and secure layouts.
2024-09-09 17:01:23 +08:00
Huong Nguyen e9f261c0f9 Merge branch 'MDL-82860-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-09-09 14:32:32 +07:00
meirzamoodle 19e92ca42c MDL-82860 atto_link: Set value as default to avoid unexpected behaviour 2024-09-09 08:12:05 +07:00
Jun Pataleta 7f6d05ad04 weekly release 4.3.7+ 2024-09-07 06:45:41 +08:00
Stefan Hanauska f0630a0576 MDL-82959 tool_recyclebin: Avoid null value for forcedsettings 2024-09-06 19:47:42 +02:00
ferranrecio 0fadf1ed19 MDL-79020 core_courseformat: hide completion edit link in bulk edit 2024-09-06 11:10:57 +02:00
Jun Pataleta c9e55faacf Merge branch 'MDL-63399-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-09-06 12:29:25 +08:00
Simey Lameze d76e843d8c MDL-63399 behat: update existing tests to use the better download steps
Co-authored-by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-09-06 12:15:02 +08:00
Simey Lameze a776b0bf55 MDL-63399 behat: new steps to verify downloads
Co-authored-by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-09-06 12:09:27 +08:00
Huong Nguyen 24d28bf68e Merge branch 'MDL-82948-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-09-06 11:01:27 +07:00
Huong Nguyen 80e2791f25 Merge branch 'MDL-82677-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-09-06 10:51:10 +07:00
Huong Nguyen 1e53070414 Merge branch 'MDL-80946_MOODLE_403_STABLE' of https://github.com/michaelkotlyar/moodle into MOODLE_403_STABLE 2024-09-05 15:54:14 +07:00
Michael Kotlyar c3d725a3cd MDL-80946 quizaccess_seb: Remove invalidkeys text if not using SEB. 2024-09-05 09:06:52 +01:00
Huong Nguyen ee96ff39cb Merge branch 'MDL-81909-403' of https://github.com/rezaies/moodle into MOODLE_403_STABLE 2024-09-05 14:50:11 +07:00
Shamim Rezaie 98086bf044 MDL-81909 mod_assign: fix test_attempt_reopen_method_untilpass 2024-09-05 03:28:07 +10:00
Michael Milette dd94fb1f8c MDL-72856 lib: Only inject one robots/noindex in head of Additional HTML 2024-09-04 12:34:04 -04:00
Sara Arjona 755dea3652 Merge branch 'MDL-82995_MOODLE_403_STABLE_feedback_broken_audio_video' of https://github.com/mariusros/moodle into MOODLE_403_STABLE 2024-09-04 12:59:21 +02:00
Huong Nguyen cfe13f3b73 Merge branch 'MDL-80225-403' of https://github.com/ssj365/moodle into MOODLE_403_STABLE 2024-09-04 09:30:22 +07:00
Marius Rosenbaum c0ef7bb0e4 MDL-82995 mod_feedback: fixed width of audio or video frames being 0 2024-09-03 17:15:43 +02:00
Paul Holden 16457d9346 MDL-80929 customfield: observe backup/restore settings to include. 2024-09-03 13:56:32 +01:00
Paul Holden b62d3965f6 MDL-80929 restore: consistent settings definition for custom fields. 2024-09-03 13:50:03 +01:00
Jun Pataleta d14f5eaa6c weekly release 4.3.7+ 2024-09-03 20:05:21 +08:00
Jun Pataleta 68ac6e6ef8 Merge branch 'MDL-82957-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2024-09-03 11:42:28 +08:00
Jun Pataleta 4e9a865984 Merge branch 'MDL-82804-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-03 10:32:23 +08:00
Jun Pataleta e6a32d87a5 Merge branch 'MDL-82717-403' of https://github.com/liamgm/moodle into MOODLE_403_STABLE 2024-09-03 10:29:29 +08:00
Jun Pataleta 26f41c348d MDL-82255 editor_tiny: No need for extra styles for RTL 2024-09-02 16:56:01 +08:00
Jun Pataleta 01e3740d89 Merge branch 'MDL-82255-403' of https://github.com/raortegar/moodle into MOODLE_403_STABLE 2024-09-02 16:01:55 +08:00
Ilya Tregubov 2a9305dbf5 Merge branch 'MDL-82220-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-09-02 10:10:46 +08:00
Paul Holden c0afa63f6e MDL-82494 user: correct profile field name formatting method.
Add optional `$escape` parameter to allow for unescaped return.
2024-08-30 09:48:13 +01:00
Paul Holden b7c05d2cc4 MDL-82488 customfield: allow for unescaped field formatted names.
Resolves double encoding of the same in Report builder editor.
2024-08-30 09:44:47 +01:00
Mikel Martín 7676cd334f MDL-82957 course: Fix section bulk actions alignment 2024-08-30 10:44:17 +02:00
Huong Nguyen e28403c470 Moodle release 4.3.7 2024-08-30 13:51:08 +07:00
Paul Holden 6554262006 MDL-82804 badges: define no results notice inside report instances.
When doing so from calling code, the property is not persisted when
filtering/paging (or any AJAX interaction); instead, it should be
set from within the report instance itself.
2024-08-29 17:31:34 +01:00
Huong Nguyen 3f94e61e49 weekly release 4.3.6+ 2024-08-29 18:10:02 +07:00
Paul Holden e109b9dd21 MDL-82483 tag: update the max length constant to match schema. 2024-08-29 10:38:06 +01:00
Liam Moran 896fa8b5a0 MDL-82717 enrol_lti: Make contextmembershipsurl property immutable
The contextmembershipsurl property on the nrsp_info object is itself
an object of type moodle_url so its getter should return a copy
of the moodle_url object instead of a reference to the class-internal
object. This commit adds a test for get_context_memberships_url and
updates the getter so the property is immutable.
2024-08-29 03:47:10 -05:00
Jun Pataleta 47deadb259 MDL-82948 theme_boost: Make <blockquote>'s border a bit darker 2024-08-29 16:04:43 +08:00
raortegar ff344e2495 MDL-82255 editor_tiny: Style blockquote in edit view 2024-08-29 09:25:21 +02:00
Paul Holden 3ea261a1c1 MDL-82365 mod_lesson: stricter equality checks of activity password. 2024-08-29 12:13:31 +08:00
Huong Nguyen f4e7f201bc Merge branch 'MDL-82446-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-29 11:05:30 +07:00
Jun Pataleta 0bad70f9c4 Merge branch 'MDL-82651-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-08-29 11:59:40 +08:00
Jun Pataleta c5f8a854b7 Merge branch 'MDL-82802-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-29 11:40:04 +08:00
Huong Nguyen 7945536fde MDL-82790 filter_tidy: Fix coding style 2024-08-29 10:19:51 +07:00
Huong Nguyen 330ecf9203 Merge branch 'MDL-82790-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-08-29 10:04:14 +07:00
Ilya Tregubov 75af70591b Merge branch 'MDL-82810_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-08-29 10:57:34 +08:00
Huong Nguyen 46f2f2cc29 Merge branch 'MDL-82898-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-08-29 09:50:29 +07:00
Paul Holden 7d2988dfe5 MDL-76962 auth_oauth2: users can only delete their own linked logins. 2024-08-29 10:32:41 +08:00
Stefan Hanauska def0c592a0 MDL-80974 enrol: Set category context for enrol form 2024-08-28 12:33:09 +02:00
Simey Lameze 7669660f9b MDL-82651 behat: remove unnecessary steps 2024-08-28 13:10:35 +08:00
Simey Lameze ed24ab1b04 MDL-82651 behat: wait for button to exist before clicking 2024-08-28 13:10:35 +08:00
Angelia Dela Cruz 3891da010b MDL-82898 enrol_self: Behat to test student enrolment using key 2024-08-28 11:45:59 +08:00
Paul Holden 9e40eb38c0 MDL-82663 user: fix check for current user removing own enrolment.
We only need to remove the current user from selection if they were
ever part of the selection originally.
2024-08-27 16:55:27 +01:00
Marina Glancy 8c875ed525 MDL-82567 core: Add has_capability method
Co-authored-by: David Woloszyn <david.woloszyn@moodle.com>
Co-authored-by: Jun Pataleta <jun@moodle.com>
2024-08-26 04:04:18 +00:00
Huong Nguyen 330d8baf27 MDL-69684 session_redis: Improve upgrade note 2024-08-26 10:59:43 +07:00
Huong Nguyen b1c64a3b25 MDL-69684 session_redis: Improve PHPUnit test 2024-08-26 10:59:36 +07:00
Huong Nguyen 55f37d0dc7 Merge branch 'MDL-69684-M403_its-possible-to-hold-a-redis-session-lock-forever' of https://github.com/ziegenberg/moodle into MOODLE_403_STABLE 2024-08-26 10:58:13 +07:00
rajandangi 1619484716 MDL-79628 navigation: Refactor navigation_cache to use MUC 2024-08-26 09:13:18 +09:30
Shamim Rezaie cd08a0ecee Merge branch 'MDL-82006-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-24 16:21:32 +10:00
Sara Arjona 062791efe1 weekly release 4.3.6+ 2024-08-23 16:04:01 +02:00
Jake Dallimore 6bc54e875d Merge branch 'MDL-82787-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-08-23 11:51:41 +08:00
Jun Pataleta f308827fa8 Merge branch 'MDL-79215-MOODLE_403_STABLE' of https://github.com/MichaelReyesCatcan/moodle into MOODLE_403_STABLE 2024-08-22 23:57:34 +08:00
KarlReyesCatalyst 37bca6ce6b MDL-79215 lib/graphlib: Typecasting round() function to INT. 2024-08-22 10:28:25 -04:00
Mark Johnson 916bd72fc1 MDL-82545 gradereport_grader: Limit grades per page
This replaces the limit on the number of students per page with a number
of grades per page, to take into account the number of grade items on a
course.
2024-08-22 11:04:57 +01:00
Shamiso.Jaravaza 342b3707b3 MDL-80225 mod_bigbluebuttonbn: Fix missing recordings 2024-08-21 21:00:40 -06:00
Huong Nguyen 19f639210a Merge branch 'MDL-82841-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-08-22 08:43:56 +07:00
Sara Arjona c66b5072e1 Merge branch 'MDL-82695_403_STABLE' of https://github.com/andrewhancox/moodle into MOODLE_403_STABLE 2024-08-21 16:07:52 +02:00
Sara Arjona 377fcdf1bd Merge branch 'MDL-82655-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-08-21 15:54:27 +02:00
Andrew Hancox 2ad2ba2d2c MDL-82695 qtype_multianswer: Fix div by zero in compute_final_grade 2024-08-21 13:44:47 +01:00
Angelia Dela Cruz 56b3532c63 MDL-82841 mod_workshop: Behat for submissions with set # of attachments 2024-08-21 19:01:41 +08:00
Huong Nguyen 71a0ce575f Merge branch 'MDL-82110-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-08-21 17:43:55 +07:00
Angelia Dela Cruz 1d101c4a52 MDL-82655 mod_workshop: Behat test for manual and random allocation 2024-08-21 17:44:46 +08:00
Jun Pataleta f980061174 Merge branch 'MDL-78785_403_toolbrickfield_rgbcolorcontrasts' of https://github.com/brickfield/moodle into MOODLE_403_STABLE 2024-08-21 11:49:40 +08:00
Andrew Nicols 2af12db84c MDL-82787 behat: Correct stop of webdriver on failure 2024-08-21 08:46:16 +08:00
Sara Arjona 869921831d weekly release 4.3.6+ 2024-08-20 20:16:02 +02:00
Sara Arjona 594795daa6 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-08-20 20:15:59 +02:00
Andrew Nicols 536c0f3e53 MDL-82110 core: Remove debugging for unmigrated hooks in unit tests 2024-08-20 20:28:49 +08:00
Andrew Nicols bff37a3eab MDL-82790 filter_tidy: Disable the tidy filter
This behaves very poorly and for most users has been silently not
working for many years.

When we stopped it from silently failing we discovered a number of
issues that it causes, for example:
- MDL-61117
- MDL-82790
2024-08-20 20:15:23 +08:00
vlad.kidanov c8f98fe85d MDL-82492 gradereport_grader: Grader report HTML output optimization 2024-08-20 10:26:57 +01:00
Sara Arjona 9d7695c5fa Merge branch 'MDL-82455-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-19 16:46:03 +02:00
AMOS bot 027ee0fef8 Automatically generated installer lang files 2024-08-19 00:07:43 +00:00
Karen Holland 2e1aa0c321 MDL-78785 tool_brickfield: Processing rgb & rgba color contrasts
Including rgb() & rgba() processing for colour contrast checking.
  Including review requests :void and @covers for phpunit testing.
2024-08-16 17:32:59 +00:00
Tim Hunt 1ffabb9359 MDL-82810 question bank: stop action menu from getting truncated 2024-08-16 13:38:46 +01:00
Paul Holden 48e0029f0f MDL-74188 notes: consistent formatting of text content.
Each method of adding notes, either via UI or external service (via
course participant actions), defined the format of the content
different from one another. Neither of those formats were correct.
2024-08-16 10:20:08 +01:00
Paul Holden f48077b2ed MDL-82220 group: check valid mapping when restoring custom fields. 2024-08-16 10:09:10 +01:00
Paul Holden b3bdb05db1 MDL-82220 backup: ensure correct group/ing custom fields are included.
We should include only the custom field values that belong to those
groups and/or groupings that are being backed up.
2024-08-16 10:09:10 +01:00
Huong Nguyen 07c3ab9006 weekly release 4.3.6+ 2024-08-16 08:39:21 +07:00
Paul Holden b6887b94ce MDL-82455 badges: link report recipients count to appropriate page. 2024-08-15 22:37:21 +01:00
Paul Holden fcf82fab25 MDL-82006 reportbuilder: move filter Behat scenarios inside component. 2024-08-15 13:17:26 +01:00
Paul Holden 0ac01eea47 MDL-82802 tool_xmldb: allow numeric characters in table names. 2024-08-15 12:00:46 +01:00
Huong Nguyen 765b5e48bd Merge branch 'MDL-82724-MOODLE_403_STABLE' of https://github.com/phmemmel/moodle into MOODLE_403_STABLE 2024-08-15 11:00:01 +07:00
Jun Pataleta 0cda695df0 Merge branch 'MDL-82782-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-08-15 11:51:50 +08:00
Jun Pataleta 6f950a3ccf Merge branch 'MDL-82747-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-08-15 11:38:07 +08:00
Andrew Nicols 9c63160dcc MDL-82747 core: Remove erroneously included aws-sdk file import 2024-08-15 11:35:08 +08:00
Jun Pataleta 758503c85d Merge branch 'MDL-82798-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-08-15 11:13:41 +08:00
Huong Nguyen effe286ca8 Merge branch 'MDL-82758-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-08-15 09:38:07 +07:00
Huong Nguyen c3ed25c71c MDL-82798 qtype_ddmarker: Fix Behat failure 2024-08-15 09:17:23 +07:00
Jun Pataleta b0a74d3487 Merge branch 'MDL-82792-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-08-15 10:14:40 +08:00
Jun Pataleta 8e1891c8cb Merge branch 'MDL-82747-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-08-14 23:04:31 +08:00
Daniel Ziegenberg 3460632bf1 MDL-69684 session: Redis session locks set with expiry atomically
Co-Authored-By: Jamie Chapman-Brown <jamie.chapman-brown@agilicus.com>
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-08-14 17:03:38 +02:00
Andrew Nicols da1163b2b9 MDL-82747 core: Register composer autoload files
Unfortunately PHP does not provide any means to autoload the files that
a functions is located in, even if they are in an namespace.

To work around this, Composer makes use of an `autoload.files` section
in the `composer.json` file. Shortly after the Composer autoloader is
registered with the `spl_autoload_register` call it also includes any
files listed in this section.

Moodle does not do this and really we should be doing so.

This change adds a section to the autoloader registration method which
loads all of the files defined in any third-party library included in
our `lib` directory which contains any `composer.json` file with such a
stanza.
2024-08-14 21:59:52 +08:00
Andrew Nicols 734a5f1e80 MDL-82747 core: Provide a standard way to register the Autoloader 2024-08-14 21:59:52 +08:00
Andrew Nicols 6c4be65b3e MDL-82782 behat: Support runtime scaling of Behat windows 2024-08-14 21:55:32 +08:00
Sara Arjona c49e9f7fc9 MDL-82792 h5p: Fix random behat failures
We've started seeing various failures in Firefox and Classic.
Increasing the default window size fixes them.
2024-08-14 12:18:33 +02:00
Sara Arjona e1daeec17d Merge branch 'MDL-82682-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-08-14 09:13:09 +02:00
Huong Nguyen 092edd5696 MDL-82682 behat: fix window size failures on Chrome 2024-08-14 11:37:14 +08:00
Simey Lameze 4aa8e531a6 MDL-82682 behat: increase window size to avoid fails 2024-08-14 11:37:14 +08:00
Sara Arjona d0302639fa Merge branch 'mdl-82214-m403' of https://github.com/NeillM/moodle into MOODLE_403_STABLE 2024-08-13 16:08:21 +02:00
Sara Arjona 5312f57718 Merge branch 'MDL-82502-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-13 13:15:04 +02:00
Ilya Tregubov e88a87e22e Merge branch 'MDL-64675-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-13 10:44:36 +08:00
Ilya Tregubov fcf23db6be Moodle release 4.3.6 2024-08-10 14:54:55 +08:00
Jun Pataleta 78d0d69cfa MDL-82758 gha: Remove reference to the master branch 2024-08-09 16:16:26 +08:00
Jun Pataleta 6e8dcf515a Merge branch 'MDL-82599-403-enfix' of https://github.com/mudrd8mz/moodle into MOODLE_403_STABLE 2024-08-09 11:18:54 +08:00
Ilya Tregubov e1d320d4bb weekly release 4.3.5+ 2024-08-09 09:34:27 +08:00
Huong Nguyen ce59fcf650 MDL-82745 filter_tex: Improve PHPUnit test 2024-08-08 21:06:01 +08:00
Mark Johnson 019bcd6f18 MDL-81987 redis: Set connection and read timeouts to 10 seconds
This allows the site to continue operating in case of degraded
performance, rather than throwing exceptions.
2024-08-08 13:14:30 +01:00
Michael Hawkins a17934ee11 MDL-82745 filter_tex: Improve filter deny list 2024-08-08 11:40:35 +07:00
Michael Hawkins 07776fe1d5 MDL-82576 qtype_calculated: Improve formula regexes 2024-08-08 11:11:51 +07:00
Ilya Tregubov 8ecbb1bea3 Merge branch 'MDL-82608-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-08 11:09:39 +08:00
Ilya Tregubov 0194edd6c4 Merge branch 'MDL-82605-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-08 11:03:45 +08:00
Safat 27c875e461 MDL-82395 tool_xmldb: Table layout update 2024-08-08 10:01:12 +07:00
Jun Pataleta ef4d45b20b Merge branch 'MDL-82560-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-08-08 10:44:48 +08:00
Paul Holden 88f41107c6 MDL-79373 admin: ensure all current password configs are defined.
Ensure the admin preset export tool has an accurate record of each,
to be observed as sensitive settings when creating an export.
2024-08-08 09:22:39 +07:00
Andrew Nicols 4940dc9470 Merge branch 'MDL-80593-403-alt' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-08-08 10:20:00 +08:00
Angelia Dela Cruz 2f9e8dddd2 MDL-82560 mod_forum: Test that students can only start one discussion 2024-08-08 10:18:34 +08:00
Huong Nguyen f9639f1404 Merge branch 'MDL-82177_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-08-08 09:11:17 +07:00
Huong Nguyen c2158534c0 Merge branch 'MDL-82669-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-08 08:58:57 +07:00
Jun Pataleta 78813b3766 Merge branch 'MDL-77784-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-08 09:55:32 +08:00
Huong Nguyen cfef0be6c5 Merge branch 'mdl-826620-43' of https://github.com/matthewhilton/moodle into MOODLE_403_STABLE 2024-08-08 08:41:41 +07:00
Ilya Tregubov fa8af811d3 Merge branch 'MDL-82209-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-08 09:22:32 +08:00
Ilya Tregubov 9c02db4d4d Merge branch 'MDL-82525-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-08 08:27:34 +08:00
Ilya Tregubov a30b6e8547 Merge branch 'MDL-82208-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-08 08:18:22 +08:00
Paul Holden f83bba28b5 MDL-64675 mod_feedback: better detection of last page break element.
Inform user when a page break item cannot be added.
2024-08-07 16:57:46 +01:00
Philipp Memmel f682ff4097 MDL-82724 editor_tiny: Harden check for quicktoolbar and contextmenu 2024-08-07 11:56:07 +02:00
Jun Pataleta d2a1df8890 Merge branch 'MOODLE_403_MDL-82518' of https://github.com/danielneis/moodle into MOODLE_403_STABLE 2024-08-07 17:12:01 +08:00
Ilya Tregubov 51e55e9fba Merge branch 'MDL-81830-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-07 15:28:21 +08:00
Paul Holden 82243bf8c8 MDL-81394 restore: format backup file metadata details safely. 2024-08-07 14:04:48 +08:00
Ilya Tregubov 2b36e64a26 MDL-79541 gradereport_user: Fix indentation in Behat. 2024-08-07 04:13:54 +00:00
Huong Nguyen 2503e35684 MDL-81718 core_grades: Fix Behat failures 2024-08-07 04:13:54 +00:00
raortegar f4aa615c74 MDL-81718 core: Improve localstorage validation 2024-08-07 04:13:54 +00:00
Paul Holden 6f8db95ccf MDL-82558 h5p: escape template error/exception content. 2024-08-07 04:13:54 +00:00
Paul Holden 0b4100c13e MDL-82392 blocks: consistent cleaning of block instance names. 2024-08-07 04:13:54 +00:00
Paul Holden 01375bdaa0 MDL-82261 mod_feedback: ensure only non-respondents can be messaged. 2024-08-07 04:13:54 +00:00
Paul Holden e360a5dc2e MDL-82390 badges: correct context check when deleting badges. 2024-08-07 04:13:54 +00:00
meirzamoodle 57de85a0a0 MDL-82136 curl: Send credentials to redirect URL if allowed
Curl has the option CURLOPT_UNRESTRICTED_AUTH. If true, curl will send
the credentials to a different host. If false, they will not be sent.

CURLOPT_UNRESTRICTED_AUTH can only work if the CURLOPT_FOLLOWLOCATION
option is true. The filelib forces the CURLOPT_FOLLOWLOCATION option
to be false, because all redirects are emulated at the PHP level. So,
in this case, the CURLOPT_UNRESTRICTED_AUTH option is only being used
in our logic and will not work as you might expect it to.

This patch works almost the same as CURLOPT_UNRESTRICTED_AUTH in ideal
conditions. It will check whether the host is different. If so, the
system will check what value CURLOPT_UNRESTRICTED_AUTH has. If it is
not specified, then by default, it will be false. If false, then
credentials will not be sent.
2024-08-07 04:13:54 +00:00
Paul Holden ee7b35cd2f MDL-82262 mod_feedback: fix broken bulk message sesskey checks. 2024-08-07 04:13:54 +00:00
Paul Holden 2c5f827dcc MDL-64984 mod_glossary: capability check when restoring global type. 2024-08-07 04:13:54 +00:00
David Woloszyn 14feac6458 MDL-81951 communication_matrix: Fix suspended users ignored bug
The implementation of this bug fix is slightly different on 403 branch
compared to later branches due to major changes that were applied
to communication with the addition of hooks and helpers.
2024-08-07 04:13:54 +00:00
David Woloszyn 4e7ee4e0b9 MDL-81951 communication_matrix: New trait for power levels
A more reliable way of obtaining room power levels is now used in the
new trait get_room_power_levels_v3. This makes
get_room_powerlevels_from_sync_v3 less needed, but not necessarily
redundant. The names of the containing methods have been adjusted to
make better sense of which trait they belong to.
2024-08-07 04:13:54 +00:00
Ilya Tregubov 5760639c16 MDL-79541 core_grades: Add missing user info to search services.
Seems just fullname is not enough. So added all name fields.
2024-08-07 04:13:54 +00:00
Ilya Tregubov 299bb8180c MDL-79541 core_grades: Hidden user fields check for search.
If some user profile fields are hidden on some grade reports
users without permission were able to see those.
2024-08-07 04:13:54 +00:00
Huong Nguyen 43ccc81b1b Merge branch 'MDL-82611-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-07 10:25:34 +07:00
Huong Nguyen a4d92e88cf Merge branch 'MDL-82620-403' of https://github.com/ericmerrill/moodle into MOODLE_403_STABLE 2024-08-07 10:20:53 +07:00
Jun Pataleta 0c26411ad5 Merge branch 'MDL-82606_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-08-07 11:12:16 +08:00
Tim Hunt 7323860c03 MDL-82606 filterlib: pass a row limit to recordset for performance
On Postgres, at least, get_recordset_sql performs signficantly worse
if you don't pass a limit. So, we add a limit to the query, but one
that in enormously too large, so it should never have an effect.
(And, there is code to check we never hit the limit, to avoid subtle bugs.)
2024-08-06 10:47:50 +01:00
Jun Pataleta dd9a9980ad Merge branch 'MDL-82344-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-08-06 17:26:52 +08:00
Jun Pataleta 025cb77c93 Merge branch 'MDL-79568-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-08-06 17:20:02 +08:00
Neill Magill 2e975de3ed MDL-82214 admin: Settings should not change when in read only mode
Before this change if some settings were:

* read only
* visible on a settings page
* are set or have values selected

when the settings page was saved the setting would be set tobe empty,
because the hidden input remained on the page, while the other inputs
where not posted to Moodle.
2024-08-06 09:54:18 +01:00
Paul Holden 018f792769 MDL-82446 files: pleasantly style the filepicker modal containers. 2024-08-05 08:41:03 +01:00
Paul Holden 41301da68e MDL-79568 javascript: remove lang parameter from legacy string calls. 2024-08-05 08:33:26 +01:00
Ilya Tregubov d98864859a Merge branch 'MDL-82171-muc-sited-MOODLE_403_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_403_STABLE 2024-08-05 11:19:28 +08:00
Daniel Neis Araujo 6f77e20d2b MDL-82518 core_user: Fix regression introduced by MDL-80271 2024-08-02 14:47:48 -03:00
Paul Holden 69048fc549 MDL-82669 mod_assign: remove Atto reliance workaround for Behat.
See 8fe80e743c for context, and 802ff3e2e3 for additonal comments.
2024-08-02 10:33:43 +01:00
Paul Holden d9a462727b MDL-82669 editor: remove reliance on Atto editor in Behat scenarios. 2024-08-02 10:33:43 +01:00
Jun Pataleta 264c286a63 MDL-82677 theme: Set a background colour for page heading
* Set a background colour for the .page-header-headings class.
* Assign the .page-header-headings class to the maintenance mode
template's page header div.
2024-08-02 17:25:02 +08:00
Paul Holden eadd93065c MDL-82502 courseformat: align module action capability checks.
The "Hide/Show/Duplicate" actions should be considered self-contained,
and not also require "manageactivities" capability (per existing docs)
in addition to the specific capability that controls the action itself.

Also ensure the "Duplicate" capability checks are in the course context.
2024-08-02 10:01:22 +01:00
Paul Holden 8ec33d16c7 MDL-82608 mod_data: null content checks when editing fields. 2024-08-02 09:57:43 +01:00
Paul Holden bc39fac69f MDL-82605 contentbank: pre-load contexts for options list.
Prevents additional DB reads per category/course, which can be
potentially expensive on large sites.
2024-08-02 09:50:24 +01:00
Ilya Tregubov 431f27e7bf weekly release 4.3.5+ 2024-08-02 09:30:53 +08:00
Ilya Tregubov c3097a8084 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-08-02 09:30:49 +08:00
Matthew Hilton 7a325a2824 MDL-82662 login: load library with require_once 2024-08-02 10:52:30 +10:00
David Mudrák c065e8b259 MDL-82599 lang: Use the fixed strings in tests, too 2024-08-01 21:30:50 +02:00
Helen Foster df998bfd47 MDL-82599 lang: Import fixed English strings (en_fix) 2024-08-01 21:16:05 +02:00
Paul Holden 0cd3880ef3 MDL-77784 quiz_grading: editor agnostic Behat scenario steps. 2024-08-01 14:17:23 +01:00
Huong Nguyen 794464cdca Merge branch 'MDL-80064-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-08-01 10:41:53 +07:00
Huong Nguyen 32c6297d21 Merge branch 'MDL-82598-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-08-01 10:27:08 +07:00
Huong Nguyen ab84cbafd1 MDL-80593 core: Make Modal to work with Debug Template Info mode 2024-08-01 10:18:31 +07:00
Huong Nguyen ec8f02fe93 MDL-80017 core_grades: Move upgrade note 2024-08-01 09:17:04 +07:00
Huong Nguyen 1098d89c96 Merge branch 'MDL-80017-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-08-01 09:15:51 +07:00
Ilya Tregubov 9316aeadc8 Merge branch 'MDL-81689_MOODLE_403_STABLE' of https://github.com/rzhtwberlin/moodle into MOODLE_403_STABLE 2024-08-01 09:58:57 +08:00
Jun Pataleta 9437d3f3e5 Merge branch 'MDL-82286-403' of https://github.com/daledavies/moodle into MOODLE_403_STABLE 2024-08-01 09:46:37 +08:00
AMOS bot 18b0d6e27b Automatically generated installer lang files 2024-08-01 00:07:32 +00:00
Sara Arjona 3f163bb902 Merge branch 'MDL-72876-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-07-31 17:15:26 +02:00
Sara Arjona bfa3494d6c Merge branch 'MDL-82596-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-31 16:46:12 +02:00
Dale Davies 5302515c40 MDL-82286 quiz_accessrule: Add SEB config test for floating point number
This tests several variations of SEB config files, to ensure Moodle
is able to parse them and generate a config key hash that matches
what SEB expects.

Additional values have been added to the unencrypted_win_233.seb
config file to cover the existence of floating point values,
ensuring they are serialized correctly. The config hash value
has been updated in real_ck_hash_provider to reflect the change.

Also added coverage information to the test case class docblock.
2024-07-31 11:16:45 +01:00
Jun Pataleta c48c1d29ab Merge branch 'MDL-82187-single-button-403' of https://github.com/djarran/moodle into MOODLE_403_STABLE 2024-07-31 17:21:22 +08:00
Paul Holden d78df6e8e4 MDL-82208 block_starredcourses: avoid double encoding course name. 2024-07-31 08:47:29 +01:00
Simey Lameze 105686c55b MDL-82598 behat: improve example submission test 2024-07-31 09:05:20 +08:00
AMOS bot 9364de6276 Automatically generated installer lang files 2024-07-31 00:07:29 +00:00
Tim Hunt 041ed9043b MDL-82177 file upload: default to path '/'when things go wrong
This 'fix' is basically a work-around, but one that is already used in
some places. Now it is used in all similar places.

Exactly what causes the current file path in a file manager to become
unset is still unclear to me, but it seems to be an obscure race
condition that is very hard to reproduce.

However, when it happens, currently we are effectively defaulting to
path '/undefined/'. Using '/' is never worse, and is infinitely better
in the case where the filepicker does not allow folders to be used
(which includes important cases like essay questions in a quiz, which
some people use for exams!). In that case, falling back to non-top-level
path leads to dataloss.

Also, this is all historic JavaScript which will get replaced in the
grand de-YUI-fication, so I think a pragmatic fix is justified here.
2024-07-30 15:07:25 +01:00
Jun Pataleta 17af3c7054 MDL-72876 theme_classic: Enclose welcome message in Bootstrap card 2024-07-30 19:40:32 +08:00
meirzamoodle 7878dda84b MDL-80064 authentication: password can be null
The Open ID Connect plugin uses null for the password,
which makes the internal password update fail to proceed.
Allowing null resolved the problem.

As a note, there is a potential issue if the authentication method has
a false return for the prevent_local_password because it will trigger
the hash_internal_user_password() where  the $password can not be null.
Since this only addresses the oauth2 issue, we should ignore it.
2024-07-29 15:53:08 +07:00
Paul Holden eeb9847c61 MDL-82525 user: correct course parameter for course profile page. 2024-07-29 09:22:07 +01:00
Paul Holden 2e8b0d29ee MDL-81830 calendar: handle clearing of group type course element. 2024-07-29 09:20:56 +01:00
Paul Holden 680fc50218 MDL-82209 calendar: consistent event action icon hovering.
* Apply hover on the icons, rather than the outer container;
* Make hover colour and text decoration appropriate for the icon
2024-07-29 09:19:46 +01:00
Jake Dallimore 5264d41125 MDL-82344 mod_lti: relax content selection validation in instance form
This was added in MDL-78916 in 4.3 but makes configuring a generic
launch to the default tool URL impossible, since a content item must be
selected. This fix:
- Makes this element optional again, which allows teachers to choose
whether a given instance launches into selected content, or launches
the default tool URL.
- Changes the style to btn-secondary, given it's now optional again
2024-07-29 13:07:45 +08:00
Andrew Nicols e79703fa30 Merge branch 'MDL-82250-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-07-29 11:48:32 +08:00
Ilya Tregubov 9247c786e9 Merge branch 'MDL-80345-403' of https://github.com/MartinGauk/moodle into MOODLE_403_STABLE 2024-07-29 11:33:46 +08:00
Paul Holden b3363ff7b7 MDL-82596 behat: switch manual private files upload to generator. 2024-07-28 19:26:49 +01:00
Paul Holden 4870d18dad MDL-82596 behat: tidy up existing usage of private files generator.
Filename is no longer required (since 83db25c330), given it never
did anything so can be removed. Requiring the "Private files" block
also isn't necessary since original switch to generator methods.
2024-07-28 19:13:47 +01:00
Paul Holden 16931c9db2 MDL-82611 mod_assign: capability check before exporting grade link. 2024-07-26 21:20:48 +01:00
Eric Merrill ad0188abae MDL-82620 completion: Make enrol duration comp happen at the right time 2024-07-26 14:11:48 -04:00
Johannes Burk 8f86be0184 MDL-81689 tests: Check task DB record for nextruntime 2024-07-26 10:33:12 +02:00
Johannes Burk c05ead813e MDL-81689 tasks: add unit test to check for the bug 2024-07-26 10:33:12 +02:00
Jun Pataleta e119a01a4f weekly release 4.3.5+ 2024-07-26 13:35:44 +08:00
Jun Pataleta 3548666713 NOBUG: Fixed SVG browser compatibility 2024-07-26 13:35:42 +08:00
Jun Pataleta 4e9d0e5632 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-07-26 13:35:41 +08:00
Jun Pataleta 9624bc226c Merge branch 'MDL-82373-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-07-26 13:19:57 +08:00
Andrew Nicols 35e3be3c33 MDL-82373 core_message: Make message drawer router behat-aware
The drawer router was modifying the DOM in a variety of ways and hiding
content, without any pendingJS checks. As a result, there were cases
where a part of the UI was not visible, but had been rendered and was in
the DOM.

This change wraps the router Go method in a pendingJS call that only
resolves when the router transition completes.

Additionally the lazy load manager had a similar issue.
2024-07-26 12:45:30 +08:00
Juan Leyva 5e4e5bf13e MDL-80017 core_grades: Fix return type for itemname 2024-07-25 11:16:45 +02:00
Huong Nguyen 9cb172a65d Merge branch 'MDL-82527-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-25 10:49:18 +07:00
Huong Nguyen 0e14c24d9a Merge branch 'MDL-82328-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-25 10:36:20 +07:00
Jun Pataleta cb247b8c0f Merge branch 'MDL-82373-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-07-25 11:31:20 +08:00
Huong Nguyen 2548f1ddf5 Merge branch 'MDL-58287-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-25 10:29:59 +07:00
Jun Pataleta 1aa1ffba4e Merge branch 'MDL-77706-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-07-25 11:02:38 +08:00
Huong Nguyen 9439acba52 Merge branch 'MDL-82553-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-07-25 09:17:47 +07:00
Shamim Rezaie 6ee8b49e95 Merge branch 'MDL-82551-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-07-25 11:53:30 +10:00
Huong Nguyen ad9485bf80 Merge branch 'MDL-82554-MOODLE_403_STABLE' of https://github.com/micaherne/moodle into MOODLE_403_STABLE 2024-07-25 08:51:00 +07:00
Huong Nguyen 977656caaf Merge branch 'MDL-82451-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-07-25 08:44:03 +07:00
Huong Nguyen 537b00e8b0 Merge branch 'MDL-82422-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-07-25 08:37:01 +07:00
AMOS bot 9ccfc52146 Automatically generated installer lang files 2024-07-25 00:08:05 +00:00
Amaia Anabitarte 184977d3dc MDL-82451 course: Switch hide/show icons for section action menu 2024-07-24 12:18:35 +02:00
Jun Pataleta c51ea2b1fb Merge branch 'MDL-81803-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-24 16:57:43 +08:00
Jun Pataleta c07afde99f Merge branch 'MDL-82289-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-24 15:05:24 +08:00
Angelia Dela Cruz fab4e5c529 MDL-82422 mod_workshop: Behat for how strict assessment comparison is 2024-07-24 14:01:07 +08:00
Huong Nguyen b906e01ec6 Merge branch 'MDL-82528-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-24 12:01:14 +07:00
Michael Aherne 66ebd9db13 MDL-82554 question: Allow null createdby in question_has_capability_on. 2024-07-23 10:45:09 +01:00
Simey Lameze 117165c346 MDL-82250 core: add web installer test workflow 2024-07-23 13:33:12 +08:00
Jun Pataleta e94157a6dd MDL-82553 behat: Run accessibility tests using WCAG 2.2 success criteria 2024-07-22 14:38:00 +08:00
Jun Pataleta 09ea3a579b MDL-82551 core: Set welcome message heading to level 1 2024-07-22 14:21:14 +08:00
Huong Nguyen 140094cad8 Merge branch 'MDL-82481-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-22 10:40:58 +07:00
Huong Nguyen 3f9b5fa648 Merge branch 'MDL-82193-403' of https://github.com/ericmerrill/moodle into MOODLE_403_STABLE 2024-07-22 09:40:00 +07:00
Ilya Tregubov 587685d0c5 Merge branch 'MDL-82499-MOODLE_403_STABLE' of https://github.com/micaherne/moodle into MOODLE_403_STABLE 2024-07-22 09:43:18 +08:00
djarrancotleanu b2c3857364 MDL-82187 core: Add default type for single button in template 2024-07-22 09:27:36 +10:00
AMOS bot 659af23164 Automatically generated installer lang files 2024-07-21 00:07:39 +00:00
Paul Holden c5451fb629 MDL-58287 courseformat: ensure all format plugins are returned. 2024-07-19 15:23:45 +01:00
Paul Holden 2e4f29999f MDL-82528 courseformat: switch to existing group action icon.
Use a version that already exists in our fontawesome mapping so it
can be consistently styled/overridden.
2024-07-19 12:54:40 +01:00
Sara Arjona ab0045f9a4 Merge branch 'MDL-81119-forced-config-MOODLE_403_STABLE' of https://github.com/bwalkerl/moodle into MOODLE_403_STABLE 2024-07-19 12:37:23 +02:00
Benjamin Walker 36bc92acf0 MDL-81119 tool_recyclebin: Stop overriding unrelated forced config 2024-07-19 14:37:21 +10:00
Ilya Tregubov 8efeae492e weekly release 4.3.5+ 2024-07-19 09:30:31 +08:00
Paul Holden 93f67ab063 MDL-82481 customfield_select: return field options pre-formatted. 2024-07-18 14:03:21 +01:00
Paul Holden a557f745bc MDL-82481 reportbuilder: re-use existing method for field options. 2024-07-18 14:03:21 +01:00
Paul Holden 17f0e4e776 MDL-82527 h5p: improve editor Behat scenarios for embedding content.
* Move the shared drag fixture out of the Atto plugin;
* Switch to using faster generators for populating private files;
* Clarify required fields for private files generator
2024-07-18 09:38:10 +01:00
Jun Pataleta d99a6bbfe4 Merge branch 'MDL-82505-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-07-18 12:50:36 +08:00
Jun Pataleta 45ec12f24f Merge branch 'MDL-75864-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-07-18 12:47:43 +08:00
Huong Nguyen 5f104acde5 MDL-82505 calendar: more precise matching of calendar day partial
The partial name selector points to the parent element,
but the Javascript code monitors the child element.
We need to make it consistent
2024-07-18 11:37:44 +07:00
Andrew Nicols 661a9ce962 Merge branch 'MDL-82309-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-18 11:59:02 +08:00
Ilya Tregubov 11f0f20e34 Merge branch 'MDL-82445-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-07-18 11:36:47 +08:00
Andrew Nicols afaf5187e1 Merge branch 'MDL-81932-403' of https://github.com/safatshahin/moodle into MOODLE_403_STABLE 2024-07-18 11:28:31 +08:00
Huong Nguyen ddc90af2da Merge branch 'MDL-82192-403' of https://github.com/ericmerrill/moodle into MOODLE_403_STABLE 2024-07-18 10:27:33 +07:00
Andrew Nicols 8af45284aa Merge branch 'MDL-81272-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-07-18 11:22:25 +08:00
Andrew Nicols 77104c61cb MDL-82445 filter_tidy: Ensure locale does not change when using Tidy 2024-07-18 11:00:42 +08:00
Andrew Nicols 116e5abbc5 MDL-82445 core: Create locale helper utility 2024-07-18 11:00:42 +08:00
Ilya Tregubov 64796d367e Merge branch 'MDL-82090-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-18 10:40:10 +08:00
Ilya Tregubov 23b8b0fdc6 Merge branch 'MDL-82444-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-18 10:34:04 +08:00
Huong Nguyen ec40091d0a Merge branch 'MDL-82467-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-18 09:20:14 +07:00
Sara Arjona a6a970124a Merge branch 'MDL-82353-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-07-17 17:08:17 +02:00
Andrew Nicols 42fb4adf3e MDL-82373 behat: Disable axe target-size rule
Disable the target-size rule.
This rule was added in Axe 4.7, but changed in 4.8 to allow for spacing
around the element. See https://github.com/dequelabs/axe-core/pull/4117
for more information on this change.

Moodle 4.2 has an earlier version of Axe which does not have this rule.
Moodle 4.4 has a later, unaffected, version of Axe.

The simplest solution here is to simply disable the buggy rule.
2024-07-17 22:51:35 +08:00
Paul Holden 25e9ddf536 MDL-82499 question: test for invalid question in capability check. 2024-07-17 09:58:12 +01:00
Andrew Nicols f08c8b7db7 MDL-82373 contentbank: Pause in Behat before interacting with h5p
It seems that the loading of the h5p content upsets other interactions
with the page in Firefox as it loads. Unfortunately I haven't found a
reliable way to handle this with pendingJS yet.

This is the poor man's fix and we should find a better solution.
2024-07-17 13:29:46 +08:00
Andrew Nicols 66f526f878 MDL-82373 question: Make window larger in behat tests
I would suggest that this is a stop gap to solve some failing tests. We
really need to look at whether we can improve the usability of this
interface on smaller displays as a longer-term fix.
2024-07-17 13:29:46 +08:00
Andrew Nicols 783477d51b MDL-82373 core_grades: Address random failures when editing gradebook 2024-07-17 13:29:45 +08:00
Andrew Nicols 5b665180f1 MDL-82373 behat: Wait for alerts before accepting/dismissing them 2024-07-17 13:29:45 +08:00
Andrew Nicols e3d9453e61 MDL-82373 core: Make CollapsibleRegion more tolerant to behat 2024-07-17 13:29:45 +08:00
Andrew Nicols c8cb3660ac MDL-82373 tool_usertours: Ensure that behat waits for tours to show/hide 2024-07-17 13:29:45 +08:00
Andrew Nicols 3d43a712bc MDL-82373 behat: Stop killing the entire Behat run on driver error
If there's a driver error, for example from a step taking too long, then
this kills the entire Behat run and we have to start from scratch.

This change instead throws away the original connection and starts a new
one to try and continue the test.
2024-07-17 13:29:44 +08:00
Andrew Nicols beb6ab9e4e MDL-82373 behat: Stop calling ensure_node_is_visible before click
W3C WebDriver Element::Click, Element::Clear, and Element::SendKeys all
state that the WebDriver implementation (chromedriver, geckodriver,
edgedriver) should scroll the element into view if it is not already
visible.

It is wrong for us to check if the element is visible or not before
calling these as it may not be but will during the click/clear/type
event.
2024-07-17 13:29:44 +08:00
Andrew Nicols fd6e1984dd MDL-82373 mod_lesson: Fix failing behat tests for Selenium 4
Recent versions of Chrome do not re-render the page but return previous
page state from cache. The page state had the Submit button disabled
before navigating away.

Refreshing the page addresses this.
2024-07-17 13:29:44 +08:00
Ilya Tregubov 034588c559 Merge branch 'MDL-82002-403' of https://github.com/durenadev/moodle into MOODLE_403_STABLE 2024-07-17 11:05:15 +08:00
Michael Aherne 66712ce0d8 MDL-82499 question: Fail if questionid does not exist. 2024-07-16 14:58:53 +01:00
Dale Davies 02d483b628 MDL-82286 core: Set serialize_precision to current PHP default 2024-07-16 10:00:57 +01:00
Angelia Dela Cruz 6c5ba9b786 MDL-82353 gradingform: Behat to verify marking guide can be set to draft 2024-07-16 16:59:57 +08:00
Andrew Nicols 927cfa7e7d MDL-77706 atto_link: Work around Mozilla bug 1906559
This upstream bug prevents creation of an anchor with a hyperlink where
the content has a block-like display.

The workaround is to wrap the content in a span, set the display to
inline, call the `createLink` command on the span, move the content out
of the span, and then remove it.

This is only done for Firefox-based browsers.
2024-07-16 15:37:57 +08:00
Ilya Tregubov c5bca30726 Merge branch 'MDL-82282-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-16 09:26:43 +08:00
Ilya Tregubov 1f9f1afb90 Merge branch 'MDL-73662-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-16 09:16:22 +08:00
Paul Holden 5ec0023392 MDL-82467 completion: simplify field SQL for completion columns.
For columns whose values can be represented purely in SQL, we don't
need to/shouldn't select extra data because it confuses the column
output during aggregation for numeric/boolean columns.
2024-07-15 13:34:50 +01:00
Huong Nguyen e478edc496 MDL-81272 calendar: Improve permission check for separate group mode 2024-07-15 15:47:13 +07:00
Andrew Nicols fc5a993443 MDL-66903 core: Check PHPUNIT_TEST defined before using 2024-07-15 13:43:21 +07:00
Huong Nguyen 5a890734c3 Merge branch 'MDL-66903-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-07-15 13:22:20 +07:00
Andrew Nicols d4f3368d28 MDL-66903 core: Introduce \core_component::reset to replace hacks
Traditionally we have done this using reflection and it would be better
to do this in a 'proper' fashion in case we ever need to change how it
works.
2024-07-15 12:22:20 +08:00
Andrew Nicols a7f98a4509 MDL-66903 core: Add option to get core in list of components
Note: This change is backported from MDL-81063.
2024-07-15 12:22:20 +08:00
Andrew Nicols 15d78691a8 MDL-66903 core: Add helper to get component name from classname
Note: This change is backported from MDL-81063.
2024-07-15 12:22:19 +08:00
Andrew Nicols dd72df20f2 MDL-66903 testing: Helper to load fixture files 2024-07-15 12:22:17 +08:00
Andrew Nicols b8a075bed6 MDL-66903 testing: Add support for a \tests\ namespace during tests
This commit:
- introduces a \tests\ sub-namespace for use in unit tests only
- the path to this the tests/classes directory of the owning parent
- files here are excluded from unit test runs

This is agreed per policy in MDL-80855.
2024-07-15 12:21:54 +08:00
Andrew Nicols 71e0b0f26b MDL-66903 testing: Fix whitespace 2024-07-15 12:21:06 +08:00
Andrew Nicols 4cee58fa33 MDL-66903 testing: Reset CFG and component after test
This change moves the reset of global test state to the finally section
rather than doing it only if the test passes.

Previously if a test which modifies the `core_component` internals
failed, it would not reset the internal state and impact subsequent
tests.
2024-07-15 12:21:06 +08:00
Eric Merrill 024a1f04d5 MDL-82193 scorm: Don't store header with multiline AICC content 2024-07-12 15:35:42 -04:00
Paul Holden 3abaca02cc MDL-82444 core: skip environment test on optional plugin extensions. 2024-07-12 13:50:01 +01:00
Paul Holden 90fa52089e MDL-82444 filter_tidy: advertise required PHP extension. 2024-07-12 13:34:12 +01:00
Paul Holden 7b03f08342 MDL-73662 mod_quiz: fix initialization arguments to close button.
Co-authored-by: Sergio Rabellino <rabellino@di.unito.it>
2024-07-12 13:18:12 +01:00
Paul Holden e8ecb6156e MDL-81803 tool_dataprivacy: observe disabled expiration time.
A non-positive integer value should indicate "No time limit".
2024-07-12 11:05:05 +01:00
Daniel Ureña 6c0ce5f8a2 MDL-82002 Media: Video embedding from the app is styled properly. 2024-07-12 11:23:31 +02:00
Huong Nguyen 5fe898496b weekly release 4.3.5+ 2024-07-12 08:42:12 +07:00
Andrew Nicols 4a27a1707b Merge branch 'MDL-78936-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-07-11 12:34:31 +08:00
Jun Pataleta 4bfd122d5c Merge branch 'MDL-81265-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-07-11 12:08:39 +08:00
Jun Pataleta 49abebf564 MDL-81265 mod_workshop: Verify "Setup phase" heading with "should exist" 2024-07-11 11:58:53 +08:00
Laurent David 7c323f7b61 MDL-81265 mod_workshop: Fix accessibility issues
* Page title should be h2
* Contrasts in the table headers (for submission, assessment and grading)
should be 4:1 at least
2024-07-11 11:58:53 +08:00
Andrew Nicols 554ea6e8bd Merge branch 'MDL-82431-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-11 11:46:42 +08:00
Huong Nguyen f771d66f5e Merge branch 'MDL-79717-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-11 09:35:34 +07:00
Huong Nguyen 18fc1b5f5e Merge branch 'MDL-76654-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-07-11 09:19:55 +07:00
Paul Holden 0f0ed01461 MDL-82431 phpunit: correct unit test filename and classname.
Standardise the same test cases, e.g. make final, covers notation,
static data providers, namespaces, etc.

Once the tests run, a couple of them failed. They required changes
to assertions to make them pass.
2024-07-10 19:06:19 +01:00
Jun Pataleta b89e5414b5 Merge branch 'MDL-82417-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-07-10 22:16:03 +08:00
Paul Holden aaa03767c8 MDL-79717 phpunit: ensure unique data provider keys in tests.
Duplicate data provider keys were overwriting and/or duplicating
one another, leading to some cases being skipped.

Other "duplicate array key" errors were picked up by `phpcs` in
this dragnet across all tests, which have also been fixed.
2024-07-10 14:08:54 +01:00
Huong Nguyen 9bc5163ef8 Merge branch 'MDL-82308_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-07-10 14:57:43 +07:00
Huong Nguyen c8a0ac0b9d Merge branch 'MDL-68211-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-07-10 09:08:03 +07:00
Huong Nguyen d4438e6011 Merge branch 'MDL-82236-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-07-10 09:04:31 +07:00
Tim Hunt 9e1bb0d779 MDL-82401 quiz: editing modals must be removed on close 2024-07-10 08:58:37 +07:00
Sara Arjona 49b603a177 Merge branch 'MDL-81349-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-09 18:14:50 +02:00
Sara Arjona 0926c469aa Merge branch 'MDL-82360-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-09 15:30:21 +02:00
Sara Arjona c1bcf5867a Merge branch 'MDL-77834-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-09 15:22:18 +02:00
Sara Arjona 978f3d670a Merge branch 'MDL-81991-403-alt' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-07-09 13:07:52 +02:00
Sara Arjona 1f88a03ab9 Merge branch 'MDL-78388-403' of https://github.com/djarran/moodle into MOODLE_403_STABLE 2024-07-09 11:47:39 +02:00
Sara Arjona bf5569ace8 Merge branch 'MDL-66251-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-07-09 10:36:42 +02:00
Paul Holden 90734c4b83 MDL-82309 comment: preserve link text property during AJAX requests.
We really only need to update the count value that follows the link
text content, so do that rather than overwriting the entire thing.
2024-07-09 09:17:23 +01:00
Sara Arjona c71635f492 Merge branch 'MDL-80947-403' of https://github.com/stevandoMoodle/moodle into MOODLE_403_STABLE 2024-07-09 10:03:15 +02:00
Angelia Dela Cruz 71cc856e51 MDL-82236 mod_data: Behat to display DB activity entry rating 2024-07-09 14:59:59 +08:00
Sara Arjona 603c6e3717 Merge branch 'MDL-81296-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-07-09 08:50:42 +02:00
Angelia Dela Cruz 08a8a41f10 MDL-81296 mod_data: Behat test for data activity readonly availability 2024-07-09 12:18:21 +08:00
David Woloszyn 4fa51ddcff MDL-82417 admin: Clarify signoutofotherservices strings 2024-07-09 13:59:14 +10:00
Paul Holden b14cfb6d1b MDL-82328 auth_oauth2: don't load custom profile field data too early.
By prematurely loading custom profile data in the constructor, under
specific circumstances it would happen before the page was fully
initialised which meant that any attempt at applying filters when
formatting profile field data would result in thrown exception.
2024-07-08 08:56:01 +01:00
Simey Lameze 894ab9cf82 MDL-76654 behat: fixes and improvements to self assessment test 2024-07-08 11:22:19 +08:00
Angelia Dela Cruz e82d9489b6 MDL-76654 behat: Coverage for workshop self-assessment 2024-07-08 11:22:19 +08:00
Brendan Heywood 6bdf1b78b2 MDL-82171 core: Rewarm bootstrap.php after a cache purge 2024-07-08 12:53:38 +10:00
meirzamoodle eaf9f48ce8 MDL-66251 form: Hiding and disabling static elements.
Added functionality to locate static text elements within the form,
improving the ability to target and manipulate the static elements for
hiding and disabling purposes.
2024-07-08 09:17:32 +07:00
Stevani Andolo 0548230e7e MDL-80947 communication_customlink: Check before customlink update 2024-07-08 07:26:23 +08:00
Sara Arjona 3b73f08330 MDL-68211 feedback: Export percentage format
The feedback was exporting the percentage in the Analysis file using
a wrong value for the format, so instead of having only 2 decimals,
the number was not formatted.
2024-07-05 10:13:55 +02:00
Ilya Tregubov fd32ceac7c weekly release 4.3.5+ 2024-07-05 09:02:06 +08:00
Paul Holden 4e98ef312b MDL-82289 mod_feedback: correct comparison of current $course. 2024-07-04 10:28:54 +01:00
Sara Arjona 7dec802efd Merge branch 'MDL-80907-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-07-04 11:19:38 +02:00
Paul Holden e2a7ef37db MDL-82282 question: consider only editable flags in JS module. 2024-07-04 10:19:36 +01:00
Paul Holden f363d21a13 MDL-82090 completion: account for alternate gradepass form fields.
Some modules (e.g. Workshop) have "*gradepass" fields for each grade
item, which should be accounted for when trying to freeze them.
2024-07-04 10:17:41 +01:00
Huong Nguyen c9a86c636d MDL-80907 behat: Fix incorrect column selectors 2024-07-04 15:16:58 +07:00
Safat 923ebdfdef MDL-81932 communication_customlink: Fix behat tests 2024-07-04 16:39:26 +10:00
Safat 4e318cb269 MDL-81932 communication_matrix: Fix behat tests 2024-07-04 16:39:26 +10:00
Safat ca607d2ce0 MDL-81932 core_course: Fix communication provider change issue 2024-07-04 16:39:26 +10:00
Safat 8d000f1883 MDL-81932 core_communication: Fix communication provider change issue 2024-07-04 16:39:26 +10:00
Huong Nguyen 22749997d8 Merge branch 'MDL-80907-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-07-04 11:14:21 +07:00
Ilya Tregubov e19f7c0357 Merge branch 'MDL-63670-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-07-04 10:58:00 +08:00
Ilya Tregubov 16bad766e7 Merge branch 'MDL-82315-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-04 10:37:51 +08:00
Ilya Tregubov 5bb5629bb3 Merge branch 'MDL-82024-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-07-04 09:51:20 +08:00
Sara Arjona e7dc124935 Merge branch 'MDL-82100-403' of https://github.com/danghieu1407/moodle into MOODLE_403_STABLE 2024-07-03 17:14:22 +02:00
Jun Pataleta c5a33da692 Merge branch 'MDL-31192-M403_colored-box-with-pre-tag-function-generates-a-warning' of https://github.com/ziegenberg/moodle into MOODLE_403_STABLE 2024-07-03 15:13:12 +08:00
Hieu Nguyen Dang 9c41c1e66f MDL-82100 Quiz\report: Show customised question numbers 2024-07-03 13:58:31 +07:00
Sara Arjona 36cd78e14b Merge branch 'MDL-82363-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-07-03 08:23:48 +02:00
lameze bf18f9f12e NOBUG: Increase file size to avoid random failures 2024-07-03 13:40:02 +08:00
Huong Nguyen c16225e5fb MDL-82363 Calendar: Responsiveness improvement for calendar block
Hide the month name if the screen is too small
2024-07-03 11:02:45 +07:00
djarrancotleanu 92564aca0a MDL-78388 course: Copy permissions when duplicating module 2024-07-03 13:50:22 +10:00
Paul Holden 1899587ff8 MDL-82360 courseformat: remove console upload error string debugging. 2024-07-02 15:55:39 +01:00
Paul Holden 6a1277cc52 MDL-77834 mod_feedback: consistent HTML decoding of answer data.
Restores functionality from 72629ee8c0 that went missing along the way.
2024-07-01 16:22:03 +01:00
Sara Arjona 3615bec113 Merge branch 'MDL-81959-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2024-07-01 16:15:55 +02:00
Paul Holden c8c9171455 MDL-81349 group: case-sensitive name validation when editing. 2024-07-01 09:41:51 +01:00
Huong Nguyen 0e30f51806 Merge branch 'MDL-79758_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-07-01 14:25:32 +07:00
Huong Nguyen 1dad92a893 Merge branch 'MDL-79971-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-07-01 14:16:59 +07:00
Huong Nguyen be28d88b29 Merge branch 'MDL-79796_403' of https://github.com/AnupamaSarjoshi/moodle into MOODLE_403_STABLE 2024-07-01 14:10:23 +07:00
Huong Nguyen 67719360a9 Merge branch 'MDL-73091-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-07-01 14:06:05 +07:00
Amaia Anabitarte 8c5cc0d32f MDL-79971 completion: Don't assume a completed activity is viewed 2024-06-28 10:16:59 +02:00
Luca Bösch 3e6584c714 MDL-81959 qtype_multianswer: Margin between checkboxes and text 2024-06-28 07:58:46 +02:00
Paul Holden 93643512c3 MDL-82315 backup: account for null course section sequence value. 2024-06-27 23:34:55 +01:00
Sara Arjona dc6dda1726 weekly release 4.3.5+ 2024-06-27 16:36:54 +02:00
Sara Arjona 293ad7857a Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-06-27 16:36:51 +02:00
Stephan Robotta c741492c38 MDL-79758 qbank: add filter in pagination links
Contains some minor tweaks by Tim Hunt <T.J.Hunt@open.ac.uk>.
2024-06-27 09:23:06 +01:00
Huong Nguyen b47c6c290d Merge branch 'MDL-62958-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-27 11:05:23 +07:00
Huong Nguyen 05711947e6 Merge branch 'MDL-82008-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2024-06-27 10:27:15 +07:00
Jun Pataleta f4a5b5e82d Merge branch 'MDL-79809-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-06-27 11:01:22 +08:00
Andrew Nicols e3743ea066 MDL-63670 core_message: Tests should not use another testcase as base 2024-06-27 09:01:43 +08:00
Tim Hunt 5f01161095 MDL-82308 forms: set a nice default size for multi-selects
This is a backport of MDL-81515.
2024-06-26 13:26:33 +01:00
Sara Arjona 1cdcee4020 Merge branch 'MDL-80625-403' of https://github.com/ssj365/moodle into MOODLE_403_STABLE 2024-06-26 12:15:02 +02:00
Sara Arjona 6ed88f797b Merge branch 'MDL-80344-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-26 12:11:22 +02:00
Huong Nguyen 399e4ead35 MDL-81991 core: Reload accessdata for dirty users in CLI mode 2024-06-26 16:27:59 +07:00
Huong Nguyen be48e8d19b MDL-78936 editor_tiny: Disable quickbars for small target
The quickbars selection toolbar is not displayed correctly
if the target element is too small. We will wait for it
to be fixed in the future before we re-enable it in Moodle
2024-06-26 10:18:19 +07:00
Ilya Tregubov 05081cc0b6 Merge branch 'MDL-82233-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-06-26 10:24:21 +08:00
Ilya Tregubov acfb658796 Merge branch 'MDL-82167-403' of https://github.com/ferranrecio/moodle into MOODLE_403_STABLE 2024-06-26 10:20:19 +08:00
Sara Arjona e099ffcf76 Merge branch 'MDL-79231-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-06-25 16:13:08 +02:00
ferranrecio 0f405fd48e MDL-82167 core: fix reactive debug panel 2024-06-25 16:00:59 +02:00
Huong Nguyen 71046dbd93 Merge branch 'MDL-82277-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-25 13:54:12 +07:00
Wolfgang Reichert f860bf0a87 MDL-73091 core_badges: Avoid undefined variable notice in review
* Fix review method for award_criteria_courseset when courseset is empty
* Add unit tests for coverage of the award_criteria_courseset class

@co-authored jz-reichert@web.de
2024-06-25 08:47:28 +02:00
Huong Nguyen 41874ea307 Merge branch 'MDL-82200_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-06-25 09:14:01 +07:00
Huong Nguyen fcd49e4377 Merge branch 'MDL-80061-403' of https://github.com/ssj365/moodle into MOODLE_403_STABLE 2024-06-25 09:07:46 +07:00
Paul Holden f70abdc6f3 MDL-82024 format_topics: toggle un/highlight section icon correctly. 2024-06-24 19:48:05 +01:00
Paul Holden df5a0e6447 MDL-82277 mod_h5pactivity: less fragile error Behat step assertion.
Avoids frequent failures related to iframe resizing/timing.
2024-06-24 15:56:07 +01:00
Paul Holden c61ed0b47c MDL-62958 admin: ensure uploaded plugin directory structure present.
Including any empty directories, which would cause validation to
subsequently fail when they were skipped.

Co-authored-by: Leon Stringer <leon.stringer@ntlworld.com>
2024-06-24 12:47:40 +01:00
Huong Nguyen 524779dc8c MDL-79809 environment: Moodle 4.5 requirements 2024-06-24 09:37:24 +07:00
Huong Nguyen 10fbeaa3ed MDL-79809 environment: Add missing Moodle 4.4 requirements 2024-06-24 09:37:24 +07:00
Huong Nguyen bbcc3531e1 MDL-79809 environment: Add recommended custom check
Add support for custom environment checks to have a recommended
option in addition to required an optional.
2024-06-24 09:37:23 +07:00
Rossco Hellmans 8854212b09 MDL-68676 mod_assign: check accessallgroups in can_edit_submission()
In can_edit_submission() when the assign group mode is SEPARATEGROUPS
check if the user has the moodle/site:accessallgroups capability before
checking if they are a shared groupmember. Due to the teamsubmission
setting students might not be in a group but can still submit, which
means they are not returned in get_shared_group_members().
2024-06-22 13:42:34 +10:00
AMOS bot 4cf33f06ba Automatically generated installer lang files 2024-06-22 00:14:06 +00:00
Daniel Ziegenberg 93ca582a25 MDL-31192 core_webservice: do not render div inside span
`<span>` tags only permit "phrasing content" but `<div>` (and also the
`<ins>` tag) are flow content. So, switching to div all along.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-06-21 16:33:58 +02:00
Luca Bösch 9eaecc9336 MDL-82008 backup: Format 'Continue' and 'Cancel' button to have a margin 2024-06-21 09:37:06 +02:00
Martin Gauk ebac092c6e MDL-80345 core_lock: deal with hash collisions in postgres_lock_factory 2024-06-20 17:34:00 +02:00
Sara Arjona 91811a4bbc weekly release 4.3.5+ 2024-06-20 16:31:03 +02:00
Sara Arjona aea1811fdb Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-06-20 16:31:00 +02:00
David Woloszyn 7962b734aa MDL-79231 core_theme: Fix Tiny menu in fullscreen mode modals 2024-06-20 14:32:44 +10:00
David Woloszyn d4376c28f1 MDL-79231 mod_assign: Fix Tiny menu in fullscreen mode 2024-06-20 14:32:44 +10:00
Huong Nguyen e752a63a54 Merge branch 'MDL-78773-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-20 11:06:43 +07:00
Jun Pataleta 5a2d39ccb3 Merge branch 'MDL-82246-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-06-20 11:41:41 +08:00
Huong Nguyen eded187633 Merge branch 'MDL-82202-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-20 10:21:42 +07:00
Andrew Nicols 1407ac2079 MDL-82246 tiny_recordrtc: Correct string name for insecure alert title 2024-06-20 10:58:34 +08:00
Huong Nguyen e0836aa36d Merge branch 'MDL-81761-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-20 09:55:06 +07:00
Huong Nguyen 495620cd22 Merge branch 'MDL-82169-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-20 09:20:06 +07:00
Huong Nguyen 73ba9560ea Merge branch 'MDL-77665-403-behat-fix' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-06-20 08:54:52 +07:00
lameze cce376b29b MDL-77665 behat: use different steps to delete user 2024-06-20 09:11:22 +08:00
AMOS bot 5db3e2bae6 Automatically generated installer lang files 2024-06-20 00:16:21 +00:00
Sara Arjona 490dfa0b21 Merge branch 'MDL-81857-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-19 15:53:08 +02:00
Sara Arjona b905dc4e0a Merge branch 'MDL-81730-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-19 13:31:44 +02:00
meirzamoodle b25713d6fe MDL-75864 cache: Change key prefix in cache_cron_task
Currently, the cache_cron_task is set to look for 'sess_' as a key prefix,
which is not used in any code. As a result, sessions that have exceeded the timeout are never deleted.

The proposed patch involves changing the prefix to the LASTACCESS key prefix and
fixing the return value of get_many in the Redis cache so that it can return the required keys.

Co-authored-by: Renaud Lemaire <rlemaire@cblue.be>
2024-06-19 13:43:27 +07:00
Sara Arjona 15de651960 Merge branch 'MDL-77665-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-06-19 07:35:30 +02:00
Huong Nguyen b167c9cc11 Merge branch 'MDL-81249-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-06-19 09:18:50 +07:00
Andrew Nicols b263eac8ca Merge branch 'MDL-81644-403-new' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-06-18 23:26:10 +08:00
Andrew Nicols f7836e1c04 Merge branch 'MDL-81431-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-06-18 22:51:06 +08:00
Andrew Nicols b3716d7a25 Merge branch 'MDL-81739-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-06-18 22:39:31 +08:00
Sara Arjona 2056d3d629 MDL-82233 badges: Display awarded users only when it applies
The message with the number of uses who have awarded a badge
were displayed always (even when the badge was disabled).
2024-06-18 16:06:41 +02:00
Angelia Dela Cruz 2bae7d4dc2 MDL-81249 gradingform: Behat test that grades are retained 2024-06-18 18:32:29 +08:00
Angelia Dela Cruz 166de7ade5 MDL-81249 gradingform: Enhance Behat test for deleting marking guide 2024-06-18 17:46:38 +08:00
Huong Nguyen d55c386e8e Merge branch 'MDL-82148_403' of https://github.com/stronk7/moodle into MOODLE_403_STABLE 2024-06-18 16:27:58 +07:00
Shamim Rezaie 59022b4e06 Merge branch 'mdl-78080-403-split' of https://github.com/james-cnz/moodle into MOODLE_403_STABLE 2024-06-18 16:06:34 +10:00
lameze 3aa5d3040b MDL-81431 behat: set grade item checkboxes one at the time 2024-06-18 13:58:29 +08:00
Paul Holden da4e0701ee MDL-82202 course: correct last access report entity column callback.
Ensure it works when being aggregated.
2024-06-17 14:27:15 +01:00
Laurent David dd27138387 MDL-77665 mod_h5pactivity: Improve generator package upload
* Allow the specification of the username in order to set the owner
of the H5P file package when creating a new H5P instance.
2024-06-17 06:31:59 +02:00
Laurent David a843986e1d MDL-77665 core_h5p: Allow deployment if user has been deleted
* If user has been deleted we consider that the content can be deployed
by a user who can deploy other packages
* Add behat test to cover for this use case
* Fix the content bank generator as it was failing to upload the content
as the given user
2024-06-17 06:31:59 +02:00
James C 21c542e3a8 MDL-78080 course: Duplicate section: Duplicate by section id, not num 2024-06-17 12:25:16 +12:00
James C 20e3829749 MDL-78080 course: Duplicate section: No duplicate option for section 0 2024-06-17 12:25:16 +12:00
James C c11eab4121 MDL-78080 course: Duplicate section: Don't copy deleted activities 2024-06-17 12:25:16 +12:00
James C 181f8e7813 MDL-78080 course: Duplicate section: Copy section summary files 2024-06-17 12:24:42 +12:00
James C 1deaaf1964 MDL-78080 course: Duplicate section: Copy custom section options 2024-06-17 12:19:31 +12:00
James C 2e869d5e8b MDL-78080 course: Duplicate section: Fix course_update_section params 2024-06-17 12:19:01 +12:00
Eloy Lafuente (stronk7) e812185a8e MDL-82148 phpunit: Remove all cases of multiple @coversDefaultClass
Only one by class is allowed (to be used as shortcut exclusively).
2024-06-14 16:05:26 +02:00
Tim Hunt eb090d8f10 MDL-82200 inplace editable: fix background of the help text 2024-06-14 13:23:21 +01:00
Anupama Sarjoshi 35f015b33d MDL-79796 quiz: Preview icon should be visible in question bank pop-up 2024-06-14 11:46:56 +01:00
Ilya Tregubov a585bda18f weekly release 4.3.5+ 2024-06-14 08:57:07 +08:00
Eric Merrill 0d0a3381c3 MDL-82192 scorm: Correct field names for AICC ExitAu 2024-06-13 18:38:57 -04:00
Jun Pataleta 3b97ae1814 Merge branch 'MDL-81287-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-13 12:03:13 +08:00
Jun Pataleta 9c6571471f Merge branch 'MDL-82178_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-06-13 12:00:43 +08:00
Huong Nguyen cd7f4b6126 Merge branch 'MDL-81577-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-13 10:56:15 +07:00
Huong Nguyen 1da88d59c8 Merge branch 'MDL-82184-dbcollation-comment-403' of https://github.com/leonstr/moodle into MOODLE_403_STABLE 2024-06-13 10:20:05 +07:00
Huong Nguyen 18b872dea6 Merge branch 'MDL-81781-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-13 10:13:19 +07:00
Huong Nguyen cf54f312c7 Merge branch 'MDL-69514-403' of https://github.com/pedrojordao/moodle into MOODLE_403_STABLE 2024-06-13 09:54:32 +07:00
Huong Nguyen 57d3bddedf Merge branch 'MDL-82155-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-13 09:03:36 +07:00
Shamiso.Jaravaza 55b56767d6 MDL-80061 mod_bigbluebuttonbn: Change filter field
* Change dismissed recording time filter from timecreated to timemodified
2024-06-12 13:51:26 -06:00
Leon Stringer 5f9d59a527 MDL-82184 database: Revise dbcollation comment 2024-06-12 18:16:37 +01:00
Tim Hunt fbd10311b3 MDL-82178 quiz graded notification: fix capability check
Also improve the scheduled task logging
2024-06-12 12:41:24 +01:00
Huong Nguyen 1780506eb3 Merge branch 'MDL-81332-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-06-12 13:16:04 +07:00
Jun Pataleta f8f8dee642 Merge branch 'MDL-81355-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-06-12 10:38:01 +08:00
Michael Aherne 332a467776 MDL-81355 phpdoc: Fix incorrect phpdocs on block_base. 2024-06-12 10:32:51 +08:00
Paul Holden ecb70f2924 MDL-82169 user: remove access to non-existent $options array. 2024-06-11 21:26:07 +01:00
Ilya Tregubov a70030127e Merge branch 'MDL-81510-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-06-11 19:00:02 +08:00
Laurent David 937c1200a3 MDL-81510 core_courseformat: Fix activity highlight in index
* When directly accessing the module with the #module-xxx anchor
we should highlight the module as the current page item.
2024-06-11 12:48:58 +02:00
Huong Nguyen 1ce27d703f MDL-68540 tool_usertours: Remove hideif workaround
We don't need to use the group element to use hideif
for text editor element anymore
2024-06-11 15:33:43 +07:00
Huong Nguyen b21b6214e1 Merge branch 'MDL-68540-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-06-11 15:33:17 +07:00
Angelia Dela Cruz 7d94489bcb MDL-81332 core_course: Behat test for grade and activity reports display 2024-06-11 16:30:25 +08:00
Jun Pataleta eb851bbb53 Merge branch 'MDL-81428-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-06-11 13:41:41 +08:00
David Woloszyn 945ae4127d MDL-68540 form: Correctly target editors in node tree
This fix solves the hideIf and disabledIf form conditions that were not
correctly targetting the editor due to a name attribute mismatch.
2024-06-11 13:06:24 +10:00
Paul Holden 8ff873452f MDL-82155 core: define/correct third party library names. 2024-06-10 19:53:14 +01:00
Shamiso.Jaravaza 83fefe7f72 MDL-80625 mod_bigbluebuttonbn: Fix param name 2024-06-10 10:12:12 -06:00
Sara Arjona 9a47d8f32c Merge branch 'MDL-81949-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-10 16:46:43 +02:00
Sara Arjona 5a52d16d53 Merge branch 'MDL-81678-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-10 16:39:22 +02:00
Pedro Jordao 1ecaf21c7c MDL-69514 Core: Close popover when modal is closed
Currently in Firefox, if we opened a popover that was inside a modal
and closed the modal by pressing the ESC key, the popover remained on
the screen. With this change, we will ensure that popovers are closed
when the modal is closed.
2024-06-10 10:49:06 -03:00
Sara Arjona ebfcdc6563 Merge branch 'MDL-70972-MOODLE_403_STABLE' of https://github.com/PhMemmel/moodle into MOODLE_403_STABLE 2024-06-10 12:33:32 +02:00
Huong Nguyen 442a0b4edd MDL-81428 theme_boost: Match .disabled opacity with .text-muted 2024-06-10 17:10:18 +07:00
Huong Nguyen 49bab9140b MDL-81428 core: Display the correct status for the contact request 2024-06-10 17:10:18 +07:00
Ilya Tregubov cb6096faca Merge branch 'MDL-81510-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-06-10 13:32:17 +08:00
Paul Holden e7381b48f2 MDL-81949 tool_replace: prompt user for unrecognised CLI parameters. 2024-06-07 11:41:08 +01:00
Paul Holden ea52af0c77 MDL-81678 enrol: don't escape course name in welcome message. 2024-06-07 11:39:48 +01:00
Paul Holden 612ac0766a MDL-78773 report_stats: improve display of mode selection element.
Make use of existing theme selectors for navigation elements to style.
2024-06-07 11:34:31 +01:00
Paul Holden 2a72cf032d MDL-81781 report_log: escape description selectively on display/export.
Per cd85e090f3 all content was escaped, however we should only do that
when displaying the value in browser or exporting to file format which
supports HTML.
2024-06-07 11:31:02 +01:00
Paul Holden daebafdb2d MDL-81781 dataformat: public helper method to get writer instance. 2024-06-07 11:31:02 +01:00
Laurent David 4ab6a8552f MDL-81510 core_courseformat: Do not reset the scroll position
* Revert the change made in MDL-75762 which would wait and change
  course index selection depending on the actual scroll position
2024-06-07 09:40:21 +02:00
Laurent David c6f9ae9b4f MDL-81510 core_courseformat: Expand course section to show activity
* When a course activity is specified via an anchor in the URL we
should expand the course content containing the activity
* When we point to a specific activity via an anchor in the URL we should
expand the course index (section) surrounding the actitity.
2024-06-07 09:40:21 +02:00
Meirza 27dbdbe702 MDL-81644 calendar: The behaviour of event dates in the block calendar
There is a difference in the behaviour of the calendar block when it is on the calendar page and when it is not.
On the calendar page, when the user clicks on the date or link next/previous month or day name in the calendar block,
it will have the effect of changing the URL, which should not happen.

The patch also includes hiding popover after the user clicks the day number. When the user clicks on the date or
is focused on the date and then presses enter on the keyboard, the popover does not automatically close.
To fix this, I added an event type, "click", to be attached to the hidePopover function and added conditioning to
the target element when there was a "click" event.

An additional step was added to the Behat calendar for the click event to ease the testing process.

For the popover, I set the "animation" to false to avoid the random Behat failure caused by the slow animation.
2024-06-07 14:31:10 +07:00
Andrew Nicols 7dcfaa79f7 Moodle release 4.3.5 2024-06-07 14:55:47 +08:00
Jun Pataleta 39b9f6561c weekly release 4.3.4+ 2024-06-06 22:30:38 +08:00
Jun Pataleta 32509a3496 NOBUG: Fixed file access permissions 2024-06-06 22:30:38 +08:00
Jun Pataleta fb51dda956 Merge branch 'MDL-81750-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-06-06 22:20:02 +08:00
Jun Pataleta cd50ce807f Merge branch 'MDL-82045-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-06-06 22:20:02 +08:00
Huong Nguyen e2a453e618 Merge branch 'MDL-81146_disable_buttons-403' of https://github.com/leonstr/moodle into MOODLE_403_STABLE 2024-06-06 22:20:02 +08:00
Huong Nguyen 102dd799ab Merge branch 'MDL-81749-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-06-06 22:20:02 +08:00
Huong Nguyen 8a41641832 Merge branch 'MDL-81989-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-06-06 22:20:02 +08:00
meirzamoodle e1dab5f381 MDL-81890 assign: confirm_sesskey fixed in view_fix_rescaled_null_grades 2024-06-06 22:20:01 +08:00
meirzamoodle da8e8cee6f MDL-81890 enrol_lti: Fix sesskey checks 2024-06-06 22:20:01 +08:00
meirzamoodle 31ced08511 MDL-81890 course: Fix sesskey checks 2024-06-06 22:20:01 +08:00
meirzamoodle f2807dee5b MDL-81890 tool_moodlenet: Fix sesskey checks 2024-06-06 22:20:01 +08:00
Jun Pataleta 2ee158c06d MDL-81631 backup: Simplify logic using null coalescing operator 2024-06-06 22:20:01 +08:00
Jun Pataleta 9b065dff30 Merge branch 'MDL-81631_403' of https://github.com/santoshndev/moodle into MOODLE_403_STABLE 2024-06-06 22:20:00 +08:00
Jun Pataleta 279f6af7dc Merge branch 'MDL-78198-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-06-06 22:20:00 +08:00
Huong Nguyen 6fca520863 Merge branch 'MDL-81865-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2024-06-06 22:20:00 +08:00
Huong Nguyen c5e4d936d1 Merge branch 'MDL-81397-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-06 22:20:00 +08:00
Paul Holden 6c0645ca29 MDL-81778 mod_bigbluebuttonbn: access checks when getting meeting URL. 2024-06-06 22:20:00 +08:00
Stevani Andolo df42e007ce MDL-81412 calendar: Sanitise calendar event names 2024-06-06 22:19:00 +08:00
Paul Holden 7c7ebb074e MDL-81857 user: don't check whether address is an identity field.
It can never be selected as one, so the previous comparison could
never pass.
2024-06-06 08:58:49 +01:00
David Woloszyn 5446cc3dcd MDL-81739 tiny_noautolink: Remove URL checking when preventing auto-link 2024-06-06 15:05:05 +10:00
Andrew Nicols 870007bfaf MDL-82045 course: Destroy copy course modal instead of hiding it 2024-06-06 10:04:42 +08:00
Paul Holden f537f9c067 MDL-80344 calendar: correct no subscriptions language string use.
Ensure expected parameters are present; avoid string concatenation.
2024-06-05 15:52:23 +01:00
Amaia Anabitarte 49ec843b18 MDL-81749 core_completion: Let custom rules to return failed state 2024-06-05 15:55:49 +02:00
lameze 272c3046e3 MDL-81989 install: remove unnecessary closing div tags 2024-06-05 14:05:22 +08:00
Cameron Ball 0df3c5837a MDL-81774 curl: Strip auth headers when redirecting to different host 2024-06-05 02:34:18 +00:00
Jun Pataleta 359adfe261 Merge branch 'MDL-81982-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-06-05 10:29:04 +08:00
David Mudrák d14d574b47 MDL-81982 lang: Use fixed strings in tests, too 2024-06-05 10:24:38 +08:00
Helen Foster edf57cb689 MDL-81982 lang: Import fixed English strings (en_fix) 2024-06-05 10:24:37 +08:00
Huong Nguyen 545e9f5753 Merge branch 'MDL-81970-plagiarism_upgrade_txt-403' of https://github.com/leonstr/moodle into MOODLE_403_STABLE 2024-06-05 09:14:14 +07:00
Huong Nguyen e6a7da9d5c Merge branch 'MDL-81751-MOODLE_403_STABLE' of https://github.com/durzo/moodle into MOODLE_403_STABLE 2024-06-05 08:56:31 +07:00
David Woloszyn 5e19ce7907 MDL-81750 form: Add selector to match filemanager in group 2024-06-05 09:35:07 +10:00
Paul Holden af0f61f9b1 MDL-81397 courseformat: define section editing capabilities.
This ensures consistency for current page instance, when rendering
content in response to fragment AJAX requests.
2024-06-04 09:00:22 +01:00
Philipp Memmel 8c7892ceff MDL-70972 format_singleactivity: Apply new behavior to behat test 2024-06-04 06:36:53 +00:00
Philipp Memmel 966f3548ae MDL-70972 format_singleactivity: Show activities when creating course
Co-authored-by: Laurent David <lmedavid@gmail.com>
2024-06-04 06:36:52 +00:00
Huong Nguyen 4d5d51ced5 Merge branch 'MDL-81936-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-04 13:18:31 +07:00
Huong Nguyen 62ccc19a87 Merge branch 'MDL-81955-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-04 10:34:02 +07:00
Andrew Nicols d6bd786c47 Merge branch 'MDL-80208-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-04 11:07:45 +08:00
Juan Leyva 1aea4a1528 MDL-80959 tool_mobile: Use different user keys for QR and auto login 2024-06-04 10:33:50 +08:00
Andrew Nicols 6d7a644b80 Merge branch 'MDL-82047-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-06-04 10:29:34 +08:00
Huong Nguyen 7ce06b0700 Merge branch 'MDL-81544-403' of https://github.com/rezaies/moodle into MOODLE_403_STABLE 2024-06-03 12:06:39 +07:00
Huong Nguyen 6300fc72ae Merge branch 'MDL-73735-M403_duplicate-line-course-rest-php' of https://github.com/ziegenberg/moodle into MOODLE_403_STABLE 2024-06-03 11:53:49 +07:00
Sara Arjona 543c2efd9f Merge branch 'MDL-81850-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-31 10:44:47 +02:00
Ilya Tregubov 8f19f0b27f Merge branch 'MDL-77685-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-31 09:05:05 +08:00
Paul Holden 9dbfe16744 MDL-81577 mod: correct arguments when formatting text for RSS. 2024-05-30 19:17:32 +01:00
Paul Holden 3efc749c34 MDL-82047 analytics: remove 32-bit integer checks for maximum time. 2024-05-30 19:00:33 +01:00
Sara Arjona 11a2641a13 weekly release 4.3.4+ 2024-05-30 17:00:31 +02:00
Paul Holden 40b46631a3 MDL-81850 availability_group: correctly retrieve groups for given user. 2024-05-30 10:15:41 +01:00
Huong Nguyen 5b39c4923a Merge branch 'MDL-80973-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-05-30 10:38:26 +07:00
Andrew Nicols 9459034a58 MDL-68262 assignfeedback_editpdf: Add setAccessible calls back 2024-05-30 09:55:59 +07:00
Andrew Nicols f86b3aaf4d MDL-68262 assignfeedback_editpdf: Correct args to make_request_directory 2024-05-30 09:55:56 +07:00
Sara Arjona 7dbf54ddad Merge branch 'MDL-81983_403' of https://github.com/lostrogit/moodle into MOODLE_403_STABLE 2024-05-29 14:07:40 +02:00
Sara Arjona b4705378c3 Merge branch 'MDL-81901-progress-cli-MOODLE_403_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_403_STABLE 2024-05-29 13:32:37 +02:00
Sara Arjona 1388491cfc Merge branch 'MDL-80911-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-05-29 13:19:29 +02:00
Andrew Nicols 1f2f8d511f MDL-68262 assignfeedback_editpdf: Update unit test for latest coding style 2024-05-29 16:21:46 +08:00
Andrew Nicols ab312b111a MDL-68262 assignfeedback_editpdf: Switch to request dirs 2024-05-29 16:20:02 +08:00
Andrew Nicols 29ac365f5f Merge branch 'MDL-80831-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-05-29 14:27:38 +08:00
Jun Pataleta 6282c6a22c MDL-80831 theme: Set a vertical padding for footer links
This is to increase the target size of links within the footer and
meet WCAG 2.2 Level AA Success Criterion 2.5.8
2024-05-29 10:42:43 +08:00
Jun Pataleta 3c61ca4e6a MDL-80831 gradereport_grader: Fix collapsed columns menu accessibility
- Increase the clickable size of the checkbox fields in the collapsed
columns menu, so they won't fail WCAG 2.2 SC 2.5.8 Target Size
(Level AA). This is done by moving the checkbox within the label element
which also fixes the issue of associating the label with the checkbox
instead of labelling the checkbox via `aria-labelledby`.
2024-05-29 10:40:40 +08:00
Jun Pataleta 436761ca31 MDL-80831 gradereport_grader: Increase size of profile field links
- Increase the clickable size of user profile field links on the
grader report table headings so they won't fail WCAG 2.2 SC 2.5.8 Target
Size (Level AA).
2024-05-29 10:40:40 +08:00
Jun Pataleta 6d7cfe1504 MDL-80831 gradereport_grader: Remove unnecessary setting of aria-hidden
- If an element is being hidden visually with `display: none;` (e.g. by
using the class `.d-none`), there's no need to set `aria-hidden` because
it is already hidden from the accessibility tree.
- Setting `aria-hidden=false` is also not recommended and it's better to
remove the `aria-hidden` attribute instead of setting it to false.
2024-05-29 10:40:40 +08:00
Brendan Heywood 2fd9720cfe MDL-81901 core: Fix progress bar bug in cli in non tty mode 2024-05-29 11:14:25 +10:00
Andrew Nicols 1703cff134 Merge branch 'MDL-82015-403' of https://github.com/ak4t0sh/moodle into MOODLE_403_STABLE 2024-05-29 09:11:35 +08:00
Andrew Nicols ebf5f7bc78 MDL-81733 mod_lesson: Coding style fixes 2024-05-28 23:46:17 +08:00
Andrew Nicols 7f29f3a5b5 Merge branch 'MDL-81733-403' of https://github.com/izendegi/moodle into MOODLE_403_STABLE 2024-05-28 23:46:14 +08:00
Arnaud Trouvé 8a8e0e0b7c MDL-82015 mod_bigbluebuttonbn: Fix date formatting during import 2024-05-28 15:24:07 +02:00
Andrew Nicols fa23a0ced1 Merge branch 'MDL-82004-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-28 14:32:03 +08:00
Andrew Nicols 5dec64adfc Merge branch 'MDL-81822-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-28 14:10:15 +08:00
Andrew Nicols 0e0d8d893b Merge branch 'MDL-81870-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-28 14:02:19 +08:00
Huong Nguyen 5857650a50 Merge branch 'MDL-78768-M403_import-multiple-new-grade-items' of https://github.com/ziegenberg/moodle into MOODLE_403_STABLE 2024-05-28 12:32:49 +07:00
Andrew Nicols 474320b375 MDL-81897 tool_mobile: Coding style fix 2024-05-28 11:43:54 +08:00
Andrew Nicols 96bee2a78d Merge branch 'MDL-81897-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-05-28 11:43:49 +08:00
Andrew Nicols bf6056a010 Merge branch 'MDL-81698_403' of https://github.com/stronk7/moodle into MOODLE_403_STABLE 2024-05-28 10:13:18 +08:00
Huong Nguyen cb64801f88 Merge branch 'MDL-81915_403' of https://github.com/AnupamaSarjoshi/moodle into MOODLE_403_STABLE 2024-05-28 08:58:01 +07:00
Andrew Nicols f0dcaaa18a Merge branch 'MDL-78942-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-28 09:18:08 +08:00
Juan Leyva 770947dbe2 MDL-80973 tool_policy: Fix edge case 2024-05-27 17:20:29 +02:00
Eloy Lafuente (stronk7) f5c76d8817 MDL-81698 phpunit: Convert some skipped tests into useful ones
After some tests, it seems that we can safely cover
phpunit_util::reset_all_data() executing it within
own basic_test self tests.

That way we can confirm that the reset code is doing its job
and detecting unexpected changes at various levels (database,
globals, ...).

Note that, in order to catch the E_USER_WARNINGS, for PHPUnit 9.6
and up, we have to convert them to exceptions, because the notice/
warning/error expectations have been deprecated and will be removed
in PHPUnit 10. So we are using a trick, already used also by
advanced_test. And, no matter that we are repeating the trick
a few times, that's ok in order to have all its uses controlled.
2024-05-25 17:20:02 +02:00
Eloy Lafuente (stronk7) f67531d9ac MDL-81698 phpunit: Apply various fixes towards 1by1 execution
The changes here are heterogeneous:
- Include stuff that is not available (other test has included it).
  Sometimes local to a unit test, others in setupBeforeClass() or
  globally, ... depends on every case.
- Rename some tests (namespaces, test name, ...) towards getting it
  running.
- Amend small bits here and there.

Important note: I've left any "cosmetic" warning out from the
changes, only a few errors (like long array syntax) have been fixed.
2024-05-25 17:20:02 +02:00
Eloy Lafuente (stronk7) c8784d1072 MDL-81698 phpunit: Uncomment some tests and make them skipped
There are a few tests in core that are commented since the
beginning. That's not useful at all, so with this commit we
are un-commenting them instead.

Note that this is an initial step to have them back with skipped
outcome. Later in this issue we'll decide about to keep them or
completely remove them (each test can have a different outcome).
2024-05-25 17:20:02 +02:00
Eloy Lafuente (stronk7) f7be5f796f MDL-81698 phpunit: New workflow to run tests 1by1 @ GitHub
This workflow just finds all the individual
tests available in core (all the test_ methods
in _test.php file) and runs them one by one,
with a total isolation, because each one is
executed by a different PHPUnit invocation..

Any test ending with error, will be reported
as part of the output.

Note that we are not using PHPUnit's own
isolation here, just running them one by one.
2024-05-25 17:20:02 +02:00
Anupama Sarjoshi fa18bff175 MDL-81915 admin: Fix test_admin_output_new_settings_by_page unit test 2024-05-24 11:19:55 +01:00
Iñigo Zendegi 12e75fda82 MDL-81733 lesson: Support filters on lesson activity link 2024-05-24 09:43:50 +02:00
Luca Bösch 18ee82e7e3 MDL-81865 mod_quiz: Display modal for 'Add random question' as mform.
This is a backport of MDL-81713.
2024-05-24 08:20:52 +02:00
Ilya Tregubov 130165c8cc weekly release 4.3.4+ 2024-05-24 10:52:05 +08:00
Andrew Nicols 20ae3b2daf MDL-78198 file: Stop sending the Accept-Charset header in curl
See notes on:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset

Warning: Do not use this header. Browsers omit this header and servers
should ignore it.

The Accept-Charset request HTTP header was a header that advertised a
client's supported character encodings. It is no longer widely used.

UTF-8 is well-supported and the overwhelmingly preferred choice for
character encoding. To guarantee better privacy through less
configuration-based entropy, all browsers omit the Accept-Charset
header.
2024-05-23 22:18:18 +08:00
Paul Holden 2d4a83d661 MDL-82004 assignsubmission_onlinetext: no concatenation in lang strings. 2024-05-23 13:08:36 +01:00
Paul Holden c62aa880a2 MDL-81870 core: re-factor duplicate plugin savepoint implementations. 2024-05-23 09:09:51 +01:00
Paul Holden f113a68fdc MDL-81870 core: validate component during upgrade task savepoint. 2024-05-23 09:04:36 +01:00
Huong Nguyen bb70f3da81 Merge branch 'MDL-81407_403' of https://github.com/AnupamaSarjoshi/moodle into MOODLE_403_STABLE 2024-05-23 10:39:06 +07:00
Huong Nguyen 0e96139202 Merge branch 'MDL-81992_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-05-23 09:48:35 +07:00
Huong Nguyen a06e3076f0 Merge branch 'MDL-81862-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-23 08:48:14 +07:00
Tim Hunt 0b06955645 MDL-81992 question bank: disable create question button until ready
Previously, you could click the button before it was ready, and that
just led to an error, which was very silly usability.
2024-05-22 16:26:42 +01:00
Daniel Ziegenberg af0f43320b MDL-78768 grade: fix import multiple new grade items
Prior to this change, when importing grades from .csv (or another
method) and you choose to map the grades to a 'New grade item', you get
the following error message:
```
"Mapping collision detected - two fields maps to the same grade item
new."
```
A workaround existed that required users to import one column at a time,
which was cumbersome.

This change fixes importing multiple new grade items and adds a behat
test.

Co-authored-by: hehe009 <max_kan@hotmail.com>
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-05-22 12:21:58 +02:00
Paul Holden 6919b314c7 MDL-80208 cachestore_redis: ensure empty set many with TTL don't throw. 2024-05-21 22:36:52 +01:00
Santosh Nagargoje 0d9c05a23a MDL-81631 backup: Added null parameter fix 2024-05-21 17:02:43 +05:30
Daniel Ziegenberg 816460d911 MDL-73735 course: remove duplicate line of code
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Co-authored-by: Davo Smith <davo.smith@synergy-learning.com>
2024-05-21 13:30:53 +02:00
Carlos Castillo 904c8f5e54 MDL-81983 admin: Remove double capability check 2024-05-21 12:42:37 +02:00
Huong Nguyen bf3c2113d2 Merge branch 'MDL-76765-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2024-05-21 17:30:41 +07:00
Huong Nguyen af7b090803 Merge branch 'MDL-81538-403' of https://github.com/rezaies/moodle into MOODLE_403_STABLE 2024-05-21 16:32:09 +07:00
Paul Holden e0e193c360 MDL-81862 mod_assign: add activity field files for backup/restore. 2024-05-21 09:06:04 +01:00
Ilya Tregubov bf625d19e8 Merge branch 'MDL-81318-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-21 12:50:36 +08:00
Huong Nguyen 56f4964779 Merge branch 'MDL-81948-403' of https://github.com/ferranrecio/moodle into MOODLE_403_STABLE 2024-05-21 10:03:31 +07:00
Huong Nguyen d74e862792 Merge branch 'MDL-81904-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-21 09:44:02 +07:00
Huong Nguyen 2292fd441b Merge branch 'MDL-80583-403' of https://github.com/stevandoMoodle/moodle into MOODLE_403_STABLE 2024-05-21 09:24:53 +07:00
Luca Bösch 492b6c7776 MDL-76765 qtype_ddmarker: Show multiple tries options correctly. 2024-05-20 22:13:37 +02:00
Luca Bösch e7b99b1ee6 MDL-76765 question: Show multiple tries options correctly. 2024-05-20 22:13:37 +02:00
Paul Holden d5be854a11 MDL-81730 assignsubmission_file: deterministic submission file order. 2024-05-20 20:16:24 +01:00
Paul Holden ac3a8672f5 MDL-81822 tool_licensemanager: slightly relax license shortname type.
The "*-4.0" license versions could not be managed currently.
2024-05-20 17:44:52 +01:00
Paul Holden 627fe4cfe8 MDL-81761 gradingform_guide: remove duplicate click of frequent comment. 2024-05-20 17:40:56 +01:00
Leon Stringer 3243f8a1b8 MDL-81970 plagiarism: Callbacks wrong way round 2024-05-20 11:03:30 +01:00
Paul Holden a4bd295553 MDL-81904 mod_feedback: show export questions only if any present. 2024-05-20 09:27:35 +01:00
Stevani Andolo 46062ee69e MDL-80583 communication_matrix: Ignore unreachable matrix server 2024-05-20 15:11:44 +08:00
Huong Nguyen 54f8631acd MDL-80911 Course: Fix missing required files 2024-05-20 10:08:11 +07:00
Anupama Sarjoshi 03b6d6313b MDL-81407 qbank_columnsortorder: Fix error displaying hiddencols
When the question custom fields were deleted, if there were any
hidden columns in qbank Column sort order referring those fields they
were throwing 'Custom field does not exist' exception. Changes done to
ignore such fields and display valid hiddencols, as these references
were breaking the qbank Column sort order and Question bank pages.
2024-05-19 08:55:47 +01:00
Paul Holden b77e8679cf MDL-81955 assignfeedback_editpdf: ensure ghostscript present in tests. 2024-05-17 10:26:17 +01:00
ferranrecio bff27f92b7 MDL-81948 theme: fix fallback layout logic
Finding the page layout fallback was trying to get a default layout from
the ancient theme called "base". This default theme do not exists
anymore and defining a wrong layout in a theme is a code mistake that
should not be bypassed.
2024-05-17 10:43:45 +02:00
Paul Holden cb6a519667 MDL-81936 editor_tiny: handle default filepicker/draftitem config.
If they aren't passed in editor options config, ensure they still
observe the registered option processor (type) for each.
2024-05-16 18:49:54 +01:00
Jordan Tomkinson 646882d626 MDL-81751 ddl: new reserved keywords in Aurora MySQL database engine 2024-05-16 13:41:28 +01:00
Huong Nguyen 7438fe2289 weekly release 4.3.4+ 2024-05-16 18:25:28 +07:00
Huong Nguyen 879c31e610 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-05-16 18:25:27 +07:00
Huong Nguyen ce98dc4b62 Merge branch 'MDL-81543-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-16 09:39:11 +07:00
Huong Nguyen 86e2201816 Merge branch 'MDL-79838-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-05-16 09:22:13 +07:00
Paul Holden 88ea564e66 MDL-81287 mod_forum: observe default discussion paging value. 2024-05-15 13:23:23 +01:00
Paul Holden 2a148696d0 MDL-81318 assignsubmission_onlinetext: ignore blank content download. 2024-05-15 09:33:20 +01:00
Angelia Dela Cruz e460567727 MDL-79838 mod_h5pactivity: Behat for H5P activity grade settings control 2024-05-15 14:52:51 +08:00
Shamim Rezaie 762fa2dab6 Merge branch 'MDL-81530-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-05-15 15:13:39 +10:00
Huong Nguyen 4e1676a9bf Merge branch 'MDL-51360-403-2' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2024-05-15 10:44:39 +07:00
Ilya Tregubov 7581808af5 Merge branch 'MDL-70441-403-fix' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-05-15 09:31:05 +08:00
Simey Lameze 2a58c95959 MDL-70441 mod_assign: change condition to check if variable is not empty 2024-05-15 09:15:24 +08:00
Shamim Rezaie ada64b90b1 MDL-81544 theme_boost: Don't change the display of .visibleifjs elements 2024-05-15 04:13:36 +10:00
Sara Arjona d630535bd7 Merge branch 'MDL-81805-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-05-14 17:05:44 +02:00
Juan Leyva ab8945d10f MDL-81897 tool_mobile: Force partitioned cookies on inapp browser 2024-05-14 13:44:12 +02:00
Ilya Tregubov d531ca2863 Merge branch 'MDL-70441-403' of https://github.com/kevpercy/moodle into MOODLE_403_STABLE 2024-05-14 14:08:34 +08:00
David Balch 7da9e1828e MDL-70441 assign: Freeze workflow states not available to user.
Prior to this, a custom grader role that has mod/assign:grade but not
mod/assign:releasegrades or mod/assign:managegrades would see a select
with only the states available to them - not the current state, and
could reset a grade from released to Not marked/In marking/Marking
completed.
2024-05-14 12:58:01 +08:00
Huong Nguyen 8d9e3c7a71 Merge branch 'MDL-81434-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-14 08:53:17 +07:00
Paul Holden fb234d0518 MDL-81543 qtype_calculated: correct component of language string. 2024-05-13 10:43:50 +01:00
Ilya Tregubov ff9de3728c Merge branch 'MDL-81867-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-13 09:29:28 +08:00
AMOS bot 91e7d8e6bb Automatically generated installer lang files 2024-05-12 00:14:28 +00:00
Paul Holden 627455b1eb MDL-81867 qbank_columnsortorder: correct/cleanup previous upgrade step. 2024-05-10 09:20:25 +01:00
Ilya Tregubov ac18106017 MDL-51360 core_grades: Improve documentation of grade_get_grades(). 2024-05-10 09:17:10 +08:00
Ilya Tregubov ac3e4375ff MDL-51360 mod_quiz: Don't do full course recalculation.
It seems it was never needed. We only need to know if just one
grade is overridden and its value.
2024-05-10 09:17:10 +08:00
Ilya Tregubov 0fae175b82 weekly release 4.3.4+ 2024-05-10 09:09:40 +08:00
Amaia Anabitarte 071a6a7cda MDL-81601 core_course: Add course index completion status behats 2024-05-09 19:44:01 +08:00
Jun Pataleta 606de56801 Merge branch 'MDL-81713-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-05-09 12:02:13 +08:00
Jun Pataleta 6c7136c894 MDL-81713 mod_quiz: Use accessible fieldset name for Behat test 2024-05-09 11:57:21 +08:00
Luca Bösch 7fb8f46741 MDL-81713 mod_quiz: Add random question 'Parent category' help icon. 2024-05-09 11:57:21 +08:00
Jun Pataleta eb1ee3e71b Merge branch 'MDL-80972-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-05-09 11:43:00 +08:00
info@eWallah.net 431e60f282 MDL-80972 behat: Behat check_server_status can provide better info. 2024-05-09 11:07:42 +08:00
Huong Nguyen da420156b5 Merge branch 'MDL-81423_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-05-09 09:55:48 +07:00
Huong Nguyen 0da6b416c8 Merge branch 'MDL-80453-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-05-09 09:48:11 +07:00
Ilya Tregubov db8b22f577 Merge branch 'MDL-81601-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-05-09 10:46:41 +08:00
Huong Nguyen 97672aeb83 Merge branch 'MDL-79702-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-05-09 09:34:05 +07:00
Paul Holden 0f89924155 MDL-77685 grade: remove Behat specific report rendering hacks.
These changes follow the same approach as that taken elsewhere in
the Gradebook in 3643f48e0f.
2024-05-08 12:29:48 +01:00
Angelia Dela Cruz 74798f4241 MDL-80453 mod_glossary: Behat for different glossary format display 2024-05-08 17:31:45 +08:00
Amaia Anabitarte da17bbcebd MDL-81601 core_course: Fix course index completion status 2024-05-08 08:25:38 +02:00
Marina Glancy 09d7b78fee MDL-80907 various: fixes to incorrect column selectors in behat 2024-05-07 19:31:23 +01:00
Marina Glancy 59e774be9a MDL-80907 behat: be more precise in selecting table rows 2024-05-07 19:31:16 +01:00
Paul Holden 0675350454 MDL-81434 reportbuilder: ensure filter/condition parameter uniqueness.
This change fixes an edge case that could be triggered by creating a
custom report that contained a filter instance that was active as both
a filter and condition, where the filter instance provides parameters
to it's SQL fragment.
2024-05-07 15:03:18 +01:00
Huong Nguyen 777236f456 MDL-81530 editor_tiny: Better browsers compatibility
The TinyMCE.remove() function is killing other events on Firefox
We need to modify the setupForElementId() to make TinyMCE to
remove itself outside of the event loop
2024-05-07 14:22:19 +07:00
Simey Lameze 9624df07c0 MDL-81805 behat: remove unnecessary @javascript from tests 2024-05-07 09:10:30 +08:00
Simey Lameze 3016642fda MDL-79702 behat: improvements and fixes to new tests
This commit adds the handling of tags as string separated by comma
to forum and glossary modules.
2024-05-06 20:02:35 +08:00
Angelia Dela Cruz 0d93a76b39 MDL-79702 core_tag: Behat for activity tags deletion during course reset 2024-05-06 20:02:35 +08:00
Huong Nguyen 3e8365e812 Merge branch 'MDL-80589-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-05-06 09:37:24 +07:00
Ilya Tregubov 985dd2a33c Merge branch 'MDL-81656-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-05-06 09:55:59 +08:00
Tim Hunt bcc5ded857 MDL-81423 assign: improve valdation message for submissionstatement 2024-05-03 10:35:02 +01:00
Shamim Rezaie 16de126c04 MDL-81538 theme_boost: Fix popover arrow direction in RTL 2024-05-03 13:03:43 +10:00
Ilya Tregubov ab09144ccb weekly release 4.3.4+ 2024-05-03 08:34:40 +08:00
Ilya Tregubov c5ccda34b4 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-05-03 08:34:37 +08:00
AMOS bot c2bbce616d Automatically generated installer lang files 2024-05-03 00:10:44 +00:00
Simey Lameze 9d54d9a6c3 MDL-80589 behat: fixes and improvements to new tests 2024-05-02 13:33:55 +08:00
Angelia Dela Cruz c7bc4931c3 MDL-80589 qtype_numerical: Behat to add, edit, preview numeric question 2024-05-02 13:33:55 +08:00
Huong Nguyen 6b1241ace2 Merge branch 'MDL-81587_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-05-02 09:38:32 +07:00
Huong Nguyen 9425452845 Merge branch 'MDL-81611_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2024-05-02 09:02:31 +07:00
Huong Nguyen 84e2530e98 Merge branch 'MDL-79851-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-05-01 16:11:32 +07:00
Angelia Dela Cruz 25551a5593 MDL-79851 mod_h5pactivity: Behat for h5p activity access control 2024-05-01 14:26:20 +08:00
Sara Arjona 96d4fdb5a4 Merge branch 'MDL-81724-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-30 16:38:13 +02:00
Sara Arjona 8425cbfc94 Merge branch 'MDL-78889-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2024-04-30 16:05:18 +02:00
Sara Arjona 0876626dc7 MDL-80571 tiny_premium: Fix version 2024-04-30 15:32:56 +02:00
Sara Arjona 27801f3f01 Merge branch 'MDL-81632-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-30 15:09:40 +02:00
Sara Arjona 396a53b650 Merge branch 'MDL-80571-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-04-30 15:06:04 +02:00
Tim Hunt a28e67a94a MDL-81587 quiz: fix layout of the add/edit random UI
Some of the removed CSS seems no longer relevant now that we have
customisation options for the layout of the question bank.
2024-04-30 10:45:52 +01:00
Paul Holden 191d5a1620 MDL-81724 editor_tiny: remove whitespace from block formats syntax.
Ensures that the values are subsequently translated correctly. Workaround
for upstream bug: https://github.com/tinymce/tinymce/pull/9599

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2024-04-30 09:27:39 +01:00
Huong Nguyen e8a5ff7ab5 Merge branch 'MDL-79149-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-30 11:48:29 +07:00
Huong Nguyen 1fa423de59 Merge branch 'MDL-81717-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-04-30 11:38:28 +07:00
Ilya Tregubov 6d6b88f27e Merge branch 'MDL-77272-403' of https://github.com/SergioComeron/moodle into MOODLE_403_STABLE 2024-04-30 10:18:41 +08:00
Huong Nguyen 0823b8534b MDL-81610 course: Update upgrade.txt 2024-04-30 09:11:30 +07:00
Huong Nguyen 5eeff2dcb3 Merge branch 'MDL-81610_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2024-04-30 09:01:51 +07:00
David Woloszyn 0668597f31 MDL-80571 tiny_premium: Premium plugins can be individually enabled 2024-04-30 09:42:20 +10:00
Sara Arjona a87a5edb3b MDL-81717 h5p: Improve robustness content type fetching
Strengthen code to ensure retrieval of all content types, despite
failures.
2024-04-29 12:33:32 +02:00
Paul Holden 366b3a81fd MDL-81656 h5p: correct content editing URL parameter handling. 2024-04-29 09:22:26 +01:00
Ilya Tregubov fb619b068d MDL-78889 gradereport_user: Fix pass/fail icon for totals
When the category has a 'grade to pass' set, the pass/fail icon
was displayed even when the category total grade values was hidden.
2024-04-29 14:44:44 +08:00
Ilya Tregubov 24652fd9ab MDL-81380 qbank_columnsortorder: Add type and return value hint 2024-04-29 10:49:45 +08:00
Ilya Tregubov 368f547708 Merge branch 'MDL-81380_403' of https://github.com/AnupamaSarjoshi/moodle into MOODLE_403_STABLE 2024-04-29 10:48:53 +08:00
Huong Nguyen f024142bbc Merge branch 'MDL-80849-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-04-29 08:55:48 +07:00
Ilya Tregubov 174cdecb57 Merge branch 'MDL-80597-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-29 09:46:47 +08:00
David Woloszyn 41701a5477 MDL-80849 communication_matrix: Prevent numeric usernames 2024-04-29 10:49:46 +10:00
Anupama Sarjoshi e1a425e160 MDL-81380 qbank_columnsortorder: Add upgrade.php
Before Moodle 4.3, config_plugins settings for qbank_columnsortorder
(disabledcol, enabledcol) had a value like
qbank_statistics\columns\facility_index,
qbank_statistics\columns\discriminative_efficiency, ...
In Moodle 4.3, the values are stored as
qbank_statistics\columns\facility_index-facility_index.
So updating the old values to match the new format.
2024-04-26 17:10:18 +01:00
Paul Holden eab2c90907 MDL-79149 report_participation: more resilient activity access test.
Use the "Forum" module rather than the "Book" module, because the latter
emits two events when a student views it - if these two events happened
either side of a single second, then the report  would count two distinct
views (when it was trying to assert only one).
2024-04-26 16:08:17 +01:00
Paul Holden 58a8c939d6 MDL-80597 mod_quiz: simplify filtering by tags Behat assertions.
The initial filtering for category was redundant, as it's applied
by default. While present it also caused reproducible failures on
CI due to timing issues when trying to apply multiple filters.
2024-04-26 10:27:12 +01:00
Huong Nguyen 3cb3a44ba5 Merge branch 'MDL-78433-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-04-26 16:20:30 +07:00
Huong Nguyen e8adb517b9 Merge branch 'MDL-81641_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-04-26 16:04:15 +07:00
Sara Arjona 26b00a45fa Merge branch 'MDL-77445-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-04-26 10:40:35 +02:00
Mark Johnson 6c746a561c MDL-81610 course: Optimise core_courseformat\external\get_state
core_courseformat\external\get_state calls export_for_tempalte for each
course module, which in turn calls completion_info::is_tracked_user()
for the current user on the current course. The result of this call will
be the same for every course module, so does not need to be called what
may be several hundred times.

This change allows the result of is_tracked_user to be passed to the cm
state object, then calls it once and passes it to each cm's object. If
it is not passed in, it will be computed on demand as before.
2024-04-25 16:15:38 +01:00
SergioComeron 8aafdfbd55 MDL-77272 report: Enable module level report options 2024-04-25 17:14:23 +02:00
Mark Johnson 4edf1c7b54 MDL-81611 assign: Close session early in gradingpanel fragment 2024-04-25 16:14:09 +01:00
Sara Arjona 840d58af5e weekly release 4.3.4+ 2024-04-25 15:43:34 +02:00
Sara Arjona 3c643a21a5 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-04-25 15:43:30 +02:00
Huong Nguyen b7a7263c17 Merge branch 'MDL-80087_403' of https://github.com/PhilippImhof/moodle into MOODLE_403_STABLE 2024-04-25 09:38:12 +07:00
Paul Holden 13705c5549 MDL-81632 block_recentlyaccesseditems: deterministic item ordering.
Behat tests of this functionality could trigger the unlikely (in real
world usage) scenario where a user has an identical "timeaccess" value
for multiple course activities.

This led to random failures in said tests when the DB ordered items in
apparently random order, where the "timeaccess" value was equal.
2024-04-24 20:57:43 +01:00
Sara Arjona 106cb2a63a Merge branch 'MDL-77998-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-04-24 14:49:04 +02:00
Angelia Dela Cruz 0e947b1d93 MDL-77445 Behat: Coverage for activity chooser navigation 2024-04-24 16:38:52 +08:00
Huong Nguyen 3669994452 Merge branch 'MDL-81301_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-04-24 15:20:14 +07:00
Jun Pataleta 512a957de8 Merge branch 'MDL-81570-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-04-24 14:40:30 +08:00
Jun Pataleta 52ebdd1de3 Merge branch 'MDL-81567-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2024-04-24 12:21:49 +08:00
Huong Nguyen 9ca4708d66 Merge branch 'MOODLE_403_MDL-81613' of https://github.com/danielneis/moodle into MOODLE_403_STABLE 2024-04-24 10:00:30 +07:00
Huong Nguyen 46fe243cf7 Merge branch 'MDL-81564-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-04-24 08:58:37 +07:00
Laurent David f88a774a5c MDL-81564 mod_data: Remove duplicate error messages
* When a field is missing the error is duplicated for all field
subsequently added to the database
2024-04-24 08:55:09 +07:00
Ilya Tregubov bba6c7afac Merge branch 'MDL-81274-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-24 09:44:40 +08:00
Huong Nguyen 49de60f4b5 Merge branch 'MDL-80107-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-04-24 08:36:08 +07:00
Tim Hunt 446cc50f6f MDL-81641 question: fix random question loader draft state tests 2024-04-23 18:28:45 +01:00
Amaia Anabitarte 48a59ee277 MDL-78433 course: Remove duplicated course search form 2024-04-23 16:13:51 +02:00
Sara Arjona 4e70f41e54 Merge branch 'MDL-81209-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-23 15:37:09 +02:00
Sara Arjona 3a36e2731f Merge branch 'MDL-81457-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-23 14:56:39 +02:00
Angelia Dela Cruz 228c9d27dd MDL-80107 gradingform: Behat test for defining marking guide 2024-04-23 12:55:23 +08:00
Daniel Neis Araujo 4b4c02e20d MDL-81613 report_log: fix user fullname export for log report 2024-04-22 14:35:24 -03:00
Paul Holden e48ff65880 MDL-81274 mod_data: observe current approved value on record import. 2024-04-22 12:48:56 +01:00
Paul Holden c9f0efb978 MDL-78942 tool_mfa: replace deprecated coding standards annotation.
Replace with equivalent `phpcs` annotation as appropriate, same as
done previously in a5c91474ee (see that commit for further context).
2024-04-22 12:28:31 +01:00
Sara Arjona 393e4c2a11 MDL-81570 tiny_premium: Add missing lang string 2024-04-22 09:41:01 +02:00
AMOS bot cc9f46b202 Automatically generated installer lang files 2024-04-22 00:10:30 +00:00
Luca Bösch 7bd800b563 MDL-81567 mod_quiz: Adopt edit section title pencil icons size. 2024-04-20 18:03:17 +02:00
Jun Pataleta 143c2cd5be Moodle release 4.3.4 2024-04-20 15:57:33 +08:00
Huong Nguyen 06b6467f4f weekly release 4.3.3+ 2024-04-19 17:05:32 +07:00
Jun Pataleta 452279abad Merge branch 'MDL-81584-403' of https://github.com/mihailges/moodle into MOODLE_403_STABLE 2024-04-19 11:03:30 +08:00
Mihail Geshoski a51e542e5b MDL-81584 gradereport_grader: Pin the last row only when necessary
Fixes the current behavior where the last row in the grader report is
always 'pinned', ensuring it is pinned only when necessary.
2024-04-18 16:15:11 +08:00
Jun Pataleta 76c0c9ed59 Merge branch 'MDL-81525-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-17 23:42:14 +08:00
Laurent David 4443ecf6b4 MDL-81267 mod_data: Additional tests 2024-04-17 10:33:13 +02:00
Laurent David faadca21a9 MDL-81267 mod_data: Clean field type before inclusion
* Filter out wrong field types when restoring or creating a field.
2024-04-17 10:33:13 +02:00
Paul Holden bcb96be529 MDL-80878 tool_mfa: safely retrieve the referrer URL. 2024-04-17 03:24:20 +00:00
Stevani Andolo 8fdda09338 MDL-81354 core: Escape string of fullname 2024-04-17 03:24:19 +00:00
Paul Holden 593204b45d MDL-81463 auth: ensure login recaptcha always checked if configured. 2024-04-17 03:24:19 +00:00
Paul Holden c988992f7e MDL-81062 mod_lesson: escape identity fields in overview report. 2024-04-17 03:24:19 +00:00
Paul Holden 4408c3fcaa MDL-80712 mod_workshop: stricter cleaning of sub-plugin values. 2024-04-17 03:24:19 +00:00
Paul Holden 6c08d1c101 MDL-81058 admin: fix sesskey checks for admin preset actions. 2024-04-17 03:24:19 +00:00
Paul Holden dd433ba094 MDL-81059 tool_analytics: fix sesskey checks for model actions. 2024-04-17 03:24:19 +00:00
Laurent David fcd361badb MDL-81284 mod_wiki: Add stricter cleaning of contentformat
* When restoring backup we clean the contentformat and defaultformat
to avoid issue with invalid value.
* Add tests for format and defaultformat so to check that we
 filter out invalid formats
* Remove private $basepath variable as it was used one and not always
initialised correctly.
2024-04-17 03:24:19 +00:00
meirzamoodle bef5f4a121 MDL-81352 filter: Ensure equation safety prior to filtering 2024-04-17 03:24:19 +00:00
Paul Holden f9e6040e28 MDL-81135 mod_feedback: stricter cleaning of item type parameter. 2024-04-17 03:24:19 +00:00
Huong Nguyen d77f2d55ef MDL-81247 calendar: Extra validation for webservices 2024-04-17 03:24:19 +00:00
Paul Holden de7ec71ca4 MDL-80877 tool_mfa: protect logout process with sesskey check. 2024-04-17 03:24:19 +00:00
Paul Holden de366cea22 MDL-81247 calendar: freeze event type if "user" only allowed. 2024-04-17 03:24:19 +00:00
Leon Stringer 6bc016ad41 MDL-80585 report_log: sanitize descriptions
Strip any HTML tags from values in the "Description" column.
2024-04-17 03:24:19 +00:00
Huong Nguyen df23edbbab Merge branch 'MDL-81552-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-04-17 10:13:41 +07:00
Jun Pataleta 33b34bc86a MDL-81552 core: Assign proper webdav_client class variables 2024-04-16 13:06:46 +08:00
Andrew Nicols ffc51ab3fd MDL-81525 core_user: Move after_complete_login to correct NS 2024-04-15 08:53:35 +08:00
Sara Arjona d706265b8e weekly release 4.3.3+ 2024-04-12 13:23:26 +02:00
Tim Hunt 53a265917a MDL-81301 quiz: improve performance of deleting a quiz 2024-04-12 10:46:24 +01:00
Huong Nguyen 15912783c4 Merge branch 'MDL-77015-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-12 11:46:05 +07:00
Huong Nguyen b9dd2d29c5 Merge branch 'MDL-65381-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-04-12 11:11:28 +07:00
Andrew Nicols 99748cdee6 Merge branch 'MDL-70829-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-04-12 11:59:04 +08:00
Huong Nguyen 692cda1525 MDL-79174 availability: Behat cleanups 2024-04-12 10:57:04 +07:00
Huong Nguyen 951a3d5e5c Merge branch 'MDL-79174_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2024-04-12 10:56:50 +07:00
Andrew Nicols 07dab571dd Merge branch 'MDL-81192_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2024-04-12 11:48:24 +08:00
Jun Pataleta 4544ea122b MDL-70829 output: Remove the presentation role for html_writer::img()
* A presentation role is not necessary for the img tag.
  - If a non-empty alt text is provided, the presentation role will
  conflict with the alt text.
  - An empty alt text denotes a decorative image. The presence of a
  presentation role is redundant.
* Make sure that the alt text is set to an empty string. Otherwise,
  an img tag without an alt attribute will be produced which is an
  invalid markup.
2024-04-12 11:45:35 +08:00
Andrew Nicols d16fc3c7e3 Merge branch 'MDL-78902_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-04-12 11:18:49 +08:00
Jun Pataleta 007e527c3c MDL-70829 core: Set the icon of action icons as a decorative image
* When text is rendered for the action icon, set the icon as a
decorative image by setting empty alt and title attributes and adding
the aria-hidden attribute as well. Otherwise, assistive technologies
will read the action name twice.
2024-04-12 11:14:06 +08:00
Jun Pataleta fea05fb8a3 MDL-70829 block_recentlyaccesseditems: Move listitem role out of <a>
* Axe DevTools flags an error on the recently accessed items block that
the listitem role is not allowed for <a> tags. This is because the
"listitem" role will override the native semantic meaning of the course
links. So the solution is to move the course links within a <div> tag
with the listitem role instead.
2024-04-12 11:14:06 +08:00
Jun Pataleta 84ef1906e0 MDL-70829 tool_lp: Add empty alt text for decorative image
* The decorative image for the course modules in the user competency
summary modal is missing an empty alt text.
2024-04-12 11:14:05 +08:00
Jun Pataleta 744065174c MDL-70829 theme_boost: Make context header icons decorative
The non-empty alt text for the icons of the context header buttons like
the "Message" and the "Add contact" buttons cause redundant information
to be read twice by screen readers when the buttons are rendered with
the icon and the button name. The icons need to be set as decorative by
setting an empty alt text for them.
* The presentation role is also unnecessary.
* The alt text is needed when the button gets rendered without the
button name text.
2024-04-12 11:14:05 +08:00
Jun Pataleta 1e2ef693f7 MDL-70829 core_search: Mark up decorative image properly
* An empty alt text is enough for decorative images. There's no need
  to set a presentation role.
2024-04-12 11:13:14 +08:00
Jun Pataleta 182e09ab5c MDL-70829 enrol_manual: Mark up decorative image properly
* An empty alt text is enough for decorative images. There's no need
  to set a presentation role.
2024-04-12 11:13:14 +08:00
Jun Pataleta ca0e61a79d MDL-70829 mod_workshop: Mark up decorative images properly
* Decorative images should have an empty alt text and there's no need
to set a presentation role.
2024-04-12 11:13:13 +08:00
Jun Pataleta f0aa5e9668 MDL-70829 mod_quiz: Mark up decorative images properly
* Decorative images should have an empty alt text and there's no need
to set a presentation role.
* Accessibility Behat tests added to cover the changes
2024-04-12 11:13:13 +08:00
Jun Pataleta 814fea407a MDL-70829 mod_data: Mark up decorative images properly
* Decorative images should have an empty alt text and there's no need
to set a presentation role.
* Accessibility Behat tests added to cover the changes
2024-04-12 11:13:13 +08:00
Jun Pataleta 1ae95e3b63 MDL-70829 course: Mark up decorative images properly
* Decorative images should have an empty alt text and there's no need
to set a presentation role.
* Accessibility Behat tests added to cover the changes:
  - block_starredcourses uses the core_course/no-courses template
  - core_completion tests changes in core_course/activity instance and
    core_course/editdefaultcompletion
2024-04-12 11:13:13 +08:00
Jun Pataleta f99f693238 MDL-70829 block_recentlyaccesseditems: Mark up decorative image properly
* The zero state image is purely decorative so there's no need to
set a non-empty alt text for it.
* The presentation role is also unnecessary for decorative image with
empty alt.
* Accessibility Behat tests added to cover changes
2024-04-12 11:13:12 +08:00
Jun Pataleta ae48b9e8a6 MDL-70829 block_myoverview: Mark up decorative image properly
* The zero state image is purely decorative so there's no need to
set a non-empty alt text for it.
* The presentation role is also unnecessary for decorative image with
empty alt.
* Accessibility Behat tests added to cover changes
2024-04-12 11:13:12 +08:00
Jun Pataleta f28b4d1ae1 MDL-70829 tool_lp: Remove presentation role for decorative images
* Behat tests in report_competency added to test the user summary
display in the user competency summary modal.
2024-04-12 11:13:12 +08:00
Jun Pataleta ca3218b23f MDL-70829 core: Remove presentation role for decorative images
* An image with non-empty alt text should not have a presentation role.
* An empty alt attribute is sufficient for decorative images. No need to
add a presentation role for them.
* Additionally, if there is already text that is present for an image,
there's no need to add an alt text with the same text. Such images are
decorative and should just have an empty alt text.
2024-04-12 11:13:12 +08:00
Huong Nguyen 8a1547bb17 Merge branch 'MDL-81320-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-12 10:11:42 +07:00
Huong Nguyen 1872094df6 Merge branch 'MDL-81256-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-04-12 08:58:28 +07:00
Shamim Rezaie 34d5c59153 Merge branch 'MDL-81306-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-12 11:46:06 +10:00
Huong Nguyen 8aed364c22 Merge branch 'MDL-81316-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-04-12 08:37:01 +07:00
Huong Nguyen bdd0d80a09 Merge branch 'MDL-81420-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-04-12 08:34:08 +07:00
Ilya Tregubov cbd81332e3 Merge branch 'MDL-80160-403-siteadminsconfigphp' of https://github.com/mudrd8mz/moodle into MOODLE_403_STABLE 2024-04-12 08:47:17 +08:00
Shamim Rezaie 33fd0471e8 Merge branch 'MDL-81482_403' of https://github.com/AnupamaSarjoshi/moodle into MOODLE_403_STABLE 2024-04-12 09:31:10 +10:00
Tomo Tsuyuki b81756cc04 MDL-78902 quiz restore: fix restore of 3.x backups with random questions
... where the random questions come from the quiz module context.

Co-authored-by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-04-11 22:09:59 +01:00
Sara Arjona 98a9e324d8 Merge branch 'MDL-81472-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-11 17:35:49 +02:00
Andrew Nicols a341231108 Merge branch 'MDL-81114_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-04-11 23:25:43 +08:00
Sara Arjona c5c52e66f3 Merge branch 'MDL-80469-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-04-11 14:52:00 +02:00
Marina Glancy 6e5d277fc2 MDL-80469 forms: add a hidden label to the button action group
This is a temporary solution to the accessibility problem
"Fieldsets without legend". We will no longer use a fieldset tag
if there is no legend after MDL-80431
2024-04-11 12:56:24 +01:00
Sara Arjona b6394a0b60 Merge branch 'MDL-81383_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-04-11 12:49:36 +02:00
Tim Hunt 6edfe1b415 MDL-81383 questions: get_filtered_questions order should be predictable
This method supports $limit and $offset paramters. The query must have
a predictable ORDER BY for that to make sense.
2024-04-11 10:27:41 +01:00
Pedro Jordao 95c957791e MDL-80195 forms: Keep dropdown menu open when tabbing into datepicker
When accessing a datepicker that is within a dropdown menu using the tab
key, the navigation sequence was changed since the datepicker code is
not rendered within the dropdown menu element, thus the dropdown was
closed as it was understood that we were not more inside it.
Furthermore, when exiting the datepicker by pressing tab, as the
dropdown was closed, the navigation jumped to the first element on the
page, which is the link to Skip to main content.

To resolve this, a validation was added that keeps the dropdown menu
open if the datepicker is open and accessed via the tab key.
2024-04-11 11:03:38 +02:00
Mark Johnson 217154895c MDL-81192 sessions: Prevent false positive session change errors
If $CFG->enable_read_only_sessions_debug was not enabled, debugging could be
enabled part-way through a request when restart_with_write_lock was
called. This meant that a diff between the initial and final session
would be made during write_close(), although the intial session state
was never captured. This generated false positives in the logs, and it
thought any variable set in the session was a change from the original
value.

This ensures that debugging is enabled before the debug flag is allowed
to change, preventing false positives.
2024-04-11 08:54:39 +01:00
Andrew Nicols 076f6e9464 MDL-77967 core_user: Coding style fixes in tests 2024-04-11 14:06:11 +08:00
Andrew Nicols 24c4875f6a Merge branch 'MDL-77967-403' of https://github.com/rmady/moodle into MOODLE_403_STABLE 2024-04-11 14:06:06 +08:00
Huong Nguyen 78cac12d8e Merge branch 'MDL-81362-403' of https://github.com/ssj365/moodle into MOODLE_403_STABLE 2024-04-11 10:59:26 +07:00
Huong Nguyen f990fcdca7 Merge branch 'MDL-81327-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-04-11 10:19:07 +07:00
Andrew Nicols 59cf12eca4 Merge branch 'MDL-81227_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-04-11 10:59:53 +08:00
Ilya Tregubov 3f01eeb49f Merge branch 'MDL-81491-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-04-11 09:51:48 +08:00
Shamiso.Jaravaza ffa09ce293 MDL-81362 mod_bigbluebuttonbn: Fix content type 2024-04-10 11:51:06 -06:00
Sara Arjona 5f8bfd504a Merge branch 'MDL-74977-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-04-10 15:50:58 +02:00
Huong Nguyen df99388d27 MDL-74977 core_courseformat: add expanded section update actions
This also fix the Random "Course content preferences" Behat failure
2024-04-10 18:11:45 +07:00
Sara Arjona 811b9e4187 Merge branch 'MDL-81307-fix-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-04-10 12:52:51 +02:00
Sara Arjona 4971008242 MDL-81307 theme: Fix behat failures with classic and sticky footer
Authored-by: Mikel Martín Corrales <mikel@moodle.com>
2024-04-10 12:33:46 +02:00
Jake Dallimore 510f9e3c08 MDL-81491 enrol_lti: fix incorrect login_hint parameter type validation
This was always bad, but since we only used it to verify the existence
of the param, and let library code take $_REQUEST for the real
validation, it was ok. Now, since we're redirecting to self during
necessary cookie checks added by MDL-80835, we lose the real value
originally stored in $_REQUEST. This patch just fixes the param type,
setting it to raw, which is what it should have used originally. The
raw value won't be cast from a string to an int as part of the
require_param call, so the value won't be lost any more.
2024-04-10 17:43:11 +08:00
Huong Nguyen 0cd42e33bf Merge branch 'MDL-81351-403-enfix' of https://github.com/mudrd8mz/moodle into MOODLE_403_STABLE 2024-04-10 13:55:26 +07:00
Huong Nguyen a0cf83c8f5 Merge branch 'MDL-81182_403' of https://github.com/aolley/moodle into MOODLE_403_STABLE 2024-04-10 11:24:19 +07:00
Anupama Sarjoshi cec3a6438b MDL-81482 Questions: Fix questionlib_test PHPUnit tests 2024-04-09 16:49:22 +01:00
Sara Arjona 220637457e Merge branch 'MDL-81307-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2024-04-09 16:18:31 +02:00
Sara Arjona 725f6f35a3 Merge branch 'MDL-81451-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2024-04-09 15:31:10 +02:00
Mikel Martín 441ab036e0 MDL-81307 core_courseformat: Add bulk styles for small devices 2024-04-09 13:30:34 +02:00
Paul Holden 596b317c27 MDL-81472 mod_scorm: add missing library require to privacy class. 2024-04-09 11:38:08 +01:00
Sara Arjona c9fe574fdd weekly release 4.3.3+ 2024-04-09 12:07:24 +02:00
Laurent David e5f200616e MDL-81327 report_loglive: Apply the same fixes to loglive
* Additional fix: take into account selected group (filter)
2024-04-09 11:00:30 +02:00
Andrew Nicols 61282aa692 MDL-81327 report_log: Make group filtering logstore agnostic
The original implementation of group filtering introduced in MDL-80565
assumed that the log table existed in Moodle's own database. This is not
the case of the database logstore, or any similar logstore implemetning
the database \core\log\sql_reader interface.

Furthermore this check was also applying the SQL when the user had the
`accessallgroups` capability, or when the course was not in SEPARATE
groups mode (no groupmode and/or visible groups).

Co-authored: Laurent David <laurent.david@moodle.com>
2024-04-09 11:00:30 +02:00
Laurent David f67fa427bd MDL-81327 report_log: Fix col_fullusername
* Avoid calling get_user_fullname too many times and
deal with the case that $event->userid is empty
2024-04-09 11:00:30 +02:00
Andrew Nicols ff4d5f3caa MDL-81327 core: Remove unnecessary table filter
The \Traversable interface does not define the `valid` method.
Furthermore, the `valid` method actually checks that there is a _next_
value, which requires the value already be fetched and waiting. This is
not the case for all Iterators. For example the CallbackFilterIterator
does not load the initial value until it is requested.

It is completely unnecessary to do this check anyway as an invalid
Iterator will just not return any values.
2024-04-09 11:00:29 +02:00
Jake Dallimore 829a0d615a Merge branch 'MDL-81060-403-fix' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-04-09 10:13:37 +08:00
Luca Bösch 9c5db33257 MDL-81451 qtype_missingtype: adopt icon size to other. 2024-04-08 17:27:03 +02:00
Luca Bösch 2f5def5d83 MDL-81451 qtype_gapfill: adopt icon size to other. 2024-04-08 17:27:03 +02:00
Sara Arjona 2f59f5b835 Merge branch 'MDL-81298-MOODLE_403_STABLE' of https://github.com/vithushau/moodle into MOODLE_403_STABLE 2024-04-08 17:11:55 +02:00
Didier 'OdyX' Raboud fecf2ee25a MDL-65381 grade_report: fix empty separate groups own grades access
On separate groups' courses, users without groups could not access
their own grade items.
2024-04-08 17:03:02 +02:00
Sara Arjona bf9e1f978e Merge branch 'MDL-78457-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-08 16:54:47 +02:00
Andrew Nicols 17ba4c535b MDL-81209 core: Unit test should not care about plugin details 2024-04-08 20:54:26 +08:00
Huong Nguyen 01a0c19364 Merge branch 'MDL-75037-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-08 16:06:38 +07:00
Marina Glancy 0b8ce298cb MDL-81256 lib: fix rounding of thumbnail image size 2024-04-08 10:01:47 +01:00
Sara Arjona e2b856751a MDL-81420 enrol: Remove duplicated header in editing form 2024-04-08 10:49:29 +02:00
Jake Dallimore 94eb59c5b8 Merge branch 'MDL-81405-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-04-08 15:35:18 +08:00
Ilya Tregubov fb74eac976 Merge branch 'MDL-81409-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-04-08 12:45:18 +08:00
Huong Nguyen afbec4a656 Merge branch 'MDL-80934-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-04-08 09:13:16 +07:00
Jake Dallimore a4a4cb1cdb MDL-81060 core: fix incorrect userquota usage in zip_packer
This change reverts much of MDL-74641, removing the erroneous userquota
checks from zip_packer. Now, during extraction, the zip_packer will exit
with an error status when it encounters a file which is larger than its
advertised size, and NOT when it determines the size of the extracted
files have exceeded the userquota (which only applies to private files
and which was used incorrectly here). It also reverts changes to the
draftfiles_ajax.php file, restoring the original (pre-MDL-74641) error
handling.
2024-04-08 09:11:48 +07:00
Huong Nguyen c056e99130 Merge branch 'MDL-81402-MOODLE_403_STABLE' of https://github.com/sh-csg/moodle into MOODLE_403_STABLE 2024-04-08 09:03:20 +07:00
Andrew Nicols c51b7dd631 MDL-81457 core: Do not mark tests as Incomplete when they are wrong
This check was marking a test as Incomplete if there was a bug in any
part of the test, rather than failing the test in such a way that the
test bug may be found.

https://docs.phpunit.de/en/9.6/incomplete-and-skipped-tests.html
2024-04-08 08:46:44 +08:00
Andrew Nicols 60a2eba17d MDL-81457 core: Mark SSL test as skipped, not incomplete
The incomplete test is intended for tests which are written but whose
code does not yet exist.

https://docs.phpunit.de/en/9.6/incomplete-and-skipped-tests.html
2024-04-08 08:46:44 +08:00
Juan Leyva de6fb6e2f7 MDL-81405 tool_mobile: Set Partitioned cookie for the mobile app 2024-04-06 12:25:51 +02:00
Juan Leyva 5e7440acdc MDL-81405 session: New core cookie helper utility class 2024-04-06 12:25:51 +02:00
Paul Holden 5de37ea321 MDL-81320 datafield_checkbox: account for empty field content. 2024-04-05 15:16:40 +01:00
Sara Arjona cf01fd6bef weekly release 4.3.3+ 2024-04-05 13:22:31 +02:00
Sara Arjona 034c9d9559 Merge branch 'MDL-81359-m403' of https://github.com/sammarshallou/moodle into MOODLE_403_STABLE 2024-04-04 17:02:59 +02:00
Huong Nguyen daa896b54a Merge branch 'MDL-81386-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-04-04 21:56:29 +07:00
Stefan Hanauska bccc540bce MDL-81402 course: Add sectionnum to cm export 2024-04-04 13:02:30 +02:00
Laurent David 3071a94206 MDL-80934 core_courseformat: Expand section when selected
* Sections in the course content must be expanded when an item
from this section is selected in the course index
2024-04-04 10:41:48 +02:00
Andrew Nicols 493bef4270 MDL-81316 core: Encode anchor fragments properly to RFC 3986 2024-04-04 16:04:37 +08:00
Ilya Tregubov 4ec1c56fd6 Merge branch 'MDL-78370-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-04-04 14:19:20 +08:00
Andrew Nicols d1d193c61a NOBUG: mod_h5pactivity - Version bump after rewrite 2024-04-04 10:36:26 +08:00
Sara Arjona 1f037c1abb Merge branch 'MDL-80765-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-04-03 17:18:56 +02:00
Huong Nguyen 38fc785fe4 MDL-81393 atto: Disable mediaplugin filter for Behat test 2024-04-04 00:23:28 +11:00
Paul Holden fc377530a2 MDL-75037 core: update Moodlenet repository search URLs. 2024-04-03 13:00:38 +01:00
Jake Dallimore 53176786c8 MDL-81409 enrol_lti: fixes to dynamic registration to support Blackboard
The following fixes resolve issues when used with Blackboard Learn:
- Set registration request Content-Type header to application/json
- Make registration_token optional, per the spec:
https://www.imsglobal.org/node/200666#step-1-registration-initiation-request
- Conditionally create the deployment since it's optional in
lti-tool-configuration:
https://www.imsglobal.org/node/200666#lti-configuration-0
- Remove empty custom_parameters property, since that's optional too:
https://www.imsglobal.org/node/200666#lti-configuration-0
- Remove overly-strict validation on registration_token. This was
validating the param as a JWT, but since the spec has stabilised, this
is not always the case. It's a Bearer token that's opaque to the tool
(i.e. it's just passed back unmodified), so while it could be validated
against RFC6750, it's simplest to just remove the validation entirely.
- change targetOrigin of the postMessage to '*' as per the spec:
https://www.imsglobal.org/node/200666#step-4-registration-completed-and-activation
2024-04-03 16:22:26 +08:00
Sara Arjona 075138c474 MDL-81386 output: Fix failure in PHPUnit when running filtered tests
There was a data provider to get the list of the FontAwesome icons that
was initialized when running filtered tests.
It was causing some failures with filtered tests that, for instance,
called require_login and changed the course.
To avoid this failure (and also to improve the performance), the logic
to get the icons list has been moved to the test.
2024-04-03 09:27:10 +02:00
Shamim Rezaie 18023c7dab Merge branch 'MDL-81393-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-04-03 16:38:40 +11:00
Andrew Nicols 22ae648dd2 Merge branch 'MDL-80818-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-04-03 13:05:36 +08:00
Huong Nguyen fbf4d35827 Merge branch 'MDL-77779-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2024-04-03 09:12:29 +07:00
Huong Nguyen 7c9a625cf8 Merge branch 'MDL-81300-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2024-04-03 09:06:52 +07:00
Huong Nguyen ca0020a224 Merge branch 'MDL-81072-403' of https://github.com/stevandoMoodle/moodle into MOODLE_403_STABLE 2024-04-03 08:55:11 +07:00
Huong Nguyen 0c4a148cdb Merge branch 'MDL-77838-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-04-03 08:52:23 +07:00
Sara Arjona 6294b06174 weekly release 4.3.3+ 2024-04-02 14:46:38 +02:00
Paul Holden 1d8c25f479 MDL-78457 course: remove participants navigation if cannot access. 2024-04-02 10:03:47 +01:00
Paul Holden 7f01b0369a MDL-77015 mod_data: consistent escaping of template field names.
* When creating default templates, avoid escaping the field names
  contained within [[ ]] brackets;
* When managing field, ensure the field names are escaped.
2024-04-02 10:02:07 +01:00
Mikel Martín a7a85820f2 MDL-81300 theme_boost: Fix dnd overlay in course sections
Drag and drop overlay in course page was being overlapped by divider
buttons and quick edit links.
That happens because both elements have their own z-index context.
Add z-index to the drag and drop overlay elenment to fix this issue.
2024-04-02 10:14:39 +02:00
Andrew Nicols 63f7915427 Merge branch 'MDL-79712-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-04-02 11:56:33 +08:00
Laurent David b7b1e20ed4 MDL-80765 mod_data: Trim values on field update
* When creating a field we usually trim values, so we should
do the same on field update
2024-04-02 05:41:39 +02:00
Jake Dallimore 8657868c97 MDL-79712 auth_lti: ensure MoodleSession uses SameSite=None Secure
The MoodleSession cookie is already set this way when using Chrome, but
not for Firefox. This is a decision made in \core\session\manager. When
Firefox eventually defaults to SameSite=Lax when the SameSite attribute
is omitted from the Set-Cookie headers, the MoodleSession cookie won't
be sent. This change ensures the cookies used during LTI launches will
continue to work if/when this happens, and despite any changes which may
be made to core's sessionlib in future.
2024-04-02 11:40:17 +08:00
Huong Nguyen 9ae3cd1be7 MDL-81393 media_videojs: Switch to use Ogv.Js tech for Chrome 2024-04-02 10:27:07 +07:00
David Mudrák 829c469c5b MDL-81351 lang: Use the fixed strings in the tests, too 2024-03-28 11:01:39 +01:00
Helen Foster 3fdae1298f MDL-81351 lang: Import fixed English strings (en_fix) 2024-03-28 10:58:24 +01:00
Stevani Andolo e67ae9fe63 MDL-81072 tool_mfa: Fixed bulk user actions capability 2024-03-28 17:35:11 +08:00
Andrew Nicols f0f1caa67d MDL-81306 core: Do not use xsendfile for request dirs 2024-03-28 09:30:07 +08:00
Andrew Nicols ee06a613b3 MDL-81306 core: Remove docs on use of xsendfile with request dirs
This reverts the change made in MDL-80648 and adds a note to not do it.
2024-03-28 09:29:26 +08:00
Ilya Tregubov bc0c77d35c Merge branch 'mdl80598-403' of https://github.com/matthewhilton/moodle into MOODLE_403_STABLE 2024-03-28 09:06:11 +08:00
Ilya Tregubov 8c41baf328 Merge branch 'MDL-80302-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-03-28 08:59:24 +08:00
Amaia Anabitarte 355e8b6cf9 MDL-80818 QuickForm: Freeze all elements with the same name
There are some radio buttons in activity Completion Conditions settings
that must be frozen altogether, because all of them have the same name.
2024-03-27 16:24:50 +01:00
Amaia Anabitarte fcbe53778d MDL-80302 completion: Improve default completion error tracking
Co-authored-by: Sara Arjona <sara@moodle.com>
2024-03-27 16:12:12 +01:00
Vithusha Uthayakumar f1bb6ea00c MDL-81298 external: fix typo error in failing testcase 2024-03-27 16:48:39 +11:00
Ilya Tregubov 013d4e7303 Merge branch 'MDL-80036-403' of https://github.com/mickhawkins/moodle into MOODLE_403_STABLE 2024-03-27 11:08:11 +08:00
Andrew Nicols 0f4478b8e5 MDL-80332 core: Coding style fixes 2024-03-26 22:44:51 +08:00
Andrew Nicols 5dfcc1aedd Merge branch 'MDL-80332-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-03-26 22:43:37 +08:00
sam marshall aa4baad9a4 MDL-81359 core_courseformat: Availability 'Show more' unwelcome outing
If the availability restriction includes a link, then 'Show more'
always appeared even when the entire text is already shown.
2024-03-26 13:40:41 +00:00
Sara Arjona 1c530d86d1 weekly release 4.3.3+ 2024-03-26 12:31:12 +01:00
Jun Pataleta 88d342fdf2 Merge branch 'MDL-80384-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-03-26 11:16:18 +08:00
Jun Pataleta c96efdb613 MDL-80384 courseformat: Set activity icon alt text on editing mode
From a warning using WAVE:
* The title attribute value for images that lack an alt attribute value
will be presented to screen reader users. However, providing image
content in the alt attribute typically provides better accessibility,
and should be used in most cases. The title attribute will generate a
mouse hover tooltip which may or may not be desired - this tooltip will
not be presented to touch screen or keyboard users.
2024-03-26 11:02:35 +08:00
Jun Pataleta 06e13d72f0 Merge branch 'MDL-81266_403' of https://github.com/stronk7/moodle into MOODLE_403_STABLE 2024-03-26 10:33:57 +08:00
Matthew Hilton 336f311676 MDL-80598 bigbluebutton: Gracefully handle invalid customdata 2024-03-26 10:09:30 +10:00
Sara Arjona 211c8caca5 Merge branch 'MDL-81246-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-03-25 17:01:45 +01:00
Sara Arjona ce8ec44c40 Merge branch 'MDL-80088-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-25 16:20:31 +01:00
Juan Leyva d7a0cb8d00 MDL-80332 tool_mobile: Fallback por app launches 2024-03-25 16:05:07 +01:00
Juan Leyva 7cec5c9b71 MDL-80332 login: New hooks for complete login and passed MFA 2024-03-25 15:56:01 +01:00
Laurent David 0b3802bb0b MDL-80384 core_courseformat: Remove activty icon link
* Remove the link over the image icon for an activity and use
the title attribute for the tooltip
2024-03-25 13:25:34 +01:00
Andrew Nicols 37c7b5004b Merge branch 'MDL-80827-403' of https://github.com/stevandoMoodle/moodle into MOODLE_403_STABLE 2024-03-25 11:44:22 +08:00
Huong Nguyen 05305ea751 Merge branch 'MDL-79829-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-03-25 09:22:37 +07:00
Huong Nguyen 5cb5826c45 Merge branch 'MDL-81074-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-03-25 09:15:48 +07:00
Andrew Nicols a5e94e0a08 MDL-81074 core: Simplify strftime tests 2024-03-25 09:51:25 +08:00
Luca Bösch aa2919309f MDL-81074 core: align core_date::strftime results for numeric and string 2024-03-25 09:51:25 +08:00
Andrew Nicols 1c42deaf58 MDL-81074 core: Add assertTimeStringMatches PHPUnit Assertion
Also raised as https://github.com/sebastianbergmann/phpunit/issues/5757
2024-03-25 09:51:25 +08:00
Eloy Lafuente (stronk7) 7d01ea90fe MDL-81266 composer: Bump behat/behat to 3.14 and other deps
Only applied to 402_STABLE and up, all them requiring PHP 8.0
as a minimum. And generated following the instructions in the
dev docs.
2024-03-23 13:37:33 +01:00
Paul Holden e7a3a5982e MDL-77838 repository: preserve empty dirs in download if selected. 2024-03-22 16:22:40 +00:00
Sara Arjona 74d3c96149 weekly release 4.3.3+ 2024-03-22 14:02:56 +01:00
Jun Pataleta ef94d46a7f Merge branch 'MDL-81313-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-03-22 11:47:46 +08:00
Sara Arjona d537ffbeb5 Merge branch 'MDL-80488-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-21 17:30:48 +01:00
Sara Arjona 65afe1196a Merge branch 'MDL-79913-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-21 17:18:18 +01:00
Sara Arjona 23ec91a2c4 Merge branch 'MDL-81112-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-21 17:11:35 +01:00
Sara Arjona e4b036da69 Merge branch 'MDL-69688_403' of https://github.com/stronk7/moodle into MOODLE_403_STABLE 2024-03-21 15:29:53 +01:00
Huong Nguyen 4a454da7ce Merge branch 'MDL-81289-403' of https://github.com/ferranrecio/moodle into MOODLE_403_STABLE 2024-03-21 15:12:18 +07:00
Huong Nguyen 7e5bd6d54e Merge branch 'MDL-80835-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-03-21 14:53:31 +07:00
Jake Dallimore fff106ffc2 MDL-80835 auth_lti: fix bad cast breaking samesite LTI usage 2024-03-21 15:37:38 +08:00
Jake Dallimore b6470d6252 MDL-80835 enrol_lti: add partitioning support for OIDC state cookie
Adds the property that is required by Chrome to opt-in to its 3rd party
cookie partitioning solution, CHIPS. This specific change ensures the
'state' cookie, used in the OIDC handshake, has partitioning support.
This cookie can be partitioned unconditionally, since it's a cookie
controlled by the library and one we don't expect to be set without
partitioning elsewhere.
2024-03-21 15:37:37 +08:00
Jake Dallimore d95a5de2ac MDL-80835 auth_lti: add partitioning to post-auth MoodleSession cookie
Adds the property that is required by Chrome to opt-in to its 3rd party
cookie partitioning solution, CHIPS. This specific change to auth_lti is
to ensure the MoodleSession Set-Cookie header resulting from
complete_user_login() calls (in auth.php) have this property set.
2024-03-21 15:37:37 +08:00
Jake Dallimore b14d02d177 MDL-80835 enrol_lti: add cookies required notice to auth login endpoint
This will be displayed if the cookie checks fail, which currently occurs
in Safari only.
2024-03-21 15:37:37 +08:00
Jake Dallimore 93aac92d01 MDL-80835 enrol_lti: add partitioning support to MoodleSession cookie
Adds the property that is required by Chrome to opt-in to its 3rd party
cookie partitioning solution, CHIPS. This specific change deals with the
cookie that is set when the user is not yet auth'd with the site and is
necessary to facilitate OIDC nonce retrieval and validation.
2024-03-21 15:37:37 +08:00
Jake Dallimore 1e09e6ffa6 MDL-80835 auth_lti: add cookie helper facilitating CHIPS opt-in
To opt a cookie in to Chrome's 3rd party cookie partitioning solution,
CHIPS, the property 'Partitioned;' needs to be set. This adds a helper
class supporting this, for a given cookie(s).

Note also, PHP's native
cookie APIs (setcookie, etc) don't support this cookie property yet -
(https://github.com/php/php-src/issues/12646).

Since this class is intended to allow existing Set-Cookie headers to be
modified before being sent (e.g. allowing clients to set a property on a
cookie set elsewhere in code), it deals with the headers directly anyway
but it means that new cookies must also use this helper to opt-in,
instead of relying on setcookie(). E.g. where the intent is to add
partitioning support to a new cookie, that cookie must first be set
(setcookie) and then it may opt-in to partitioning via this helper;
partitioning support cannot be achieved directly through setcookie and
friends yet.
2024-03-21 15:37:36 +08:00
Eloy Lafuente (stronk7) 7e170eb1b3 MDL-69688 phpunit: Improve test_context_not_used
This adds a few changes to the old test_context_not_used test:

- Move it to become an advanced_test, because its mission
  is to verify that the assertEventContextNotUsed() assertion
  works as expected.
- For consistency, also move the fixtures to own phpunit fixtures.
- Add proper coverage tags, to verify that the assertion is being
  covered.
- Add a data provider to provide all the current cases and ease
  any future case that may be needed in the future. One by one
  because previously there was code never executed with the
  warning expectation causing the test to stop.
- Run them in isolation, while this is not strictly required, it's
  including external fixtures and, we'll need that isolation soon
  (for changes coming when moving the test to PHPUnit 9.6 in MDL-81266).
2024-03-21 08:30:32 +01:00
Jake Dallimore 8e9abf5bd6 MDL-81313 core: Revert "Merge branch 'MDL-80338-403'
This reverts commit 3905247a84, reversing
changes made to 4414c4598e.
2024-03-21 11:30:10 +08:00
Paul Holden d238e4fd99 MDL-80488 mod_lesson: avoid overflowing length of page titles. 2024-03-20 23:51:18 +00:00
Paul Holden d3faf37e8b MDL-81112 gradereport_grader: show user country value correctly. 2024-03-20 23:49:57 +00:00
Jun Pataleta 0f32a8b13d Merge branch 'MDL-79007-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-03-20 15:39:23 +08:00
Jun Pataleta 6f55bc72a9 Merge branch 'MDL-81110-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2024-03-20 15:37:51 +08:00
Mark Johnson 443656c85c MDL-79007 calendar: Make screen readers read the new month name 2024-03-20 15:08:15 +08:00
Mark Johnson aed27a6b69 MDL-79007 calendar: Make screen readers read out calendar day popovers 2024-03-20 15:05:20 +08:00
Mark Johnson 5e6a2dc020 MDL-79007 calendar: Expose block month link names to screen readers 2024-03-20 15:02:14 +08:00
Ilya Tregubov 37f5032db5 weekly release 4.3.3+ 2024-03-20 08:54:10 +08:00
Ilya Tregubov 378a2e3f32 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-03-20 08:54:07 +08:00
ferranrecio bda0176205 MDL-81289 core_courseformat: fix get_format_string params 2024-03-19 17:34:09 +01:00
Mikel Martín 1cc3736947 MDL-81110 theme_boost: Fix scroll-margin-top in #maincontent
- Fix scroll-margin-top in #maincontent element
- Add scroll-margin-top for focused elements too
2024-03-19 14:51:58 +01:00
Paul Holden 1e7b4f6537 Merge branch 'MDL-78438-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2024-03-19 10:45:34 +00:00
Ilya Tregubov b709cc3eee MDL-78438 gradereport_grader: Fix Behat test
Seems Oracle is too slow on pressing buttons :))
2024-03-19 17:46:47 +08:00
Michael Hawkins 03102060dd MDL-80036 core: Update security.txt expiry 2024-03-19 15:31:08 +08:00
Huong Nguyen 1c31e9722f Merge branch 'MDL-81156-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-03-19 10:55:47 +07:00
Andrew Nicols a42516478d Merge branch 'MDL-77255-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-03-19 11:39:21 +08:00
Huong Nguyen 02300131b7 MDL-77255 block_tag_flickr: Update to match with the new API
Flickr dropped php_serial format, we need to change to JSON format
2024-03-19 10:14:46 +07:00
Ilya Tregubov 28f91d0b2d Merge branch 'MDL-80240-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-19 10:28:13 +08:00
Ilya Tregubov 40dbc075d8 Merge branch 'MDL-80919-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-19 10:14:27 +08:00
Ilya Tregubov 7050d41112 Merge branch 'MDL-78438-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-19 09:47:16 +08:00
Ilya Tregubov 609e18fbc3 Merge branch 'MDL-80793-403' of https://github.com/OxyOCE/moodle into MOODLE_403_STABLE 2024-03-19 09:12:41 +08:00
AMOS bot c038bc3d09 Automatically generated installer lang files 2024-03-19 00:08:51 +00:00
Sara Arjona 1c31846b97 Merge branch 'MDL-72923-M403' of https://github.com/michael-milette/moodle into MOODLE_403_STABLE 2024-03-18 16:57:01 +01:00
Sara Arjona a0739d133d Merge branch 'MDL-81254-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-18 16:08:15 +01:00
Laurent David 416a586a1d MDL-79829 theme: Fix Course index draggable cursor
* Make the cursor consistent for drag and drop operation
to be the same in the course content and the course index
2024-03-18 07:39:15 +01:00
Laurent David 3b8bde71fa MDL-79829 core: Reactive drag and drop cursor
* When dragging and dropping an item, the cursor should be
set to "move" and not copy.
2024-03-18 07:39:15 +01:00
Jun Pataleta 0dfe161746 Merge branch 'MDL-80279-403' of https://github.com/pedrojordao/moodle into MOODLE_403_STABLE 2024-03-18 11:22:42 +08:00
Philipp Imhof e35eb6b9eb MDL-80087 Questions: warn if preload_all_step_users was not called
Co-authored-by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-03-15 19:41:04 +01:00
Paul Holden 2bc19b944e MDL-79913 grade: respect messaging config for user heading buttons. 2024-03-15 17:00:28 +00:00
Paul Holden 5c0e2639d4 MDL-81254 grade: ensure we always close the graded user iterator.
This ensures that the recordsets contained within are also closed
when we're done with them.
2024-03-15 16:04:07 +00:00
Huong Nguyen 45ad566de9 weekly release 4.3.3+ 2024-03-15 21:48:19 +07:00
Huong Nguyen 5fc8c89068 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-03-15 21:48:18 +07:00
Pedro Jordao eac4b571ee MDL-80279 core: Set new attributes for user profile initials
When the user does not have a profile photo and initials are displayed,
there is no alt text for the initials which causes accessibility
issues, so with this change I added the user's full name to the title
and aria-label attributes and I set a role='img' when the element span
is rendered.
2024-03-15 07:39:23 -03:00
Leon Stringer e4ae4c5843 MDL-81146 forms: Disable submit buttons in Chrome 2024-03-15 08:30:21 +00:00
Jake Dallimore e2e8268afb Merge branch 'MDL-80167-403-int' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-03-15 12:54:47 +08:00
Huong Nguyen e70e73d9b7 MDL-81246 dml: Check the statement resource before freeing it 2024-03-15 11:19:43 +07:00
Huong Nguyen 7ad4a82cb3 MDL-80167 core: Skip Oracle for Oracle environment in unit tests 2024-03-15 08:46:35 +07:00
Ilya Tregubov 2c757362db Merge branch 'MDL-81190-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-15 08:42:19 +08:00
Tim Hunt bf505f1075 MDL-81227 question bank: improve the order of the action menu 2024-03-14 17:38:02 +00:00
Sara Arjona e81ce235b6 Merge branch 'MDL-80167-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-03-14 11:54:59 +01:00
Sara Arjona a99c603cba Merge branch 'MDL-80479-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-03-14 11:47:56 +01:00
Huong Nguyen d424951ce0 MDL-80167 admin: Add environment check for Oracle database 2024-03-14 17:42:39 +07:00
Simey Lameze 585eb7d2e8 MDL-80479 behat: improve new test for quiz timer 2024-03-14 10:21:17 +08:00
Angelia Dela Cruz 745c87c8a3 MDL-80479 mod_quiz: Behat to set quiz opening and closing time 2024-03-14 10:21:17 +08:00
Ilya Tregubov 293ccf1948 MDL-77779 competency: Fix course restore from older backups.
overridegrade might be not set if Moodle < 4.1
2024-03-14 09:29:54 +08:00
Simey Lameze fa534ac13e MDL-81156 behat: coverage for force course language 2024-03-14 09:04:34 +08:00
AMOS bot be7316f99e Merge branch 'MOODLE_403_STABLE' into install_403_STABLE 2024-03-14 00:13:18 +00:00
Sara Arjona f6c86bbd1b Merge branch 'MDL-80865-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-13 12:18:53 +01:00
Ilya Tregubov d03306a1ce Merge branch 'MDL-80565-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-03-13 11:22:45 +08:00
AMOS bot 6d2a2edc34 Automatically generated installer lang files 2024-03-13 00:11:10 +00:00
Ilya Tregubov a30f476d18 weekly release 4.3.3+ 2024-03-13 08:09:48 +08:00
Tim Hunt 81fafbc199 MDL-81039 qtype_multichoice: better way to control feedback display 2024-03-12 12:00:05 +01:00
Tim Hunt 842dd9f729 MDL-81039 question: Improve some comments in question_display_options 2024-03-12 12:00:00 +01:00
Huong Nguyen a734d9caba Merge branch 'MDL-76805-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-03-12 10:32:24 +07:00
Shamiso.Jaravaza 5fdf46bbca MDL-76805 mod_bigbluebuttonbn: Fix up behat tests 2024-03-12 10:58:33 +08:00
Ilya Tregubov 8912f31a06 Merge branch 'MDL-81035-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-03-12 10:40:44 +08:00
Ilya Tregubov 1cb9abbb90 Merge branch 'MDL-81127-403' of https://github.com/izendegi/moodle into MOODLE_403_STABLE 2024-03-12 10:27:13 +08:00
Ilya Tregubov 1782190cbe Merge branch 'MDL-81191-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-12 10:15:47 +08:00
Paul Holden e0fc0dc15b MDL-81191 course: define batch stealth feedback language string. 2024-03-11 17:27:17 +00:00
Paul Holden 0b82683d9d MDL-81190 mod_assign: correct context argument to format string. 2024-03-11 16:58:00 +00:00
Sara Arjona b9ca2c5320 Merge branch 'MDL-79027-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-11 17:26:56 +01:00
Laurent David 4e9c9df95a MDL-80565 report_loglive: Do not show logs from other groups
* Prevent users from seeing logs from other groups if
groupmode is in SEPARATEGROUP
2024-03-11 14:30:55 +01:00
Laurent David afd4ccf425 MDL-80565 report_log: Prevent user from seeing other logs
* When no groups are selected we forcefully prevent
users from seeing users' logs from other groups
2024-03-11 14:30:55 +01:00
Laurent David b66a627a00 MDL-80565 report_log: Fix report log selector
* When using the report log and we select a group, the group
list should show the right list of users
2024-03-11 14:30:54 +01:00
Laurent David 0f235f56c1 MDL-80565 report: Revert MDL-41465 changes
* Partial revert of changes made in MDL-41465,
while keeping the API changes made in enrol/lib.
2024-03-11 14:30:54 +01:00
Tim Hunt 36e03243da MDL-81114 question: fix selection of random questions with draft status
We need to pick the latest 'ready' version of each question
(not questions where the latest version is ready).

There are test of the behaviour of random_question_loader, and
then a test in the quiz to prove it works in use.
2024-03-11 10:45:19 +00:00
Huong Nguyen 7fe8b9e448 MDL-81035 core: Fix redirect with sub-path 2024-03-11 15:56:14 +07:00
Adam Olley 639dceb19b MDL-81182 factor_email: Correct path for config.php require
Without this, the path is incorrect and can, in some circumstances (if
config.php is a symlink for one) - result in PHP requiring the config
file twice.
2024-03-10 00:35:02 +10:30
Tim Hunt db8d3fef9c MDL-81114 question: clarify the SQL in ensure_filtered_questions_loaded
This should not change the (currently buggy) behaviour at all,
but my brain needs this to understand how to fix the bug.
2024-03-08 19:31:32 +00:00
Tim Hunt 14ce932d9a MDL-81114 question: fix coding style in random_question_loader_test 2024-03-08 19:31:32 +00:00
Paul Holden 6cde2b3bc0 Merge branch 'MDL-81128-403-STABLE' of https://github.com/davidcerezal/moodle into MOODLE_403_STABLE 2024-03-08 14:50:26 +00:00
Paul Holden aec51de205 Merge branch 'MDL-81152-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-03-08 14:45:22 +00:00
Iñigo Zendegi aba3268336 MDL-81127 filter: Support filters on course completion message 2024-03-08 14:05:52 +01:00
Sara Arjona fde6c3c7ef weekly release 4.3.3+ 2024-03-08 11:11:50 +01:00
Ilya Tregubov 0ded712a6b Merge branch 'MDL-78547-403-phpunit' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-03-08 13:44:56 +08:00
Huong Nguyen a28e42c0c1 MDL-78547 quiz: Remove unnecessary call to clear_regrade_date_cache()
This method is designed to clear the values but these values are never set anywhere
It's safe to remove it out of the test now
2024-03-08 12:42:04 +07:00
Huong Nguyen 2fe254dac4 Merge branch 'MDL-81082-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-08 10:28:07 +07:00
Huong Nguyen 24b0aa122e Merge branch 'MDL-81123-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-03-08 10:13:01 +07:00
Huong Nguyen b7d4c3cef2 Merge branch 'MDL-81046-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-03-08 10:07:08 +07:00
Ilya Tregubov f1feb6fcd6 Merge branch 'MDL-80550-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-08 11:05:44 +08:00
Huong Nguyen d56573e41c Merge branch 'MDL-78547_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-03-08 08:52:11 +07:00
Ilya Tregubov 7fd5907b8d Merge branch 'MDL-80943-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-08 09:22:15 +08:00
Tim Hunt d365aef387 MDL-78547 quiz: fix how deprecated add random calls structure 2024-03-07 16:13:01 +00:00
Tim Hunt dcff2a039f MDL-78547 quiz: in a preview, if a question has been edited, update it
As part of implementing this, there is a new more efficient method
get_version_information_for_questions_in_attempt to see if any
questions in a quiz need to be updated. The regrade code was updated
to take advantage of this.

Co-authored-by: Khoa Nguyen Dang <khoanguyend7@nashtechglobal.com>
2024-03-07 16:13:01 +00:00
Tim Hunt 189464ade2 MDL-78547 questions: a way to replace a attempt in a usage
... without keeping the old attempt

Co-authored-by: Khoa Nguyen Dang <khoanguyend7@nashtechglobal.com>
2024-03-07 16:13:01 +00:00
Sara Arjona c01663867a MDL-69656 backup: Remove illegal whitespaces 2024-03-07 12:05:34 +01:00
Paul Holden bf0849d9a4 MDL-80943 reportbuilder: select-type customfields should be text.
The column type determines the available aggregation options present
for the column. Custom fields of type "select" should be considered as
text fields for this purpose, because their stored value represents
the index to their available options, rather than having any distinct
meaning of it's own for display.
2024-03-07 09:47:53 +00:00
Huong Nguyen 1c2004265c Merge branch 'MDL-79990-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-03-07 10:04:40 +07:00
Mihail Geshoski 90743958a7 MDL-81152 mod_lti: Custom parameter configuration in the instance form
Re-enables the configuration of custom parameters when creating or
modifying a tool instance in a course.

Backport of MDL-80914.
2024-03-07 09:57:46 +08:00
Simey Lameze c91ee7412e MDL-79990 behat: custom step to verify assign grading data
This commit also optimise the new behat test.
2024-03-07 09:44:22 +08:00
Angelia Dela Cruz 7e076e4dc8 MDL-79990 gradingform: Behat test for marking guide information display 2024-03-07 09:44:21 +08:00
Andrew Nicols 6b8243f6af Merge branch 'MDL-69656-MOODLE_403_STABLE' of https://github.com/sh-csg/moodle into MOODLE_403_STABLE 2024-03-06 23:23:27 +08:00
David Cerezal f7d052160f MDL-81128 behat: use specific step instead a workaround 2024-03-06 16:04:44 +01:00
Michael Milette 49fcf4e984 MDL-72923 message: Fixed levels of headings in messaging drawer. 2024-03-06 07:33:52 -05:00
Stefan Hanauska 8e874c5ad6 MDL-69656 backup: Replace urlencoded pluginfile urls 2024-03-06 07:40:59 +01:00
Andrew Nicols b710b9b222 Merge branch 'MDL-80183-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-06 14:04:44 +08:00
Andrew Nicols 4659884ef4 Merge branch 'MDL-80646-403' of https://github.com/mihailges/moodle into MOODLE_403_STABLE 2024-03-06 13:22:11 +08:00
Huong Nguyen c0a6ce3bed Merge branch 'MDL-80241-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-06 09:23:46 +07:00
Huong Nguyen 4a339ac3e5 Merge branch 'MDL-79278-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-03-06 09:13:08 +07:00
Angelia Dela Cruz b2da7b06a3 MDL-79278 mod_quiz: Teacher can set how quiz questions behave behat
Co-authored-by: Simey Lameze <simey@moodle.com>
2024-03-06 09:45:26 +08:00
David Mudrák 3ec1c77fc8 MDL-80160 admin: Fix site admins selector UI if the list is hardcoded
If the list of site admins was defined in the config.php, the UI to
select / modify admins never worked. But there was no indication of the
reason which was unexpected and confusing.
2024-03-05 23:45:11 +01:00
Sara Arjona 933404f2eb Merge branch 'MDL-80930-403' of https://github.com/raortegar/moodle into MOODLE_403_STABLE 2024-03-05 15:24:56 +01:00
Andrew Nicols 9c7ca927d3 Merge branch 'MDL-80731-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-05 22:04:47 +08:00
Sara Arjona 970fe4d26d weekly release 4.3.3+ 2024-03-05 11:22:18 +01:00
Andrew Nicols b89e60af09 MDL-81123 tiny_html: Make empty codemirror region clickable 2024-03-05 14:12:15 +08:00
Mihail Geshoski 6784ab5334 MDL-80646 mod_lti: Enable key and secret configuration in legacy tools
When restoring a manually configured tool to a different site, the key
and secret are not being restored, which is an expected behaviour.
However, legacy (pre-4.3) manually configured tools do not have the
option to configure the key and secret, which makes these instances
unusable. To make sure these tools will continue working after a backup
and restore, we need to re-enable the key and secret fields in the
legacy instance settings form.
2024-03-05 13:23:32 +08:00
Jun Pataleta e644d854f3 Merge branch 'MDL-80819_403' of https://github.com/stronk7/moodle into MOODLE_403_STABLE 2024-03-05 11:50:01 +08:00
Huong Nguyen f9e36cc9f1 Merge branch 'MDL-80836-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-03-05 10:24:12 +07:00
Paul Holden 91af0db62a MDL-80240 gradereport_grader: fix userfields parameter to search sql. 2024-03-04 14:43:36 +00:00
Paul Holden 1a980f3e43 MDL-79027 block_myoverview: retrieve only course related custom fields. 2024-03-04 10:38:56 +00:00
raortegar ab1fcc6db4 MDL-80930 core: Course delete modules task handle non deletable cms 2024-03-01 13:19:06 +01:00
Jun Pataleta 994a21d4ff weekly release 4.3.3+ 2024-03-01 12:24:28 +08:00
Jun Pataleta 5bca23a73d Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-03-01 12:24:26 +08:00
Sara Arjona 9bae536652 Merge branch 'MDL-80391-403-int' of https://github.com/stevandoMoodle/moodle into MOODLE_403_STABLE 2024-02-29 08:08:57 +01:00
Stevani Andolo 151e1e8d42 MDL-80391 tiny_html: Fixed multi modal layer display 2024-02-29 13:02:21 +08:00
Huong Nguyen 6d68f5ba61 Merge branch 'MDL-80364-403' of https://github.com/pedrojordao/moodle into MOODLE_403_STABLE 2024-02-29 10:45:13 +07:00
Simey Lameze 01f67edc81 MDL-68674 behat: make content bank steps more specific 2024-02-29 09:41:52 +07:00
Andrew Nicols e3d6973ed2 Merge branch 'MDL-81042-43' of https://github.com/micaherne/moodle into MOODLE_403_STABLE 2024-02-29 09:21:42 +08:00
Sara Arjona 381de34d2a Merge branch 'MDL-81029-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-02-28 17:22:04 +01:00
Sara Arjona 8e3b63a32a Merge branch 'MDL-80391-403' of https://github.com/stevandoMoodle/moodle into MOODLE_403_STABLE 2024-02-28 17:09:48 +01:00
Sara Arjona 33f4a94841 Merge branch 'mdl-80917-403' of https://github.com/Fragonite/moodle into MOODLE_403_STABLE 2024-02-28 16:44:20 +01:00
Sara Arjona 52854e2805 Merge branch 'MDL-80834_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-02-28 16:34:39 +01:00
Sara Arjona 2fe3312360 Merge branch 'MDL-80197-403' of https://github.com/pedrojordao/moodle into MOODLE_403_STABLE 2024-02-28 16:09:41 +01:00
Jun Pataleta 4abf80757d Merge branch 'MDL-68674-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2024-02-28 23:03:58 +08:00
Sara Arjona 6ed4268891 Merge branch 'MDL-52891-MOODLE_403_STABLE' of https://github.com/opitz/moodle into MOODLE_403_STABLE 2024-02-28 15:23:24 +01:00
Paul Holden 6cd156fdbc MDL-81082 tool_mfa: format site name in email subject. 2024-02-28 10:13:07 +00:00
Andrew Nicols 3a1443ee0b MDL-80684 core: Correct location of task tests 2024-02-28 14:20:54 +08:00
Andrew Nicols c108c1ead7 Merge branch 'MDL-80684-MOODLE_403_STABLE-fail_running_tasks_on_shutdown' of https://github.com/praxisdigital/moodle into MOODLE_403_STABLE 2024-02-28 14:20:49 +08:00
Stevani Andolo 5c9a7231d7 MDL-80827 tool_xmldb: Fixed xmldb editor broken with PHP 8.1 2024-02-28 10:05:00 +08:00
AMOS bot 1ad5ef6c30 Automatically generated installer lang files 2024-02-28 00:11:07 +00:00
Harry Smith e2ffae6fb6 MDL-80793 calendar: Setup $USER with all fields 2024-02-28 10:37:59 +13:00
Pedro Jordao a5e26adf33 MDL-80364 message: Change icon and background-color when item selected
Icon and background-color had contrast issues in the selected state.
2024-02-27 15:33:22 +01:00
Sara Arjona 228c50444d Merge branch 'MDL-81036-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-02-27 13:04:09 +01:00
Matthias Opitz 997ca5d78e MDL-52891 calculatedsimple question: forcing new gen. values into form
* forcing new generated sets of wildcard values into the question edit form so they can be saved.
* added Behat test to check new generated values are used.
2024-02-27 11:13:26 +00:00
Huong Nguyen 2abf7ccd5f Merge branch 'MDL-78984-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-27 09:53:45 +07:00
Michael Aherne c3c25c7899 MDL-81042 quiz: Typo in renamed class. 2024-02-26 09:05:35 +00:00
Andrew Nicols 911bbea72e MDL-81046 core: Add hook to apis list 2024-02-26 10:12:22 +08:00
Paul Holden 885a65b33a MDL-80550 cohort: get IDs for customfields correctly in external search. 2024-02-23 15:27:35 +00:00
Amaia Anabitarte f89f680035 MDL-81029 core_course: Fix activity settings page title 2024-02-23 16:04:39 +01:00
Marina Glancy 8e08798e8e MDL-81036 behat: fix the action menu clickable area selector 2024-02-23 11:22:54 +00:00
Paul Holden 064450ce1f MDL-78984 mod_assign: observe timelimit config in override form. 2024-02-23 11:18:45 +00:00
Eloy Lafuente (stronk7) 4d1aaab4c0 MDL-80819 install: halt any install if php min version is not met
Apart from environmental stuff, the moodle_minimum_php_version_is_met()
function is executed by all installs (web, cli, database, ...)
and halts any installation (early) not meeting the PHP constraints.
2024-02-23 11:08:18 +01:00
Jun Pataleta 7576c307fb Merge branch 'MDL-77965-m403' of https://github.com/NeillM/moodle into MOODLE_403_STABLE 2024-02-23 17:59:46 +08:00
Luca Bösch f3f10bfab6 MDL-68674 theme: Have block headers have h3 class="h5". 2024-02-23 10:59:44 +01:00
Paul Holden e7bf300cdf MDL-78438 gradereport_grader: use lang string for collapsed columns. 2024-02-23 09:39:12 +00:00
Neill Magill f357b3f715 MDL-77965 unit tests: Add covers annotation 2024-02-23 09:32:45 +00:00
Neill Magill 4038a3419b MDL-77965 quiz: Improve efficiency of the data export
Before this change the query used an index scan to perform the
export, this could be really expensive on the database.

After the change the the query will use far more efficient joins,
on a large MySQL instance this can take minutes off of the query
time.

In additon the query was returning two columns that are not used
in the function. The layout column was causing the UNION to fail
on Oracle as it cannot compare text columns, removing these
columns from the returned data should further increase
performance further.
2024-02-23 09:32:45 +00:00
Neill Magill fe76a2562e MDL-77965 grade: Improve data export performance
The existing query was inefficient using an index scan and
index merges. This change splits the query up into many individually
much more efficient queries.

This should significantly improve performance on large sites.
2024-02-23 09:32:45 +00:00
Neill Magill 6f9d8ca34f MDL-77965 notes: Improve data export performance
The UNION caused the query to be run in a way that is very
inefficient on MySQL, separating the queries causes each of them to
run in a much more efficient form.

Any duplicated will be filtered out on the PHP side instead of in
the database. On large Moodle sites this is preferable as the
extract is likely to be performed on a server dedicated to running
the Moodle cron and so there will be less of effect on resources
that are used to serve end users.
2024-02-23 09:32:45 +00:00
Neill Magill 1bcd7533c4 MDL-77965 calendar: Improve performance of data extract
The UNION caused the query to be run in a way that is very
inefficient on MySQL, separating the queries causes each of them to
run in a much more efficient form.

Any duplicated will be filtered out on the PHP side instead of in
the database. On large Moodle sites this is preferable as the
extract is likely to be performed on a server dedicated to running
the Moodle cron and so there will be less of effect on resources
that are used to serve end users.
2024-02-23 09:32:45 +00:00
Neill Magill ff5f100601 MDL-77965 competency: Improve query performance and data
This change removes LEFT JOINS to improve the performance
when run against Moodle sites with very large data sets.

It will also cause some additional contexts to be returned:

1. When a user has modified a user_evidence_competency
   without modifying its associated user_evidence record
2024-02-23 09:32:45 +00:00
Neill Magill 248742095d MDL-77965 competency: Correct order of expectations
The expected value was being passed second which meant that the
messages sent by PHPUnit when this fails are the wrong way round.
2024-02-23 09:32:45 +00:00
Jun Pataleta 6219f4d2ac Merge branch 'MDL-80805-m403' of https://github.com/sammarshallou/moodle into MOODLE_403_STABLE 2024-02-23 17:31:57 +08:00
Huong Nguyen b0cd9cac9a weekly release 4.3.3+ 2024-02-23 08:37:44 +07:00
Huong Nguyen be997d91fa Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-02-23 08:37:42 +07:00
Paul Holden 77c0a7cf05 MDL-80183 message: improve ARIA labelling of total/unread counts. 2024-02-22 17:03:52 +00:00
Paul Holden b26a2d7328 MDL-80183 message: render user online status as an accessible icon. 2024-02-22 17:01:00 +00:00
Paul Holden 3f8fb93834 MDL-80731 core: ensure valid /Lang attribute in generated PDF files.
As with the changes in 4be39296, PDF files have criteria for validity
of language identifiers.
2024-02-22 16:53:03 +00:00
Huong Nguyen f278206b91 Merge branch 'MDL-80844_403' of https://github.com/stronk7/moodle into MOODLE_403_STABLE 2024-02-22 11:24:00 +07:00
Huong Nguyen 3905247a84 Merge branch 'MDL-80338-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-22 11:18:06 +07:00
Huong Nguyen 4414c4598e Merge branch 'MDL-62404_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-02-22 10:49:52 +07:00
Huong Nguyen 897436f056 Merge branch 'MDL-80868-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-22 10:43:17 +07:00
Huong Nguyen c68e966686 Merge branch 'MDL-80950-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-02-22 10:40:29 +07:00
Huong Nguyen f7ed5663a7 Merge branch 'MDL-80862-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-02-22 10:37:49 +07:00
Huong Nguyen 8f13279477 Merge branch 'MDL-80481_403' of https://github.com/santoshndev/moodle into MOODLE_403_STABLE 2024-02-22 09:50:51 +07:00
Santosh Nagargoje f50245a6d3 MDL-80481 report: Fixed breadcrumb menu issue 2024-02-22 02:00:19 +05:30
Sara Arjona c1b7ab67c7 Merge branch 'MDL-76441_403' of https://github.com/stronk7/moodle into MOODLE_403_STABLE 2024-02-21 17:49:56 +01:00
Sara Arjona 9c195964aa Merge branch 'wip_MDL-79802_m43_v8' of https://github.com/gjb2048/moodle into MOODLE_403_STABLE 2024-02-21 17:32:05 +01:00
Mark Johnson 39af71da2c MDL-79174 availability: Allow group condition to use hidden groups
Previously, groups with GROUP_VISIBILITY_NONE could be selected for an
availability condition, but as the group API did not return a user's own
groups with this visibility, the condition's is_available check always
failed.

This change uses the new $includehidden parameter to get all of a user's
groups from groups_get_user_groups when evaluating the condition, so
these groups work as expected. Due to the enforced hiding of conditions
containing these groups, they will never be seen by the user.
2024-02-21 15:42:47 +00:00
Mark Johnson 558de0b8b4 MDL-79174 groups: Add includehidden parameter
This allows groups_get_user_groups to return groups with
GROUP_VISIBILITY_NONE that the specified user belongs to. The parameter
is false by default, and should be use with care as membership of these
groups should not be revealed to the user.
2024-02-21 15:42:47 +00:00
Sara Arjona b56fe5fff9 Merge branch 'MDL-80605-403' of https://github.com/jbs1/moodle into MOODLE_403_STABLE 2024-02-21 16:19:19 +01:00
Sara Arjona 716113cbfb Merge branch 'MDL-80404-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-02-21 13:23:31 +01:00
Paul Holden 9eac2f3c93 MDL-80241 grade: update user filtering by matched properties.
Invert the previous logic, which maintained a "banned" list of
fields, to instead only try to filter on those fields that are
explicitly defined to support that.
2024-02-21 10:21:36 +00:00
Sara Arjona 701e4cc18d Merge branch 'MDL-78944-43' of https://github.com/Chocolate-lightning/moodle into MOODLE_403_STABLE 2024-02-21 09:18:56 +01:00
Angelia Dela Cruz 104be7a8a7 MDL-80404 mod_data: Behat for url autolinking and opening in new window 2024-02-21 16:01:56 +08:00
Huong Nguyen adf6b7bf7f Merge branch 'MDL-79792-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-02-21 14:25:28 +07:00
Angelia Dela Cruz aaf858c6db MDL-79792 core_badges: Behat test for awarding badge to group members 2024-02-21 14:01:24 +08:00
Jun Pataleta a8fa0e61ac Merge branch 'MDL-79003-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-02-21 10:36:10 +08:00
Jun Pataleta 9287d34b78 MDL-78370 block_myoverview: Conditionally show "All" paging option
To minimise performance issues when displaying courses in Summary view,
we need to conditionally show the "All" paging option. This commit
will prevent the "All" paging option to be shown if the following
conditions are met:
- The display mode is "summary"; and
- There are more than 100 courses to be shown.
2024-02-21 09:43:28 +08:00
Juan Leyva 115b8e9a6c MDL-79802 tool_mobile: Support new setting in the mobile app 2024-02-20 18:09:57 +00:00
Gareth Barnard 39fcdac6d3 MDL-79802 core_h5p: Add a new setting for adding custom H5P styles. 2024-02-20 18:09:41 +00:00
Paul Holden 90d0f55fe1 MDL-80919 course: initial check for section modules to duplicate. 2024-02-20 16:22:33 +00:00
Sara Arjona 6c1b457252 Merge branch 'MDL-80912-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-20 15:39:24 +01:00
Sara Arjona b0c9e538e4 Merge branch 'MDL-80383-403' of https://github.com/rjnl/moodle into MOODLE_403_STABLE 2024-02-20 15:20:06 +01:00
Paul Holden 5e968b8864 MDL-80088 mod_imscp: better uploaded package filetype validation. 2024-02-20 14:10:10 +00:00
Huong Nguyen ae17dcde01 MDL-76024 qtype calculated: Fix deprecation related to dynamic property 2024-02-20 12:29:31 +01:00
Paul Holden 191ac5c44c MDL-80865 customfield_textarea: empty check prior to exporting value.
Co-authored-by: Sara Bozzini <s.bozzini@cineca.it>
2024-02-20 10:54:53 +00:00
Huong Nguyen 2eca6f3d5f Merge branch 'MDL-80936-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-20 10:28:31 +07:00
Huong Nguyen 42d864754a Merge branch 'MDL-76024-MOODLE_403_STABLE' of https://github.com/opitz/moodle into MOODLE_403_STABLE 2024-02-20 10:23:35 +07:00
Andrew Nicols 7653886081 MDL-80862 testing: Reset task manager between behat tests 2024-02-20 10:54:43 +08:00
AMOS bot c86674c04d Automatically generated installer lang files 2024-02-20 00:13:56 +00:00
Pedro Jordao ab85e38732 MDL-80197 forms: Added attributes to the calendar link
The datepicker is not keyboard accessible when in a modal.

As we are using yui datepicker and the change is not simple, I added aria-hidden and tabindex properties to avoid screenreaders.
2024-02-19 21:11:52 -03:00
Jeremy Schulz c847d5ea85 MDL-80605 uploaduser: fixed username already existing when mail-matching 2024-02-19 17:24:53 +01:00
Paul Holden 30fa519fa0 MDL-80912 reportbuilder: output table caption when rendering reports.
Move the `get_name` method to the base report class, so that it can be
implemented by all report types. Provide a default implementation for
system reports based on the name of the class.

Use the name of the report as the caption. Target via Behat selectors.
2024-02-19 11:57:53 +00:00
Frederik Milling Pytlick 11a3328b06 MDL-80684 core: Fail running tasks on shutdown
When you kill a process which is executing a task, it now marks it as failed.
2024-02-19 12:06:08 +01:00
Sara Arjona dac3242a2c Merge branch 'MDL-79674-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-02-19 10:20:47 +01:00
Sara Arjona 5f20a1efc2 Merge branch 'MDL-80613-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-02-19 09:14:23 +01:00
Rodrigo Mady e258e86f15 MDL-77967 user: Add format text to custom profile fields name 2024-02-16 17:16:37 -03:00
Matthias Opitz 5e3470fd4a MDL-76024 calculated questions: improving coding style 2024-02-16 10:22:07 +00:00
Matthias Opitz c93271e1d6 MDL-76024 calculated questions: cast float type before comparison
* added calculated question for multiplication to tests/helper.php.
* added test_grading_of_negative_responses() test to question/type/calculated/tests/question_test.php
2024-02-16 10:22:07 +00:00
Eloy Lafuente (stronk7) 0ed448a277 MDL-80844 phpunit: Only some tests can use the debugging sink
The only tests that have COMPLETE* support for the debugging sink
are the advanced_testcase and the database_driver ones (store and
report). So we must ensure that the rest of tests don't use the
debugging sink at all.

Right now we are using it for storing, but later there is not
reporting, so any debugging happening within non advanced tests
is not detected.

This commit just ensures that we stop making that storing for
non advanced/database_driver tests. Nothing more, nothing less.

* Note that we have had to add a few missing bits to the
database_driver testcase because it was not 100% complete. Now
it behaves 100% the same than the advanced_testcase one regarding
the debugging sink.
2024-02-15 18:46:26 +01:00
Eloy Lafuente (stronk7) ad241529f2 MDL-76441 env: Moodle 4.2.x and 4.3.x do not support PHP 8.3 2024-02-15 18:44:52 +01:00
Sara Arjona 63d96ee2d8 MDL-80950 external: Fix PHP deprecated error for explode()
This patch fixes the following error:
PHP Deprecated:  explode(): Passing null to parameter #2 ($string)
of type string is deprecated in lib/upgradelib.php on line 1299
2024-02-15 17:52:40 +01:00
sam marshall 4f3822bba9 MDL-80805 core_form: Accessibility - add aria-required to form fields
Most types of form field will now include aria-required="true" if the
field is marked as required. This causes assistive technology to inform
users that the field is required.

Before this change, in some cases (e.g. screen reader users tabbing
through fields) users were not informed that a field is required.
2024-02-15 15:00:42 +00:00
Sara Arjona e4bbd79059 weekly release 4.3.3+ 2024-02-15 15:39:42 +01:00
Sara Arjona fe2f6bbe27 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-02-15 15:39:38 +01:00
lihidor 7f489efdde MDL-62404 mod_quiz: Delete previews after repaginate 2024-02-15 11:00:34 +00:00
Simey Lameze a0ce4d0c52 MDL-80613 behat: convert manual completion steps to use generators 2024-02-15 18:00:06 +08:00
Huong Nguyen f7f0ab2403 Merge branch 'MDL-80823-wwwroot-redirect-MOODLE_403_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_403_STABLE 2024-02-15 11:13:56 +07:00
Mathew May 3fcfe24a7e MDL-78944 gradereport_grader: Spurious behat fix 2024-02-15 10:46:34 +08:00
Jake Dallimore 194baa7436 MDL-80836 auth_lti: take user through login instead of sesspiggyback
Browsers are phasing out 3rd party cookies. Those which can be set are
partitioned to the top level embedding site, so piggybacking is
prevented. This will break the account linking process. This fix swaps
the piggyback for a login round trip, as originally intended, which
resolves the issue.
2024-02-15 10:37:39 +08:00
Stevani Andolo ffdb463148 MDL-80391 tiny_html: Fixed the loose focus in window manager 2024-02-15 10:07:57 +08:00
Alexander Van der Bellen ec0c5414b2 MDL-80917 core_backup: Clear restored course cache 2024-02-15 09:09:41 +08:00
Paul Holden 7f1caa7c57 MDL-80936 reportbuilder: fix when default customfield values are shown.
We should ensure we only show a value for the custom field (default or
otherwise) when it's actually joined to an entity it represents.
2024-02-14 12:22:47 +00:00
Sara Arjona 75b3874f97 Merge branch 'MDL-79321-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-02-14 09:35:28 +01:00
Angelia Dela Cruz 7d5ff8512a MDL-79321 mod_quiz: Behat to set quiz as interactive with multiple tries 2024-02-13 16:41:50 +08:00
Jun Pataleta 8b009ba789 Merge branch 'MDL-80402-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-02-13 15:52:10 +08:00
Jun Pataleta 28f306aac9 Merge branch 'MDL-80766-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-13 15:34:29 +08:00
Angelia Dela Cruz ab38bff9df MDL-80402 mod_quiz: Behat for interactive quiz question dependency 2024-02-13 10:44:03 +08:00
Huong Nguyen 9892a5c5fc Merge branch 'MDL-80630_403' of https://github.com/PhilippImhof/moodle into MOODLE_403_STABLE 2024-02-13 09:30:50 +07:00
Huong Nguyen 5ac04b4066 Merge branch 'MDL-80869-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-13 09:14:36 +07:00
Huong Nguyen b83ed4284e Merge branch 'MDL-80326-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-02-13 08:55:50 +07:00
AMOS bot 119dc62c26 Automatically generated installer lang files 2024-02-13 00:10:27 +00:00
AMOS bot c57f73b11f Automatically generated installer lang files 2024-02-12 00:11:21 +00:00
Jake Dallimore 0f84dd778b Moodle release 4.3.3 2024-02-09 10:33:30 +08:00
Paul Holden 78c1fbac60 MDL-80868 question: correct deleted format plugin definitions. 2024-02-08 16:15:31 +00:00
Sara Arjona fb7872a5d3 weekly release 4.3.2+ 2024-02-08 16:18:12 +01:00
Sara Arjona 67dd781b75 NOBUG: Fixed SVG browser compatibility 2024-02-08 16:18:09 +01:00
Paul Holden 71b2e366cd MDL-80869 mod_bigbluebuttonbn: ensure test retrieves expected record. 2024-02-08 13:22:05 +00:00
Sara Arjona 5780b8c228 Merge branch 'MDL-80544-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 11:26:47 +01:00
Paul Holden 8116bf4059 MDL-80544 h5p: add v126 library to list of standard plugins. 2024-02-08 10:12:54 +00:00
Philipp Imhof ffce63d647 MDL-80630 mod_quiz: keep timer hidden across pages
If a student hides the timer, store that setting in their user
preferences in order to keep it hidden even if they go from one page
to another in a quiz.
2024-02-08 09:43:58 +01:00
Laurent David 7a03a909a1 MDL-80326 course_format: Visibility changes only when capability is set
* When an editing teacher has not the capability to change visibility
(for example if for a given module the capability is removed), the visibility
drop down menu in the card should not be available.
2024-02-08 09:21:30 +01:00
Huong Nguyen 53f840cd4a Merge branch 'MDL-80809-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 16:06:15 +08:00
Andrew Nicols a32d53f1aa Merge branch 'MDL-80768-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 16:06:15 +08:00
Ilya Tregubov 556a285702 MDL-80504 forum: Fix seperate group mode 2024-02-08 16:06:14 +08:00
Ilya Tregubov 126d617b77 Merge branch 'MDL-80753-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-02-08 16:06:14 +08:00
Andrew Nicols 8a344dbe0b Merge branch 'MDL-80738-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 16:06:14 +08:00
Huong Nguyen 88828ee3af MDL-80544 h5plib: Use the correct plugin version 2024-02-08 16:06:14 +08:00
Ilya Tregubov 393f787b8f Merge branch 'MDL-80716-MOODLE_403_STABLE' of https://github.com/sh-csg/moodle into MOODLE_403_STABLE 2024-02-08 16:06:13 +08:00
Leon Stringer 4b9f6e77d3 MDL-80501 mod_h5pactivity: activity group mode
Respect activity's group mode when checking access to the report.
Previously only the course's group mode was checked.
2024-02-08 16:06:13 +08:00
Huong Nguyen 4528d12f52 Merge branch 'MDL-80544-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-02-08 16:06:13 +08:00
Huong Nguyen 30e1117ed1 Merge branch 'MDL-80832-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-02-08 16:06:12 +08:00
Daniel Ziegenberg ff90193c15 MDL-80648 files: extend xsendfilealiases
Add missing entry for custom $CFG->localrequestdir locations in the
preconfigured array for $CFG->xsendfilealiases in config-dist.php.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-02-08 16:06:12 +08:00
Andrew Nicols f2b0e454e6 Merge branch 'MDL-80803-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 16:06:12 +08:00
Andrew Nicols 2264b79dbe Merge branch 'MDL-36733-MOODLE_403_STABLE' of https://github.com/PascalHamar/moodle into MOODLE_403_STABLE 2024-02-08 16:06:12 +08:00
Andrew Nicols b03d9fcc3f Merge branch 'MDL-80667-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 16:06:11 +08:00
Ilya Tregubov f13b4e0caf Merge branch 'MDL-78173-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 16:06:11 +08:00
Sara Arjona 15b019781d Merge branch 'MDL-80392-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-02-08 16:06:11 +08:00
Sara Arjona fff830198f Merge branch 'mdl-78095-403' of https://github.com/james-cnz/moodle into MOODLE_403_STABLE 2024-02-08 16:06:10 +08:00
Sara Arjona 45a503f086 Merge branch 'MDL-74500-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 16:06:10 +08:00
Sara Arjona a184b0b1fb Merge branch 'MDL-80808_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-02-08 16:06:05 +08:00
Sara Arjona 3feb4e3b22 Merge branch 'MDL-79514-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 15:45:36 +08:00
Sara Arjona 571be8e18c Merge branch 'MDL-79577-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 15:45:36 +08:00
Jun Pataleta a20fdb53f5 Merge branch 'MDL-80784-403' of https://github.com/noeldemartin/moodle into MOODLE_403_STABLE 2024-02-08 15:45:36 +08:00
Ilya Tregubov 6a8d0fb2b0 MDL-69774 mod_forum: Restrict URL to accpet only expected params 2024-02-08 15:45:35 +08:00
Huong Nguyen 2283877ba6 Merge branch 'MDL-78417-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 15:45:35 +08:00
Huong Nguyen d6cd2eb5fe Merge branch 'MDL-80512-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 15:45:35 +08:00
Brendan Heywood f443edd43e MDL-80823 core: Redirect to wwwroot with full path 2024-02-08 12:08:47 +11:00
Paul Holden f32d3af553 MDL-74500 profilefield_checkbox: override show/empty class methods. 2024-02-07 14:13:51 +00:00
Paul Holden 120e0af3de MDL-80338 core: encode moodle_url instance anchor properties. 2024-02-07 12:21:33 +00:00
Ilya Tregubov 224dbd8063 Merge branch 'MDL-80124-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-07 13:16:25 +08:00
Ilya Tregubov 18d692f70b Merge branch 'MDL-80324-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-07 13:12:23 +08:00
Jun Pataleta 219899c8ce Merge branch 'MDL-70058-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-07 12:31:34 +08:00
Jun Pataleta 4f45925082 Merge branch '403_check_cached_empty_modnames' of https://github.com/opitz/moodle into MOODLE_403_STABLE 2024-02-07 11:17:54 +08:00
David Woloszyn 84150d8909 MDL-80832 communication_matrix: Fix regression caused by MDL-80403 2024-02-07 14:10:42 +11:00
Jun Pataleta 7a79c4d751 Merge branch 'MDL-75081-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-07 10:37:19 +08:00
Ilya Tregubov b0f737dbb9 Merge branch 'MDL-79433-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-07 10:13:00 +08:00
meirzamoodle 5907407061 MDL-74641 repository: Fix wrong increment of temporary file for small sizes 2024-02-07 02:34:18 +01:00
meirzamoodle 427b0d3fee MDL-74641 repository: Handles increase bytes while extracting zip files
We should not rely solely on the provided size information.
Therefore the system needs to recalculate the size of each file in the zip file,
whether small or big.

The changes also cover the filemanager.js file if an error appears.
2024-02-07 02:34:18 +01:00
meirzamoodle 5ea392de64 MDL-78300 block: Determine if users can comment based on context 2024-02-07 02:34:18 +01:00
Paul Holden 3ed8b67746 MDL-54749 tool_langimport: require sesskey to update lang packs. 2024-02-07 02:34:18 +01:00
Ilya Tregubov f8d5db3ea7 Merge branch 'MDL-79527_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-02-07 09:28:28 +08:00
Ilya Tregubov b681fa9b5f Merge branch 'MDL-80767-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-07 09:01:52 +08:00
Ilya Tregubov 44dd499b96 Merge branch 'MDL-78621-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-07 08:57:04 +08:00
Jun Pataleta bc763d3c0a Merge branch 'MDL-80693-m403' of https://github.com/sammarshallou/moodle into MOODLE_403_STABLE 2024-02-07 08:32:54 +08:00
Paul Holden 0492cbf9b7 MDL-75081 grade: fix rogue gradebook scenarios containing invalid steps.
Various re-factors over recent releases appear to have led to quite a
drift between actual functionality and what these scenarios assert for
imagined functionality. Page elements and content are referenced that
don't exist in multiple places.
2024-02-06 17:31:48 +00:00
Paul Holden 437738f488 MDL-75081 behat: define new heading named selector.
Co-authored-by: Jun Pataleta <jun@moodle.com>
2024-02-06 17:06:50 +00:00
Paul Holden 3932499ea6 MDL-75081 behat: correct tests of table contents asserting one column.
Prior to this change, assertions of "should exist" and "should not
exist" in table content, where the step provided only a single column,
could give false positives and pass (when they shouldn't).
2024-02-06 16:41:25 +00:00
Paul Holden ad4046a5a2 Merge branch 'MDL-80735-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-02-06 15:26:47 +00:00
Marina Glancy df7b18b9bc MDL-80735 reportbuilder: do not render filters form during download
this removes unnecessary calculations and also prevents the session mutation
2024-02-06 14:52:38 +00:00
Sara Arjona ad287dc5e5 Merge branch 'MDL-80816_403' of https://github.com/stronk7/moodle into MOODLE_403_STABLE 2024-02-06 15:51:47 +01:00
Tim Hunt a99bebe766 MDL-80834 quiz editing: fix position of the 'depends on previous' icon 2024-02-06 11:31:41 +00:00
Juan Leyva b9c148dbde MDL-80392 completion: Temporary fix for completion state via exporters 2024-02-06 11:05:06 +01:00
Jun Pataleta 0f64786579 Merge branch 'MDL-80725-403-enfix' of https://github.com/mudrd8mz/moodle into MOODLE_403_STABLE 2024-02-06 15:58:56 +08:00
Sara Arjona 1011b7166b MDL-80544 core_h5p: Remove the h5plib_v124 plugin
The h5plib_v124 plugin can be removed because it has been replaced
with h5plib_v126, which is using the latest versions of the
libraries.
2024-02-06 08:11:33 +01:00
Sara Arjona ee44b0bf5c MDL-80544 core_h5p: Add core lib changes after upgrading it 2024-02-06 08:10:04 +01:00
Sara Arjona db242167a3 MDL-80544 core_h5p: Upgrade core lib to 1.26
This commit is upgrading the joubel/core library to the one
tagged as 1.26 (which also increases the coreApi minorVersion).
That's why the previous commit was duplicating the existing
h5plib_v124.
This tag is also pointing to the same tag that the mod_hvp is using
too: https://github.com/h5p/moodle-mod_hvp/releases/tag/1.26.1
2024-02-06 08:10:04 +01:00
Sara Arjona 510bbe8a53 MDL-80544 h5plib: Create first version of h5plib_v126
AMOS BEGIN
 CPY [editor:a11ytitleshowlabel,h5plib_v124],[editor:a11ytitleshowlabel,h5plib_v126]
 CPY [editor:a11ytitlehidelabel,h5plib_v124],[editor:a11ytitlehidelabel,h5plib_v126]
 CPY [editor:atoz,h5plib_v124],[editor:atoz,h5plib_v126]
 CPY [editor:add,h5plib_v124],[editor:add,h5plib_v126]
 CPY [editor:addauthor,h5plib_v124],[editor:addauthor,h5plib_v126]
 CPY [editor:addentity,h5plib_v124],[editor:addentity,h5plib_v126]
 CPY [editor:addfile,h5plib_v124],[editor:addfile,h5plib_v126]
 CPY [editor:addnewchange,h5plib_v124],[editor:addnewchange,h5plib_v126]
 CPY [editor:addtitle,h5plib_v124],[editor:addtitle,h5plib_v126]
 CPY [editor:addvideodescription,h5plib_v124],[editor:addvideodescription,h5plib_v126]
 CPY [editor:avtablistlabel,h5plib_v124],[editor:avtablistlabel,h5plib_v126]
 CPY [editor:belowmin,h5plib_v124],[editor:belowmin,h5plib_v126]
 CPY [editor:cancel,h5plib_v124],[editor:cancel,h5plib_v126]
 CPY [editor:cancellabel,h5plib_v124],[editor:cancellabel,h5plib_v126]
 CPY [editor:changefile,h5plib_v124],[editor:changefile,h5plib_v126]
 CPY [editor:changelanguage,h5plib_v124],[editor:changelanguage,h5plib_v126]
 CPY [editor:changelibrary,h5plib_v124],[editor:changelibrary,h5plib_v126]
 CPY [editor:changelogdescription,h5plib_v124],[editor:changelogdescription,h5plib_v126]
 CPY [editor:close,h5plib_v124],[editor:close,h5plib_v126]
 CPY [editor:commonfields,h5plib_v124],[editor:commonfields,h5plib_v126]
 CPY [editor:commonfieldsdescription,h5plib_v124],[editor:commonfieldsdescription,h5plib_v126]
 CPY [editor:confirmchangelibrary,h5plib_v124],[editor:confirmchangelibrary,h5plib_v126]
 CPY [editor:confirmdeletechangelog,h5plib_v124],[editor:confirmdeletechangelog,h5plib_v126]
 CPY [editor:confirmimageremoval,h5plib_v124],[editor:confirmimageremoval,h5plib_v126]
 CPY [editor:confirmpastebuttontext,h5plib_v124],[editor:confirmpastebuttontext,h5plib_v126]
 CPY [editor:confirmpastecontent,h5plib_v124],[editor:confirmpastecontent,h5plib_v126]
 CPY [editor:confirmremoval,h5plib_v124],[editor:confirmremoval,h5plib_v126]
 CPY [editor:confirmremoveauthor,h5plib_v124],[editor:confirmremoveauthor,h5plib_v126]
 CPY [editor:contenttypebackbuttonlabel,h5plib_v124],[editor:contenttypebackbuttonlabel,h5plib_v126]
 CPY [editor:contenttypecacheoutdated,h5plib_v124],[editor:contenttypecacheoutdated,h5plib_v126]
 CPY [editor:contenttypecacheoutdateddesc,h5plib_v124],[editor:contenttypecacheoutdateddesc,h5plib_v126]
 CPY [editor:contenttypedemobuttonlabel,h5plib_v124],[editor:contenttypedemobuttonlabel,h5plib_v126]
 CPY [editor:contenttypedetailbuttonlabel,h5plib_v124],[editor:contenttypedetailbuttonlabel,h5plib_v126]
 CPY [editor:contenttypegetbuttonlabel,h5plib_v124],[editor:contenttypegetbuttonlabel,h5plib_v126]
 CPY [editor:contenttypeiconalttext,h5plib_v124],[editor:contenttypeiconalttext,h5plib_v126]
 CPY [editor:contenttypeinstallbuttonlabel,h5plib_v124],[editor:contenttypeinstallbuttonlabel,h5plib_v126]
 CPY [editor:contenttypeinstallerror,h5plib_v124],[editor:contenttypeinstallerror,h5plib_v126]
 CPY [editor:contenttypeinstallsuccess,h5plib_v124],[editor:contenttypeinstallsuccess,h5plib_v126]
 CPY [editor:contenttypeinstallingbuttonlabel,h5plib_v124],[editor:contenttypeinstallingbuttonlabel,h5plib_v126]
 CPY [editor:contenttypelicensepaneltitle,h5plib_v124],[editor:contenttypelicensepaneltitle,h5plib_v126]
 CPY [editor:contenttypenotinstalled,h5plib_v124],[editor:contenttypenotinstalled,h5plib_v126]
 CPY [editor:contenttypenotinstalleddesc,h5plib_v124],[editor:contenttypenotinstalleddesc,h5plib_v126]
 CPY [editor:contenttypeowner,h5plib_v124],[editor:contenttypeowner,h5plib_v126]
 CPY [editor:contenttyperestricted,h5plib_v124],[editor:contenttyperestricted,h5plib_v126]
 CPY [editor:contenttyperestricteddesc,h5plib_v124],[editor:contenttyperestricteddesc,h5plib_v126]
 CPY [editor:contenttypesearchfieldplaceholder,h5plib_v124],[editor:contenttypesearchfieldplaceholder,h5plib_v126]
 CPY [editor:contenttypesectionall,h5plib_v124],[editor:contenttypesectionall,h5plib_v126]
 CPY [editor:contenttypeunsupportedapiversioncontent,h5plib_v124],[editor:contenttypeunsupportedapiversioncontent,h5plib_v126]
 CPY [editor:contenttypeunsupportedapiversiontitle,h5plib_v124],[editor:contenttypeunsupportedapiversiontitle,h5plib_v126]
 CPY [editor:contenttypeupdateavailable,h5plib_v124],[editor:contenttypeupdateavailable,h5plib_v126]
 CPY [editor:contenttypeupdatebuttonlabel,h5plib_v124],[editor:contenttypeupdatebuttonlabel,h5plib_v126]
 CPY [editor:contenttypeupdatesuccess,h5plib_v124],[editor:contenttypeupdatesuccess,h5plib_v126]
 CPY [editor:contenttypeupdatingbuttonlabel,h5plib_v124],[editor:contenttypeupdatingbuttonlabel,h5plib_v126]
 CPY [editor:contenttypeusebuttonlabel,h5plib_v124],[editor:contenttypeusebuttonlabel,h5plib_v126]
 CPY [editor:contributetranslations,h5plib_v124],[editor:contributetranslations,h5plib_v126]
 CPY [editor:copiedbutton,h5plib_v124],[editor:copiedbutton,h5plib_v126]
 CPY [editor:copiedtoclipboard,h5plib_v124],[editor:copiedtoclipboard,h5plib_v126]
 CPY [editor:copybutton,h5plib_v124],[editor:copybutton,h5plib_v126]
 CPY [editor:copytoclipboard,h5plib_v124],[editor:copytoclipboard,h5plib_v126]
 CPY [editor:createcontenttablabel,h5plib_v124],[editor:createcontenttablabel,h5plib_v126]
 CPY [editor:currentmenuselected,h5plib_v124],[editor:currentmenuselected,h5plib_v126]
 CPY [editor:editcopyright,h5plib_v124],[editor:editcopyright,h5plib_v126]
 CPY [editor:editimage,h5plib_v124],[editor:editimage,h5plib_v126]
 CPY [editor:editmode,h5plib_v124],[editor:editmode,h5plib_v126]
 CPY [editor:enteraudiotitle,h5plib_v124],[editor:enteraudiotitle,h5plib_v126]
 CPY [editor:enteraudiourl,h5plib_v124],[editor:enteraudiourl,h5plib_v126]
 CPY [editor:enterfullscreenbuttonlabel,h5plib_v124],[editor:enterfullscreenbuttonlabel,h5plib_v126]
 CPY [editor:entervideotitle,h5plib_v124],[editor:entervideotitle,h5plib_v126]
 CPY [editor:entervideourl,h5plib_v124],[editor:entervideourl,h5plib_v126]
 CPY [editor:errorcalculatingmaxscore,h5plib_v124],[editor:errorcalculatingmaxscore,h5plib_v126]
 CPY [editor:errorcommunicatinghubcontent,h5plib_v124],[editor:errorcommunicatinghubcontent,h5plib_v126]
 CPY [editor:errorcommunicatinghubtitle,h5plib_v124],[editor:errorcommunicatinghubtitle,h5plib_v126]
 CPY [editor:errorheader,h5plib_v124],[editor:errorheader,h5plib_v126]
 CPY [editor:errornotsupported,h5plib_v124],[editor:errornotsupported,h5plib_v126]
 CPY [editor:errorparamsbroken,h5plib_v124],[editor:errorparamsbroken,h5plib_v126]
 CPY [editor:errortoohighversion,h5plib_v124],[editor:errortoohighversion,h5plib_v126]
 CPY [editor:example,h5plib_v124],[editor:example,h5plib_v126]
 CPY [editor:exceedsmax,h5plib_v124],[editor:exceedsmax,h5plib_v126]
 CPY [editor:exitfullscreenbuttonlabel,h5plib_v124],[editor:exitfullscreenbuttonlabel,h5plib_v126]
 CPY [editor:expandcollapse,h5plib_v124],[editor:expandcollapse,h5plib_v126]
 CPY [editor:filetolarge,h5plib_v124],[editor:filetolarge,h5plib_v126]
 CPY [editor:fillinthefieldsbelow,h5plib_v124],[editor:fillinthefieldsbelow,h5plib_v126]
 CPY [editor:gethelp,h5plib_v124],[editor:gethelp,h5plib_v126]
 CPY [editor:h5pfileuploadservererrorcontent,h5plib_v124],[editor:h5pfileuploadservererrorcontent,h5plib_v126]
 CPY [editor:h5pfileuploadservererrortitle,h5plib_v124],[editor:h5pfileuploadservererrortitle,h5plib_v126]
 CPY [editor:h5pfilevalidationfailedcontent,h5plib_v124],[editor:h5pfilevalidationfailedcontent,h5plib_v126]
 CPY [editor:h5pfilevalidationfailedtitle,h5plib_v124],[editor:h5pfilevalidationfailedtitle,h5plib_v126]
 CPY [editor:h5pfilewrongextensioncontent,h5plib_v124],[editor:h5pfilewrongextensioncontent,h5plib_v126]
 CPY [editor:h5pfilewrongextensiontitle,h5plib_v124],[editor:h5pfilewrongextensiontitle,h5plib_v126]
 CPY [editor:height,h5plib_v124],[editor:height,h5plib_v126]
 CPY [editor:hide,h5plib_v124],[editor:hide,h5plib_v126]
 CPY [editor:hideimportantinstructions,h5plib_v124],[editor:hideimportantinstructions,h5plib_v126]
 CPY [editor:hubpanellabel,h5plib_v124],[editor:hubpanellabel,h5plib_v126]
 CPY [editor:illegaldecimalnumber,h5plib_v124],[editor:illegaldecimalnumber,h5plib_v126]
 CPY [editor:imagelightboxprogress,h5plib_v124],[editor:imagelightboxprogress,h5plib_v126]
 CPY [editor:imagelightboxtitle,h5plib_v124],[editor:imagelightboxtitle,h5plib_v126]
 CPY [editor:importantinstructions,h5plib_v124],[editor:importantinstructions,h5plib_v126]
 CPY [editor:insert,h5plib_v124],[editor:insert,h5plib_v126]
 CPY [editor:invalidformat,h5plib_v124],[editor:invalidformat,h5plib_v126]
 CPY [editor:language,h5plib_v124],[editor:language,h5plib_v126]
 CPY [editor:librarymissing,h5plib_v124],[editor:librarymissing,h5plib_v126]
 CPY [editor:licensecandistribute,h5plib_v124],[editor:licensecandistribute,h5plib_v126]
 CPY [editor:licensecanholdliable,h5plib_v124],[editor:licensecanholdliable,h5plib_v126]
 CPY [editor:licensecanmodify,h5plib_v124],[editor:licensecanmodify,h5plib_v126]
 CPY [editor:licensecansublicense,h5plib_v124],[editor:licensecansublicense,h5plib_v126]
 CPY [editor:licensecanusecommercially,h5plib_v124],[editor:licensecanusecommercially,h5plib_v126]
 CPY [editor:licensecannotholdliable,h5plib_v124],[editor:licensecannotholdliable,h5plib_v126]
 CPY [editor:licensedescription,h5plib_v124],[editor:licensedescription,h5plib_v126]
 CPY [editor:licensefetchdetailsfailed,h5plib_v124],[editor:licensefetchdetailsfailed,h5plib_v126]
 CPY [editor:licensemodalsubtitle,h5plib_v124],[editor:licensemodalsubtitle,h5plib_v126]
 CPY [editor:licensemodaltitle,h5plib_v124],[editor:licensemodaltitle,h5plib_v126]
 CPY [editor:licensemustincludecopyright,h5plib_v124],[editor:licensemustincludecopyright,h5plib_v126]
 CPY [editor:licensemustincludelicense,h5plib_v124],[editor:licensemustincludelicense,h5plib_v126]
 CPY [editor:licenseunspecified,h5plib_v124],[editor:licenseunspecified,h5plib_v126]
 CPY [editor:listbelowmin,h5plib_v124],[editor:listbelowmin,h5plib_v126]
 CPY [editor:listexceedsmax,h5plib_v124],[editor:listexceedsmax,h5plib_v126]
 CPY [editor:listlabel,h5plib_v124],[editor:listlabel,h5plib_v126]
 CPY [editor:loading,h5plib_v124],[editor:loading,h5plib_v126]
 CPY [editor:loadingimageeditor,h5plib_v124],[editor:loadingimageeditor,h5plib_v126]
 CPY [editor:logthischange,h5plib_v124],[editor:logthischange,h5plib_v126]
 CPY [editor:loggedchanges,h5plib_v124],[editor:loggedchanges,h5plib_v126]
 CPY [editor:maxscoresemanticsmissing,h5plib_v124],[editor:maxscoresemanticsmissing,h5plib_v126]
 CPY [editor:metadata,h5plib_v124],[editor:metadata,h5plib_v126]
 CPY [editor:metadatasharingandlicensinginfo,h5plib_v124],[editor:metadatasharingandlicensinginfo,h5plib_v126]
 CPY [editor:missingproperty,h5plib_v124],[editor:missingproperty,h5plib_v126]
 CPY [editor:missingtranslation,h5plib_v124],[editor:missingtranslation,h5plib_v126]
 CPY [editor:newchangehasbeenlogged,h5plib_v124],[editor:newchangehasbeenlogged,h5plib_v126]
 CPY [editor:newestfirst,h5plib_v124],[editor:newestfirst,h5plib_v126]
 CPY [editor:nextimage,h5plib_v124],[editor:nextimage,h5plib_v126]
 CPY [editor:nochangeshavebeenlogged,h5plib_v124],[editor:nochangeshavebeenlogged,h5plib_v126]
 CPY [editor:nocontenttypesavailable,h5plib_v124],[editor:nocontenttypesavailable,h5plib_v126]
 CPY [editor:nocontenttypesavailabledesc,h5plib_v124],[editor:nocontenttypesavailabledesc,h5plib_v126]
 CPY [editor:nofollow,h5plib_v124],[editor:nofollow,h5plib_v126]
 CPY [editor:notimageordimensionsfield,h5plib_v124],[editor:notimageordimensionsfield,h5plib_v126]
 CPY [editor:numresults,h5plib_v124],[editor:numresults,h5plib_v126]
 CPY [editor:numberfield,h5plib_v124],[editor:numberfield,h5plib_v126]
 CPY [editor:ok,h5plib_v124],[editor:ok,h5plib_v126]
 CPY [editor:onlynumbers,h5plib_v124],[editor:onlynumbers,h5plib_v126]
 CPY [editor:or,h5plib_v124],[editor:or,h5plib_v126]
 CPY [editor:orderitemdown,h5plib_v124],[editor:orderitemdown,h5plib_v126]
 CPY [editor:orderitemup,h5plib_v124],[editor:orderitemup,h5plib_v126]
 CPY [editor:outofstep,h5plib_v124],[editor:outofstep,h5plib_v126]
 CPY [editor:pasteandreplacebutton,h5plib_v124],[editor:pasteandreplacebutton,h5plib_v126]
 CPY [editor:pasteandreplacefromclipboard,h5plib_v124],[editor:pasteandreplacefromclipboard,h5plib_v126]
 CPY [editor:pastebutton,h5plib_v124],[editor:pastebutton,h5plib_v126]
 CPY [editor:pastecontent,h5plib_v124],[editor:pastecontent,h5plib_v126]
 CPY [editor:pastecontentnotsupported,h5plib_v124],[editor:pastecontentnotsupported,h5plib_v126]
 CPY [editor:pastecontentrestricted,h5plib_v124],[editor:pastecontentrestricted,h5plib_v126]
 CPY [editor:pasteerror,h5plib_v124],[editor:pasteerror,h5plib_v126]
 CPY [editor:pastefromclipboard,h5plib_v124],[editor:pastefromclipboard,h5plib_v126]
 CPY [editor:pastenocontent,h5plib_v124],[editor:pastenocontent,h5plib_v126]
 CPY [editor:pastetoonew,h5plib_v124],[editor:pastetoonew,h5plib_v126]
 CPY [editor:pastetooold,h5plib_v124],[editor:pastetooold,h5plib_v126]
 CPY [editor:popularfirst,h5plib_v124],[editor:popularfirst,h5plib_v126]
 CPY [editor:previousimage,h5plib_v124],[editor:previousimage,h5plib_v126]
 CPY [editor:proceedbuttonlabel,h5plib_v124],[editor:proceedbuttonlabel,h5plib_v126]
 CPY [editor:readless,h5plib_v124],[editor:readless,h5plib_v126]
 CPY [editor:readmore,h5plib_v124],[editor:readmore,h5plib_v126]
 CPY [editor:recentlyusedfirst,h5plib_v124],[editor:recentlyusedfirst,h5plib_v126]
 CPY [editor:reloadbuttonlabel,h5plib_v124],[editor:reloadbuttonlabel,h5plib_v126]
 CPY [editor:removefile,h5plib_v124],[editor:removefile,h5plib_v126]
 CPY [editor:removeimage,h5plib_v124],[editor:removeimage,h5plib_v126]
 CPY [editor:removeitem,h5plib_v124],[editor:removeitem,h5plib_v126]
 CPY [editor:requiredproperty,h5plib_v124],[editor:requiredproperty,h5plib_v126]
 CPY [editor:resettooriginallabel,h5plib_v124],[editor:resettooriginallabel,h5plib_v126]
 CPY [editor:savelabel,h5plib_v124],[editor:savelabel,h5plib_v126]
 CPY [editor:savemetadata,h5plib_v124],[editor:savemetadata,h5plib_v126]
 CPY [editor:screenshots,h5plib_v124],[editor:screenshots,h5plib_v126]
 CPY [editor:scriptmissing,h5plib_v124],[editor:scriptmissing,h5plib_v126]
 CPY [editor:searchresults,h5plib_v124],[editor:searchresults,h5plib_v126]
 CPY [editor:selectfiletoupload,h5plib_v124],[editor:selectfiletoupload,h5plib_v126]
 CPY [editor:selectlibrary,h5plib_v124],[editor:selectlibrary,h5plib_v126]
 CPY [editor:semanticserror,h5plib_v124],[editor:semanticserror,h5plib_v126]
 CPY [editor:show,h5plib_v124],[editor:show,h5plib_v126]
 CPY [editor:showimportantinstructions,h5plib_v124],[editor:showimportantinstructions,h5plib_v126]
 CPY [editor:tabtitlebasicfileupload,h5plib_v124],[editor:tabtitlebasicfileupload,h5plib_v126]
 CPY [editor:tabtitleinputlinkurl,h5plib_v124],[editor:tabtitleinputlinkurl,h5plib_v126]
 CPY [editor:textfield,h5plib_v124],[editor:textfield,h5plib_v126]
 CPY [editor:thecontenttype,h5plib_v124],[editor:thecontenttype,h5plib_v126]
 CPY [editor:thiswillpotentially,h5plib_v124],[editor:thiswillpotentially,h5plib_v126]
 CPY [editor:title,h5plib_v124],[editor:title,h5plib_v126]
 CPY [editor:toolong,h5plib_v124],[editor:toolong,h5plib_v126]
 CPY [editor:tryagain,h5plib_v124],[editor:tryagain,h5plib_v126]
 CPY [editor:tutorial,h5plib_v124],[editor:tutorial,h5plib_v126]
 CPY [editor:unabletointerpreterror,h5plib_v124],[editor:unabletointerpreterror,h5plib_v126]
 CPY [editor:unabletointerpretsolution,h5plib_v124],[editor:unabletointerpretsolution,h5plib_v126]
 CPY [editor:unknownfieldpath,h5plib_v124],[editor:unknownfieldpath,h5plib_v126]
 CPY [editor:uploadinstructionstitle,h5plib_v124],[editor:uploadinstructionstitle,h5plib_v126]
 CPY [editor:uploadplaceholder,h5plib_v124],[editor:uploadplaceholder,h5plib_v126]
 CPY [editor:uploadsuccess,h5plib_v124],[editor:uploadsuccess,h5plib_v126]
 CPY [editor:uploadtablabel,h5plib_v124],[editor:uploadtablabel,h5plib_v126]
 CPY [editor:uploadvideotitle,h5plib_v124],[editor:uploadvideotitle,h5plib_v126]
 CPY [editor:uploading,h5plib_v124],[editor:uploading,h5plib_v126]
 CPY [editor:uploadingthrobber,h5plib_v124],[editor:uploadingthrobber,h5plib_v126]
 CPY [editor:usedforsearchingreportsandcopyrightinformation,h5plib_v124],[editor:usedforsearchingreportsandcopyrightinformation,h5plib_v126]
 CPY [editor:videoquality,h5plib_v124],[editor:videoquality,h5plib_v126]
 CPY [editor:videoqualitydefaultlabel,h5plib_v124],[editor:videoqualitydefaultlabel,h5plib_v126]
 CPY [editor:videoqualitydescription,h5plib_v124],[editor:videoqualitydescription,h5plib_v126]
 CPY [editor:warningchangebrowsingtoseeresults,h5plib_v124],[editor:warningchangebrowsingtoseeresults,h5plib_v126]
 CPY [editor:warningnocontenttypesinstalled,h5plib_v124],[editor:warningnocontenttypesinstalled,h5plib_v126]
 CPY [editor:warningupdateavailablebody,h5plib_v124],[editor:warningupdateavailablebody,h5plib_v126]
 CPY [editor:warningupdateavailabletitle,h5plib_v124],[editor:warningupdateavailabletitle,h5plib_v126]
 CPY [editor:width,h5plib_v124],[editor:width,h5plib_v126]
AMOS END
2024-02-06 08:10:03 +01:00
Jun Pataleta 42f5f85440 Merge branch 'MDL-72703-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-06 12:10:17 +08:00
Ilya Tregubov 226ed0720c Merge branch 'MDL-80713-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-02-06 11:20:00 +08:00
Tim Hunt 7a8178bb64 MDL-80808 quiz: improve message when the student can't review 2024-02-05 10:49:04 +00:00
Jun Pataleta 7ddd5b33e7 Merge branch 'MDL-80060-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-05 16:06:53 +08:00
Huong Nguyen 54bbef1f5b Merge branch 'MDL-80811-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-05 13:42:21 +07:00
Huong Nguyen e756e542d0 Merge branch 'MDL-80718-403' of https://github.com/dpalou/moodle into MOODLE_403_STABLE 2024-02-05 13:37:21 +07:00
Huong Nguyen 468be1ea44 Merge branch 'MDL-67772-email-thread-headers-MOODLE_403_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_403_STABLE 2024-02-05 13:33:33 +07:00
Jun Pataleta 2209f6a8f1 Merge branch 'MDL-80694-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-02-05 14:26:59 +08:00
Huong Nguyen 4a07c82f34 Merge branch 'MDL-80537_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-02-05 11:28:44 +07:00
Huong Nguyen cfcf3ab6a9 MDL-80713 Unit Tests: Message sink improvement
- Added a new method called get_messages_by_component()
  This method will help to retreive the redirected messages
  of specific component only
- Added a new method called get_messages_by_component_and_type()
  This method will help to retreive the redirected messages
  of specific component and type only
2024-02-05 09:24:34 +07:00
Eloy Lafuente (stronk7) cc4a3ee105 MDL-80816 core: Bump actions to newer versions
All the new ones are Nodejs 20 based, because
Nodejs 16 is being deprecated @ GH environments.

https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20
2024-02-02 17:16:13 +01:00
Tim Hunt eee0a8e89f MDL-79527 questions: category tree loading handling bad data
It should always be the case that a question category and its parent
category belong to the same context. However, over the years, we have
observed that this becomes violated by some data in some Moodle sites.
(The suspicion is that this is a backup/restor bug of some sort which
has never been tracked down.)

Since this happens, we should make the code robust to it, which is what
this change does. It ensure that when loading child categories, we only
consider ones in the same context.
2024-02-02 11:35:23 +00:00
Ilya Tregubov 48fbf7ed14 weekly release 4.3.2+ 2024-02-02 08:56:22 +08:00
Ilya Tregubov 8387191264 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-02-02 08:56:19 +08:00
james-cnz 44a72bc059 MDL-78095 course: Respect is_bulk_editable() 2024-02-02 10:41:41 +13:00
Paul Holden b7d38b140f MDL-80811 mod_quiz: fix question preview popup event handling.
* Fix the selector used to identify the preview icon element;
* Remove redundant code for handling it's click event, because it
  already registers itself with a popup action which handles that.
2024-02-01 20:39:03 +00:00
David Mudrák 36febde242 MDL-80725 lang: Fix Behat regressions related to the question rename 2024-02-01 20:04:44 +01:00
David Mudrák a7bc47969e MDL-80725 lang: Fix Help and documentation regressions 2024-02-01 20:04:34 +01:00
Paul Holden f2358a0d24 MDL-80809 course: correct context arguments when formatting strings. 2024-02-01 18:16:23 +00:00
Tim Hunt 6505fbbdb1 MDL-80537 question bank: escape plain text display of question text 2024-02-01 16:26:54 +00:00
Paul Holden cfd56552f7 MDL-80803 course: observe mod availability before update notification. 2024-02-01 14:51:33 +00:00
Brendan Heywood 911d28ca9c MDL-67772 mod_forum: Fix email threading for first message 2024-02-01 16:26:59 +11:00
Huong Nguyen 74b3080301 Merge branch 'MDL-80485-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 11:31:00 +07:00
Huong Nguyen 9d3ca32e49 Merge branch 'MDL-80660-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 11:23:41 +07:00
Huong Nguyen 4791e99ecd Merge branch 'MDL-80538-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-02-01 11:17:58 +07:00
Simey Lameze 52695bbb94 MDL-80538 phpdoc: add missing null parameter type to phpdoc 2024-02-01 12:07:26 +08:00
info@eWallah.net 2e3a273b53 MDL-80538 phpdoc: Incorrect dataformat type documentation in table lib 2024-02-01 12:07:26 +08:00
Huong Nguyen e991ae96e2 Merge branch 'MDL-71665-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-02-01 11:06:54 +07:00
Huong Nguyen 3c78b6304e Merge branch 'MDL-80450-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 11:01:18 +07:00
Huong Nguyen 9e31deb6d8 Merge branch 'MDL-80692-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 10:57:31 +07:00
Huong Nguyen 8df121e399 Merge branch 'MDL-73010-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 10:50:21 +07:00
Jun Pataleta e7ebe317a5 Merge branch 'MDL-74775-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-02-01 11:47:08 +08:00
Huong Nguyen 455a187b0a Merge branch 'MDL-29261-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 10:45:33 +07:00
Huong Nguyen fa924d4936 Merge branch 'MDL-80706-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-02-01 10:43:56 +07:00
Jun Pataleta 10d5a2bb2a Merge branch 'MDL-80247-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 11:39:01 +08:00
Jun Pataleta 747c921e6c Merge branch 'MDL-79725-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-02-01 11:33:15 +08:00
Ilya Tregubov 43922d6125 Merge branch 'MDL-80202-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 10:39:08 +08:00
Ilya Tregubov af5161261c Merge branch 'MDL-80199-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 10:31:23 +08:00
Ilya Tregubov 7368993bb8 Merge branch 'MDL-80727-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-01 10:26:45 +08:00
Huong Nguyen c0930849d6 Merge branch 'MDL-80289-403' of https://github.com/call-learning/moodle into MOODLE_403_STABLE 2024-02-01 08:55:38 +07:00
David Mudrák 6142dd41f2 MDL-80725 lang: Use the fixed strings in tests, too 2024-01-31 22:11:01 +01:00
Helen Foster 1f2ac8c548 MDL-80725 lang: Import fixed English strings (en_fix) 2024-01-31 19:42:26 +01:00
Paul Holden c58a4359e8 MDL-80766 gradereport_grader: omit max constraint for unlimited grades. 2024-01-31 18:26:40 +00:00
Noel De Martin 9c23c1735e MDL-80784 behat: Disable SSL checks for app initialization 2024-01-31 14:08:51 +01:00
Ilya Tregubov ad243c92e5 Merge branch 'MDL-80575-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-31 09:24:53 +08:00
Paul Holden b6121b9d1a MDL-80767 theme_boost: right align process monitor to block drawer. 2024-01-31 00:03:26 +00:00
Paul Holden 40ae05718c MDL-80768 output: stricter progress bar component percentage type.
Avoid mixing float/string types, where the decimal separator could
vary according to current locale.
2024-01-30 23:28:40 +00:00
Paul Holden 0739484ac1 MDL-80738 quiz_statistics: ensure tests uses a DB-backed lock class.
Fix the test file/class name too.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2024-01-30 15:38:58 +00:00
Paul Holden c7f9966a35 MDL-80692 calendar: calculate today relative to users own timezone.
Co-authored-by: Archil Abuladze <armiworker@gmail.com>
2024-01-30 14:39:06 +00:00
Paul Holden 4a68477a49 MDL-74500 user: method to determine whether to show profile fields.
The new API replaces identical behaviour in existing calling code, but
allows for profile field types to override/separate the logic used to
show the field and determine whether it's empty
2024-01-30 11:33:58 +00:00
Paul Holden 73ea78fcc9 MDL-80485 tool_lp: consistent activity icon element styling. 2024-01-30 11:28:45 +00:00
Jun Pataleta d48e967e89 MDL-79674 behat: Use proper tags for testing WCAG 2.1 criteria
`wcag2a` and `wcag2aa` refer to WCAG 2.0 standards. We should be using
`wcag21a` and `wcag21aa` to test against WCAG 2.1 standards.

See:
https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#axe-core-tags
2024-01-30 16:21:02 +08:00
Jun Pataleta 09414b1184 MDL-79674 behat: axe-core version fixes
* Update \behat_accessibility::run_axe_validation_for_tags()'s
  PHPDoc block to reflect the current version.
* Fix incorrect copyright tag for the library
2024-01-30 16:21:01 +08:00
Andrew Nicols 4826318d38 MDL-79003 js: Bump stylelint and components
Stylelint 15 deprecates a heap of rules which will be removed in 16.

We can't use 16 because it's ESM and requires a big restructure of our
build process.

We can temporarily silence the deprecations and then when we update our
build tooling we can make use of @stylistic/stylelint-plugin to add the
rules back.

This commit:
- bumps stylelint and related dependencies accordingly
- fixes issues identified with newer sniffs
- temporarily silences deprecation warnings
2024-01-30 12:21:03 +08:00
Andrew Nicols 2b4ddd43ae MDL-79003 js: Move rollup ratelimit to generateBundle
There are two phases of a build: Building, and then Outputting.

We were previously listening on the final event for the build phase, but
we should be listening to the final event of the output phase.
2024-01-30 12:21:03 +08:00
Andrew Nicols c8f80a6e57 MDL-79003 js: Move browserlist config to package.json 2024-01-30 12:21:03 +08:00
Andrew Nicols 1db97f7655 MDL-79003 js: Standard package bump - glob 2024-01-30 12:21:03 +08:00
Andrew Nicols acbc1e2f19 MDL-79003 js: Standard package bump - async 2024-01-30 12:21:03 +08:00
Andrew Nicols a57d584b63 MDL-79003 js: Remove grunt-contrib-uglify
We stopped using this when we updated our processes to support ESMs in
MDL-62497. Removal of the dependency was missed at the time.
2024-01-30 12:21:02 +08:00
Andrew Nicols ef0e06808a MDL-79003 js: Standard package bump - grunt 2024-01-30 12:21:02 +08:00
Andrew Nicols eeff8efe54 MDL-79003 js: Standard package bump - watchman 2024-01-30 12:21:02 +08:00
Andrew Nicols 6bfbf54f23 MDL-79003 js: Standard package bump - ajv 2024-01-30 12:21:02 +08:00
Andrew Nicols 6038897710 MDL-79003 js: Use our own jsdoc wrapper
grunt-jsdoc is abandoned and only works with an older version of jsdoc.

This is a very simple wrapper around jsdoc itself.

This commit also includes a fix for broken docs.
2024-01-30 12:21:01 +08:00
Andrew Nicols e3ec5309f6 MDL-79003 core: Bump eslint 2024-01-30 12:21:01 +08:00
Andrew Nicols d3f1b1ccbe MDL-79003 core: Bump NodeJS to lts/iron (NodeJS 20) 2024-01-30 12:21:01 +08:00
Huong Nguyen 3ff7d53def Merge branch 'MDL-80523-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-30 09:42:09 +07:00
Laurent David 14503ba527 MDL-71665 core_courseformat: Sync activity name in the page
* Changing the name of an activity should change the access restriction messages.
* Introduction of a marker as data-cm-name-for to be able to change any
occurence of a course module name in the page when this one changes.
2024-01-29 09:01:14 +01:00
Andrew Nicols 4e65a8f094 MDL-80753 tiny_premium: Load TinyMCE Premium for the current editor ver 2024-01-29 15:06:48 +08:00
Stefan Hanauska b684c13efc MDL-80716 course: Fix group button position 2024-01-29 06:34:15 +01:00
Huong Nguyen 7b9d56e0df MDL-74775 adhoc_task: Do not clear the timecreated of failed tasks 2024-01-29 10:02:30 +07:00
Jun Pataleta 9a49d022aa Merge branch 'MDL-69225-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-01-29 10:20:13 +08:00
Jun Pataleta 068eec99a8 Merge branch 'MDL-78311-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-29 10:08:31 +08:00
Jun Pataleta 12704fb808 Merge branch 'M403-MDL-79930' of https://github.com/marcusboon/moodle into MOODLE_403_STABLE 2024-01-29 10:04:30 +08:00
Marcus Boon 800acd242a MDL-79930 mod_forum: Use MUC for forum count discussions 2024-01-29 08:34:15 +10:00
AMOS bot bca168b02c Automatically generated installer lang files 2024-01-27 00:11:31 +00:00
Paul Holden b6a66ef378 MDL-78311 core: fix host parameter type cleaning by IPv4 address. 2024-01-25 23:39:38 +00:00
Paul Holden 4e62e08558 MDL-80727 tool_task: replace hard-coded adhoc task runner strings. 2024-01-25 22:46:17 +00:00
Paul Holden 4a8cd5019f MDL-80124 admin: prevent deletion of pre-installed preset definitions. 2024-01-25 21:51:48 +00:00
Sara Arjona 101d476c33 MDL-69225 h5pactivity: Review when and which banners display
The UX team proposal is to display two different notifications, to avoid confusion:

1. When the user is in preview mode:
Message: 'You are in preview mode.'
Notification Type: Information (blue), with the information permanently visible and not dismissible,
ensuring continuous awareness.

2. When activity tracking is disabled:
Message: 'Attempt tracking is not enabled for this activity. You can enable it in Settings.'
Notification Type: Warning (yellow) with a close icon for dismissal if tracking is intentionally disabled.

These notifications should only be visible to teachers and content creators, not students.
If a teacher also has a student role, this information should not appear when logged in as a student.

That's why the pre-existing is_tracking_enabled() function has been updated to only check if tracking
is on for an activity, without considering user capabilities (that's why the $user parameter has been
removed from this function too). Besides, a new function called can_submit() has been created to find
out if users are allowed to submit an activity.
2024-01-25 17:48:20 +01:00
Sara Arjona 6080ef9fe7 weekly release 4.3.2+ 2024-01-25 16:48:27 +01:00
Paul Holden aae5c2b7db MDL-80660 user: preserve return URL upon role switch from frontpage. 2024-01-25 15:40:55 +00:00
Dani Palou de6f5d6333 MDL-80718 quiz: Apply overrides in mod_quiz_get_combined_review_options 2024-01-25 10:04:09 +01:00
Jun Pataleta ae60d04ffa Merge branch 'MDL-80656-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-01-25 12:14:00 +08:00
Jun Pataleta 554b7a2bc4 Merge branch 'MDL-80673-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-01-25 12:05:53 +08:00
Huong Nguyen 64909575cf Merge branch 'MDL-80224-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-25 11:01:48 +07:00
Jake Dallimore 1d8dd426aa MDL-80673 mod_forum: fix modal creation when viewing student grades
Fixes a regression caused by MDL-78324.
2024-01-25 11:49:59 +08:00
Huong Nguyen 5c24699cbb Merge branch 'MDL-80516-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-25 10:45:28 +07:00
Huong Nguyen 1129d43162 Merge branch 'MDL-76671-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-01-25 10:24:31 +07:00
Huong Nguyen a538c90eec Merge branch 'MDL-80650_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2024-01-25 09:24:56 +07:00
Ilya Tregubov ef367f6b6e Merge branch 'MDL-80098-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-25 10:20:30 +08:00
Huong Nguyen 569d925366 Merge branch 'MDL-80676-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-01-25 09:07:47 +07:00
Ilya Tregubov 9548f6bef3 Merge branch 'MDL-79927-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-25 09:53:46 +08:00
Huong Nguyen 663e4efbd6 Merge branch 'MDL-76716-m403' of https://github.com/stefangub/moodle into MOODLE_403_STABLE 2024-01-25 08:51:07 +07:00
Ilya Tregubov e74cdb09a4 Merge branch 'MDL-79159-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-01-25 09:35:48 +08:00
Ilya Tregubov 2fee3b63b0 Merge branch 'MDL-80653-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-25 09:25:47 +08:00
Sara Arjona 324b256141 Merge branch 'MDL-80458-403' of https://github.com/mickhawkins/moodle into MOODLE_403_STABLE 2024-01-24 17:15:00 +01:00
Sara Arjona 42074afdfa Merge branch 'MDL-79681-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-24 17:02:26 +01:00
Sara Arjona 7aaab961cc Merge branch 'MDL-79152-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-01-24 16:02:39 +01:00
Paul Holden abde115855 MDL-78173 user: correct return URL upon login as from frontpage. 2024-01-24 14:58:23 +00:00
Sara Arjona 378614ed32 Merge branch 'MDL-80668-403' of https://github.com/pedrojordao/moodle into MOODLE_403_STABLE 2024-01-24 15:16:15 +01:00
Sara Arjona 7d533d3f0f Merge branch 'MDL-78888-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-24 13:25:56 +01:00
Sara Arjona 9f0ab79ba9 Merge branch 'MDL-76723-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-01-24 13:13:10 +01:00
Sara Arjona 2a7697dc75 Merge branch 'MDL-79940-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-01-24 09:22:37 +01:00
Angelia Dela Cruz b1c6e30a90 MDL-79159 mod_lesson: Behat coverage for lesson question max attempts 2024-01-24 16:17:26 +08:00
Ilya Tregubov e8c1759b02 Merge branch 'MDL-80270-403' of https://github.com/mihailges/moodle into MOODLE_403_STABLE 2024-01-24 13:46:53 +08:00
Michael Hawkins 22c10c8b14 MDL-80458 core: Hide MoodleNet share bulk option if feature disabled 2024-01-24 11:53:41 +08:00
Simey Lameze e06ad7179e MDL-80656 behat: remove unnecessary activity duplication steps 2024-01-24 11:14:26 +08:00
Angelia Dela Cruz deb73ef1a4 MDL-79940 mod_workshop: Behat to confirm review button for reviewers 2024-01-24 09:02:45 +08:00
Ilya Tregubov 18b04fed1b Merge branch 'MDL-80320-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-01-24 08:56:28 +08:00
Marina Glancy d26d56ee34 MDL-80706 customfield: php8.1 warning about passing null to strlen 2024-01-23 14:58:17 +00:00
Marina Glancy 6f70b7f650 MDL-80694 external: fix return param in inplace_editable WS 2024-01-23 14:20:56 +00:00
Laurent David 2f024231da MDL-80320 core_courseformat: Disable group selection
* When forced groupmode is enabled for the course:
  - the group selection in the activity card be disabled
  - the activity action menu groupmode will not be visible.
  - only the icon will be visible
* Add new test to check for visibility
2024-01-23 11:31:42 +01:00
Stefan Van der Vyver 54bf8d378c MDL-76716 grades: handle open delegated transaction on grade delete 2024-01-23 10:10:24 +00:00
Paul Holden 0ac0b5dbb1 MDL-80512 tool_task: absolute path to required library file. 2024-01-23 09:18:12 +00:00
Jun Pataleta 5ba3b9e9a9 Merge branch 'MDL-80271-MOODLE_403_STABLE' of https://github.com/PhMemmel/moodle into MOODLE_403_STABLE 2024-01-23 16:32:57 +08:00
Paul Holden 67f5534d53 MDL-80324 webservice: correct current page URL for user settings. 2024-01-23 08:22:48 +00:00
Sara Arjona 3b53984d0d Merge branch 'MDL-80339-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-01-23 07:48:26 +01:00
Jake Dallimore 48ec9b3bd2 MDL-79725 libraries: fix auth URL generation in lti1p3 library 2024-01-23 12:52:37 +08:00
Ilya Tregubov beb8242c98 Merge branch 'MDL-75579-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-01-23 12:04:42 +08:00
Jun Pataleta d132858820 Merge branch 'MDL-78219-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2024-01-23 11:59:26 +08:00
Huong Nguyen 7d4f09b978 MDL-75579 Backup: Prevent failed course restore task to be retried 2024-01-23 09:41:23 +07:00
Huong Nguyen 8c719efc1b MDL-75579 adhoc_task: Implement no-retry flag 2024-01-23 09:41:23 +07:00
Angelia Dela Cruz 198a42a084 MDL-80339 mod_lesson: Behat to confirm grade visibility in lesson 2024-01-23 10:12:05 +08:00
Jun Pataleta da9bbf5a96 Merge branch 'MDL-79029-403' of https://github.com/ferranrecio/moodle into MOODLE_403_STABLE 2024-01-23 09:21:49 +08:00
Sara Arjona a8fe1be288 Merge branch 'MDL-80559-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-22 16:23:30 +01:00
sam marshall d44fe7013d MDL-80693 core_user: search() fails if no standard identify fields 2024-01-22 12:54:37 +00:00
Paul Holden 010d2ffb83 MDL-80202 repository_local: null check when recursing child nodes. 2024-01-22 10:19:45 +00:00
Ferran Recio e679f8f11f MDL-79029 behat: optimize behat tests
Replace some add activity to section steps to the new
add activity to course section so they are faster and do
not require javascript.
2024-01-22 11:15:21 +01:00
Ferran Recio 9f7163869e MDL-79029 behat: new add activity steps 2024-01-22 11:15:21 +01:00
Paul Holden 6435680f5a MDL-80653 h5p: handle content type creation errors in test.
See also same in c7d08f85.
2024-01-22 09:46:10 +00:00
Huong Nguyen 316865e2ae Merge branch 'MDL-80532-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-22 15:39:11 +07:00
Huong Nguyen 873baf6623 Merge branch 'MDL-80499-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-22 15:36:20 +07:00
Jun Pataleta 466009c2a4 Merge branch 'MDL-80377-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-01-22 16:32:40 +08:00
Jun Pataleta 74a3fa91e4 Merge branch 'MDL-80374-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-22 16:29:38 +08:00
Jun Pataleta 3beb0e2080 Merge branch 'MDL-80323-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-22 16:26:06 +08:00
Jun Pataleta fa50ca4ba1 Merge branch 'MDL-80232-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-22 15:04:43 +08:00
Pedro Jordao eb1eee3b71 MDL-80668 modal: Change aria roles on modal to improve accessibility.
The roles we were using were no longer the most recommended for modals.
2024-01-19 08:11:39 -03:00
Paul Holden 32487e36d9 MDL-79577 user: better parsing of user menu lang string identifiers. 2024-01-19 09:49:19 +00:00
Matthias Opitz ccbb6bd37e MDL-79988 course: checking for cached empty modnames
Check if empty modnames have been cached and if so retrieve them again.
2024-01-19 09:41:23 +00:00
Angelia Dela Cruz ccec3cf2e1 MDL-80377 block: Behat confirming folder file in recent activity block 2024-01-19 14:29:20 +08:00
Jun Pataleta 84662768ec MDL-80676 core: Remove unnecessary aria-labelledby for action menu links
The aria-labelledby attribute for the action menu link's <a> tag is
unnecessary as the <span> tag containing the action menu link's text
is already within the <a> tag and already serves as the link's label by
default.
2024-01-19 14:12:41 +08:00
Philipp Memmel 41b9fb7623 MDL-80271 core_user: Only update record if necessary 2024-01-19 05:59:27 +00:00
Huong Nguyen 9d3e70fe06 weekly release 4.3.2+ 2024-01-19 11:23:54 +07:00
Paul Holden f44de225ac MDL-79514 mod_feedback: ensure base item class library is required. 2024-01-18 20:46:33 +00:00
Paul Holden 87617b8daa MDL-80667 task: preserve environment when running tasks from web.
For sites that rely on environment variables to set configuration,
ensure they are also present when executing task process.

Co-authored-by: Olivier Wenger <olivier.wenger@liip.ch>
2024-01-18 16:54:06 +00:00
Paul Holden 6ff1d5393a MDL-79433 tiny_autosave: allow non-logged in user calls to webservice.
Accounts for the editor being added to pages for non-logged in users,
such as the "New account" page.
2024-01-18 10:49:16 +00:00
Paul Holden 782e402138 MDL-73010 repository_filesystem: fix directory read comparison.
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2024-01-18 10:02:16 +00:00
Tim Hunt 02dc1a1079 MDL-80650 quiz restore: restore of max marks review option from pre 4.2 2024-01-18 09:26:10 +00:00
Andrew Nicols 4064887a19 MDL-79152 editor_tiny: Enable browser-based spell-checking 2024-01-18 12:53:38 +08:00
Andrew Nicols fc8bbc49ea Merge branch 'MDL-80201-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-01-18 11:34:28 +08:00
Jun Pataleta d90f7daba1 Merge branch 'MDL-72308-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-18 11:30:18 +08:00
Huong Nguyen acecd19472 Merge branch 'MDL-80403-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-01-18 10:25:36 +07:00
Jun Pataleta 5881620471 Merge branch 'MDL-79498-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-01-18 10:59:23 +08:00
Andrew Nicols 06f9ad8a38 Merge branch 'MDL-80591_403' of https://github.com/stronk7/moodle into MOODLE_403_STABLE 2024-01-18 10:57:20 +08:00
Justus Dieckmann f7010a6d9b MDL-79498 javascript: Adjust get_string function signature
Reflect param and lang being optional parameters.
2024-01-18 10:55:42 +08:00
Andrew Nicols 5cd72ef46d Merge branch 'MDL-80041-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-01-18 10:54:00 +08:00
Sara Arjona 24585543ba Merge branch 'MDL-80058-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-01-17 18:46:34 +01:00
Sara Arjona becb952d29 Merge branch 'MDL-80081-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2024-01-17 18:18:10 +01:00
Juan Leyva dd660845cc MDL-76671 tool_mobile: Allow OAuth launches after accepting policies 2024-01-17 16:50:47 +01:00
Sara Arjona d56b3a7911 Merge branch 'MDL-80255-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2024-01-17 11:51:10 +01:00
Paul Holden 887da1cd67 MDL-78888 tool_uploaduser: case-insensitive email matching on upload. 2024-01-17 09:01:12 +00:00
Paul Holden 827446a7ba MDL-80098 core: correct arguments for invalidmoduleid exceptions.
The "invalid module ID" should be passed as the `$a` constructor
argument.
2024-01-17 08:58:55 +00:00
Paul Holden 82244afc3a MDL-80060 enrol_manual: correct exception constructor arguments. 2024-01-17 08:57:44 +00:00
Paul Holden 4d0d8f7f1b MDL-78417 tool_uploaduser: handle empty default in custom menu field. 2024-01-17 08:55:54 +00:00
Angelia Dela Cruz 472a76d0c8 MDL-77998 Behat: Add behat coverage for preferences navigation 2024-01-17 15:55:32 +08:00
Huong Nguyen 835b2d01cc Merge branch 'MDL-79701-403' of https://github.com/rjnl/moodle into MOODLE_403_STABLE 2024-01-17 14:08:25 +07:00
Huong Nguyen 1d54f1f1f9 Merge branch 'MDL-80498_403' of https://github.com/santoshndev/moodle into MOODLE_403_STABLE 2024-01-17 10:38:04 +07:00
Huong Nguyen 144f2f0a52 Merge branch 'MDL-80260-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-17 10:17:35 +07:00
Amaia Anabitarte 05dc4a42d5 MDL-80255 mod_scorm: Remove 'Completed' as default completion 2024-01-16 17:27:23 +01:00
Paul Holden 8145ad6b6a MDL-72703 profilefield_text: validate field length when editing.
This also means the same validation is applied elsewhere,  such as
in the upload user tool.
2024-01-16 09:54:14 +00:00
Sara Arjona aa0b05ff8e Merge branch 'MDL-80266-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-01-16 07:20:10 +01:00
Andrew Nicols c5713d6b76 MDL-80266 mod_forum: Reset subscription caches between behat tests 2024-01-16 13:34:31 +08:00
Ilya Tregubov bf61a48eeb Merge branch 'MDL-69615-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-01-16 10:57:24 +08:00
Huong Nguyen 806dcd5eee MDL-69615 core_backup: Send backup report email once the tasks are done 2024-01-16 09:31:03 +07:00
Sara Arjona 8929efb8b5 Merge branch 'MDL-59467-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2024-01-15 17:28:18 +01:00
Sara Arjona b6d4be7a3c Merge branch 'MDL-79519-403_url_select' of https://github.com/Tsheke/moodle into MOODLE_403_STABLE 2024-01-15 17:03:05 +01:00
Paul Holden 97e996c764 MDL-29261 tool_uploaduser: warn user about invalid data values. 2024-01-15 15:14:59 +00:00
Paul Holden e7d19f0cb3 MDL-72308 mod_forum: update legacy uses of formchangechecker module. 2024-01-15 14:26:00 +00:00
Paul Holden 70f7b59c3c MDL-80516 core: more robust plugin update component checking.
Occurs when a plugin in incorrectly removed (via file system only,
rather than following proper uninstall process), and also contains
it's own sub-plugins.

In the above scenario, the update would request and receive back a
response for a plugin whose name was comprised of an empty string,
subsequently causing errors when processing said response.
2024-01-15 14:10:08 +00:00
Johnny Tsheke 6249537886 MDL-79519 course: remove null to use the default value. 2024-01-15 09:09:33 -05:00
Sara Arjona f08dadcdf8 Merge branch 'MDL-79091-MOODLE_403_STABLE' of https://github.com/jay-oswald/moodle into MOODLE_403_STABLE 2024-01-15 12:31:41 +01:00
Jake Dallimore 631d94a872 MDL-78219 enrol_lti: fix auth method usage in base testcase 2024-01-15 15:44:24 +08:00
Jake Dallimore 796935efc2 MDL-78219 auth_lti: ensure user updates happen after authentication
If an existing session is active at the time of launch, that user id
appears in the user_updated log. This log should show the launching user
updating their own record, not someone else. To resolve this, auth the
user before making any record updates so that the event gets the correct
user id.
2024-01-15 15:44:24 +08:00
Jake Dallimore a58f004545 MDL-78219 auth_lti: force empty session before launch user creation
If an existing session is active at the time of launch, that user id
appears in the user_created log, incorrectly (it should be system/0).
This patch makes sure that any existing session is terminated before
creation of a new user during launches.
2024-01-15 15:44:24 +08:00
Huong Nguyen 42b22b46fe MDL-69615 privacy: Use task trait for unit tests 2024-01-15 11:24:02 +07:00
Huong Nguyen 99f60697ec MDL-69615 core_task: Add a task trait 2024-01-15 11:24:02 +07:00
Eloy Lafuente (stronk7) f192195a76 MDL-80591 phpunit: delegate run to phpunit binary
Instead of manually including composer's auto-loading
stuff and then run PHPUnit\TextUI\Command::main(), now
we are using the PHPUnit "binary".

That way behaviour should be 100% the same than
running vendor/bin/phpunit (recommended instead of util.php --run).

Also, note that, for other util.php commands, we still need
composer's auto-loading to happen, so we have moved it immediately
after the --run command.

Finally, a few more file_exists() conditions have been added
to ensure that PHPUnit is properly installed. Redundant but...
2024-01-13 18:31:45 +01:00
Paul Holden 22e5c8aba6 MDL-70058 customfield: reference field element names correctly.
In the course external create/update methods, we must ensure that
the correct form element names are used. Specifically because the
textarea field type uses non-standard name.
2024-01-12 10:29:25 +00:00
Jun Pataleta 9e8c90c86c Merge branch 'MDL-80526-MOODLE_403_STABLE' of https://github.com/ScottVerbeek/moodle into MOODLE_403_STABLE 2024-01-12 17:44:32 +08:00
Jun Pataleta b0c3178932 Merge branch 'MDL-80192-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-12 17:28:27 +08:00
Paul Holden 38f2164bfe Merge branch 'MDL-80564-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-01-12 09:07:40 +00:00
Santosh Nagargoje fa51aa95a6 MDL-80498 group: Added required rule for filepicker field 2024-01-12 14:29:41 +05:30
meirzamoodle b149b40a9c MDL-80081 editor_tiny: Allow empty content in the i tag 2024-01-12 15:42:14 +07:00
Paul Holden d369e3628e MDL-80192 reportbuilder: ensure filter form group elements have labels.
This ensures compliance with the following WCAG criterion:

"H71: Providing a description for groups of form controls using fieldset
and legend elements".
2024-01-12 08:39:40 +00:00
Paul Holden f5192ab0b3 MDL-80192 forms: implement method to set group element hidden label.
This is consistent with the API used for other form element types,
in order to provide screen-readable text in the fieldset legend while
not necessarily wanting to display said label.

The new class property is automatically exported to the template via
the `templatable_form_element` trait.
2024-01-12 08:33:35 +00:00
Jun Pataleta 0e676bd8c2 Merge branch 'MDL-80353-MOODLE_403_STABLE' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2024-01-12 16:20:44 +08:00
Ilya Tregubov 076379a485 weekly release 4.3.2+ 2024-01-12 09:11:37 +08:00
Marina Glancy 5a94a957bc MDL-80564 reportbuilder: Consistent permission check for user full name 2024-01-11 14:45:28 +00:00
Paul Holden 22c6b1a162 MDL-80575 mod_forum: correct field name for "Notify students" setting. 2024-01-11 11:44:28 +00:00
ScottVerbeek a83ac73434 MDL-80526 tool_filetypes: Test required icons in test_get_file_icons
The test now checks for the required icons, without needing to specify a count.
Allowing developers to add custom icons to the folder pix/f/mycustomicon.svg without needing to alter any unit test.
2024-01-11 14:45:57 +10:00
Jun Pataleta 50dd5eaab1 Merge branch 'MDL-80246-403' of https://github.com/mihailges/moodle into MOODLE_403_STABLE 2024-01-11 11:50:00 +08:00
Huong Nguyen 4743212ffb Merge branch 'MDL-80452-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-01-11 10:44:33 +07:00
Huong Nguyen f07be5e649 Merge branch 'MDL-80229-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2024-01-11 10:36:07 +07:00
Angelia Dela Cruz 3ccc4d1681 MDL-80452 mod_h5pactivity: Behat for H5Pactivity duplication and delete 2024-01-11 11:20:19 +08:00
Ilya Tregubov 4d52b09e84 Merge branch 'MDL-80446-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-11 10:44:28 +08:00
Ilya Tregubov 2fe32ba8cf Merge branch 'MDL-80357_403_STABLE' of https://github.com/SimonasAdams/moodle into MOODLE_403_STABLE 2024-01-11 10:38:38 +08:00
Ilya Tregubov a2085cbfaf Merge branch 'MDL-80333_403' of https://github.com/santoshndev/moodle into MOODLE_403_STABLE 2024-01-11 10:34:43 +08:00
Paul Holden f1d798a1e0 MDL-80499 datafield_date: specify UTC time when editing field content. 2024-01-10 19:23:11 +00:00
Paul Holden c86be8ac94 MDL-80199 report_log: remove duplicate "all logs" breadcrumb. 2024-01-10 10:07:53 +00:00
Santosh Nagargoje a1cf1082b7 MDL-80333 Authentication: Fixed new login notification adhoc task 2024-01-10 15:28:44 +05:30
Paul Holden d239ef73c9 MDL-78621 mod_choice: verify limited responses before showing "full". 2024-01-10 09:47:39 +00:00
Sara Arjona 36c5f8d2e0 Merge branch 'MDL-80340-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-01-10 07:35:03 +01:00
Huong Nguyen 85fb00c041 Merge branch 'MDL-80382-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2024-01-10 10:30:14 +07:00
meirzamoodle 0f752d0bca MDL-80058 editor_tiny: add preformatted format to the blocks 2024-01-10 09:38:38 +07:00
Paul Holden f7829013e5 MDL-80559 badges: set contexturl/name in badge awarded notification. 2024-01-09 17:16:41 +00:00
Simey Lameze 0953e51829 MDL-80340 behat: make query to fetch h5p attempts less strict 2024-01-09 16:15:49 +08:00
Angelia Dela Cruz aba3431ae9 MDL-80382 behat: Replace "Frist" typos in Behat tests to "First" 2024-01-09 10:52:51 +08:00
Sara Arjona 1a7ab557b6 Merge branch 'MDL-78999_403' of https://github.com/santoshndev/moodle into MOODLE_403_STABLE 2024-01-08 16:38:38 +01:00
Paul Holden 142df0645c MDL-80323 h5p: fail content type retrieval task on errors.
It's better for the task to fail gracefully rather than silently
swallow any errors, so that the task API can schedule re-tries.

If the endpoint is temporarily down and/or misbehaving, this will
allow admins to have clearer failures.
2024-01-08 10:06:36 +00:00
Huong Nguyen a1f2d724cc Merge branch 'MDL-73639-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-01-08 16:08:43 +07:00
Simey Lameze fb59440170 MDL-73639 behat: improvements to the new recover grades test 2024-01-08 13:09:03 +08:00
Angelia Dela Cruz f91e98828d MDL-73639 core_grades: Behat to test Recover grades default settings 2024-01-08 13:09:03 +08:00
Rajneel Totaram e00b9ca316 MDL-80383 mod_book: Make book content use full width on small screens 2024-01-08 15:35:37 +12:00
Ilya Tregubov f29220e39d Merge branch 'MDL-69497-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-08 10:04:15 +08:00
Ilya Tregubov f84479e3d6 Merge branch 'MDL-79937-403_fixlessonmatching' of https://github.com/catalystfd/moodle into MOODLE_403_STABLE 2024-01-08 09:20:25 +08:00
Víctor Déniz 6fb76aa958 MDL-79681 user: fix conditional to get the last access to a course 2024-01-05 13:55:54 +00:00
Paul Holden 4e2b5137f4 MDL-79681 user: fix participant filter "never accessed" options.
For courses, determine whether "Never accessed" should be available,
and correct the used value to match that expected by the API (-1).
2024-01-05 13:55:54 +00:00
Laurent David 5665addea4 MDL-80289 mod_bigbluebutton: Fix retrieval of meeting via meetingid 2024-01-05 11:15:17 +01:00
Santosh Nagargoje 8357d9b18f MDL-78999 theme: Fixed site logo issue in small screens 2024-01-05 01:12:27 +05:30
Rajneel Totaram 4a2aa40512 MDL-79701 block_calendar_upcoming: Display activity name in tooltip 2024-01-05 07:17:36 +12:00
Paul Holden a53b8e1d2c MDL-80523 mod_label: correct upgrade step select query parameters. 2024-01-04 16:22:28 +00:00
Paul Holden 96a452dd41 MDL-80532 block_myoverview: don't post sesskey to quickstart guide URL. 2024-01-04 14:38:35 +00:00
Paul Holden 42df379616 MDL-79927 files: scope toggleall checkboxes per filemanager instance.
Ensures that when multiple exist on the same page, each operates
independently of the others.
2024-01-04 13:22:40 +00:00
Paul Holden e600e8e6b4 MDL-80247 files: multi-byte aware filename shortening in exporter.
Also correctly extract the original file extension.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
Co-authored-by: Mazitov Artem <maz@2i.tusur.ru>
2024-01-04 13:20:19 +00:00
Sara Arjona d5d0774fec weekly release 4.3.2+ 2024-01-04 12:02:00 +01:00
Sara Arjona 8b571da7fe Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2024-01-04 12:01:55 +01:00
Sara Arjona d1b7d46143 Merge branch 'MDL-79307-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-03 17:18:21 +01:00
Sara Arjona 381755e1f9 Merge branch 'MDL-80243-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2024-01-03 16:58:06 +01:00
Sara Arjona f8dec8bfb2 Merge branch 'MDL-76719-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-03 16:32:40 +01:00
Shamim Rezaie 8cc5641be0 Merge branch 'MDL-79708-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2024-01-03 00:11:33 +11:00
Huong Nguyen 40ae0fe34e Merge branch 'MDL-80412-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-27 17:22:24 +07:00
AMOS bot 2d462e1d39 Automatically generated installer lang files 2023-12-23 00:11:29 +00:00
Jun Pataleta f810374a0e Moodle release 4.3.2 2023-12-22 10:00:26 +08:00
Jun Pataleta 3eca273205 MDL-80041 gradereport_singleview: Implement grade validation
Implement grade validation for numeric grade overrides by setting
the type attribute for the grade input to number and setting a min
and max attribute values. Submitting the form with invalid values
will trigger built-in validation of the inputs.
2023-12-21 22:18:53 +08:00
Sara Arjona 6c73be6e8e weekly release 4.3.1+ 2023-12-21 13:34:17 +01:00
Paul Holden b8fe6ee6c3 MDL-80450 mod_resource: observe print intro setting when embedding. 2023-12-21 11:22:06 +00:00
Huong Nguyen 5a7599385f Merge branch 'MDL-80151-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2023-12-20 15:39:54 +07:00
Huong Nguyen eae457d10d MDL-80151 behat: Improve viewing site calendar step 2023-12-20 16:32:38 +08:00
Angelia Dela Cruz 56eb910aed MDL-80151 mod_chat: Behat for chat repeat times and past session view 2023-12-20 16:32:38 +08:00
Simey Lameze 11dcef291d MDL-80151 behat: add calendar step to navigate to specific view 2023-12-20 16:32:38 +08:00
Jun Pataleta 42cbafd610 Merge branch 'MDL-68124-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2023-12-20 15:01:05 +08:00
Simon Adams 7af3c41dd3 MDL-80357 theme_boost: Correctly interpolate SCSS
Fixes interpolation between SCSS setting and background images SCSS when SCSS setting is a single line comment
2023-12-19 15:25:50 +00:00
Paul Holden b60adc89ec MDL-80260 tool_mfa: fix all factor report table alignment per auth. 2023-12-19 12:20:45 +00:00
Jun Pataleta fb1752711e Merge branch 'MDL-80393-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-19 17:25:10 +08:00
Paul Holden 3919d8e3b0 MDL-80446 mod_feedback: stricter selector for getting draggable items.
Ensure we don't also match inner nodes of the label question.
2023-12-19 08:27:25 +00:00
Jun Pataleta 9d291854a5 MDL-76723 core_tag: Use external_format_value constructor properly
* First parameter should be the field name that the format property
points to.
* No need for VALUE_REQUIRED since it's the default for the $required
parameter.
* Third parameter is the default value and not a description string.
2023-12-19 15:50:21 +08:00
Jun Pataleta 77a5658f0e MDL-76723 mod_page: Use external_format_value constructor properly
* 'Content format' is passed to the $default parameter which is
incorrect.
* Also removed passing of VALUE_REQUIRED because it's already the
default value for the $required parameter.
2023-12-19 15:50:21 +08:00
Jun Pataleta bbfbc8abd1 MDL-76723 core_external: Handle format properties properly
- If a text format property defines the 'optional' attribute as true,
then the $required parameter that
is passed to \core\external\exporter::get_format_structure() should be
VALUE_OPTIONAL.
- If a default value is provided for a format property,
\core\external\exporter::get_format_structure() should pass the default
value to the external_format_value constructor.
- Added validation for external_format_value for the default parameter.
  Debugging will be shown in case an invalid default value is passed.
- Amended unit tests for better coverage.
2023-12-19 15:50:21 +08:00
Frédéric Massart def6645cdc MDL-76723 core_external: Test invalid required value for format fields 2023-12-19 15:50:21 +08:00
Paul Holden 99eb359503 MDL-80393 lang: expose current page language to JS modules.
Since 4be39296 the root HTML element contains the iso6391 language
code of the current language pack. However various JS modules need
access to the original Moodle language pack code, so expose that
in the `M.cfg` structure.
2023-12-19 07:47:22 +00:00
Jun Pataleta b9698228ab MDL-80201 core: Check for default format value for exporter::export() 2023-12-19 15:46:59 +08:00
David Woloszyn cdb365b9f4 MDL-80403 communication_matrix: Fixed convert power levels to array
The curent patch revealed a bug inside set_matrix_power_levels
where returned user power levels contained an array of objects.
Other methods were failing and giving incorrect responses
as they were expecting arrays.
2023-12-19 13:36:26 +11:00
David Woloszyn 0f4b02411e MDL-80403 communication_matrix: Update membership checks membership 2023-12-19 13:36:26 +11:00
Andrew Nicols ae93fa2696 MDL-59467 core: Use hasHelper instead of catching exception
When xdebug is set to break on exceptions it stops on all exceptions,
including _caught_ exceptions.

As a result we regularly hit this uniqid helper issue if debugging with
xdebug.

The solution is to check if the helper exists using the hasHelper method
instead of catching an exception when it does not exist.
2023-12-19 09:20:42 +08:00
Sara Arjona 6f344ff877 MDL-68124 lesson: Fix random behat error with Oracle
This random error was caused because when reviewing an attempt,
the first pageid to display is calculated based on the timeseen
field in the lesson_attempst table.
In Oracle, sometimes it returned the second pageid (because both
had the same timeseen), so which led to these random failures.

Apart from adding 1-second wait when the attempt is created (to
guarantee the first page is returned properly), a few more
improvements have been also made, like removing manual steps for
setting the lesson activity or adding some extra checks to
confirm the information displayed is expected.
2023-12-18 09:48:48 +01:00
Huong Nguyen 68c20d41fe Merge branch 'MDL-80410-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2023-12-18 14:09:47 +07:00
Simey Lameze d916077929 MDL-80243 behat: make completion step more specific
Credit goes to Matthias Opitz
2023-12-18 09:32:45 +08:00
Paul Holden a432e1767f MDL-80412 reportbuilder: Behat scenario to view/sort additional names.
Related to fixes from 8f32e623.
2023-12-15 10:55:25 +00:00
Paul Holden 7a0a94b6b2 MDL-80412 reportbuilder: remove duplicate columns from order clause.
This works around a problem in SQL Server, which caused it to throw a
DML exception if the same column is duplicated in `ORDER BY` clause.

Backported from MDL-79270.
2023-12-15 10:54:10 +00:00
Luca Bösch 4272fc3f28 MDL-80410 resource: File icon without 'nofilter' 2023-12-15 07:01:47 +01:00
Huong Nguyen 1bd5dfe090 weekly release 4.3.1+ 2023-12-15 08:44:19 +07:00
Huong Nguyen f8d0e86350 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2023-12-15 08:44:13 +07:00
Huong Nguyen e092c75d15 Merge branch 'MDL-79828-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2023-12-14 10:14:43 +07:00
Huong Nguyen 90b3f5fc26 Merge branch 'MDL-79050-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2023-12-14 09:56:47 +07:00
Huong Nguyen c77bef3ad7 Merge branch 'MDL-80394-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2023-12-14 09:22:42 +07:00
Ilya Tregubov 260eef0a72 Merge branch 'MDL-79938-m403' of https://github.com/sammarshallou/moodle into MOODLE_403_STABLE 2023-12-14 08:50:54 +08:00
AMOS bot af0fe95d84 Automatically generated installer lang files 2023-12-14 00:11:12 +00:00
Sara Arjona ee0c928f10 Merge branch 'MDL-80233-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2023-12-13 10:22:10 +01:00
Angelia Dela Cruz d1796d1f0e MDL-79050 Behat: Add behat coverage to retake lesson activity 2023-12-13 16:25:13 +08:00
Huong Nguyen ac2acd0072 Merge branch 'MDL-74466-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-13 09:28:57 +07:00
Ilya Tregubov 155abc6945 MDL-80394 core_grades: Revert changes to graded_users_iterator
Third party plugins are using it and change was breaking it
2023-12-13 09:38:14 +08:00
Ilya Tregubov cf0b182dee Merge branch 'MDL-80003_403' of https://github.com/PhilippImhof/moodle into MOODLE_403_STABLE 2023-12-13 09:22:16 +08:00
Sara Arjona f863084cc9 Merge branch 'MDL-77572_403' of https://github.com/santoshndev/moodle into MOODLE_403_STABLE 2023-12-12 17:55:57 +01:00
sam marshall 2ddad8ce7a MDL-79938 Behat: Add steps to support multiple tabs 2023-12-12 16:43:08 +00:00
Santosh Nagargoje 8d45a9f2a2 MDL-77572 Course: Added fix for section,activity visibility capabilities
added fix
2023-12-12 21:38:45 +05:30
Amaia Anabitarte 4b0a34f08a MDL-80233 completion: Use default for empty values 2023-12-12 16:34:11 +01:00
Sara Arjona 3a7f291d38 Merge branch 'MDL-80315-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2023-12-12 14:19:52 +01:00
Sara Arjona bbfc6312a8 Merge branch 'MDL-79835_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2023-12-12 14:11:41 +01:00
Paul Holden d6df348ec4 MDL-80224 tool_uploaduser: better user defaults per site configuration.
Improve use of `core_user` type/default/choice definitions when setting
fields in the "Default values" form, used on upload.
2023-12-12 10:12:58 +00:00
Paul Holden 61f8a1fe55 MDL-80374 grade: show localised plugin name in report column heading. 2023-12-11 10:34:58 +00:00
Ilya Tregubov 67666fda0e MDL-79708 question_bank: Fix legacy filter condition.
build_query_from_filter method expects includesubcategories
to be inside filteroptions array
2023-12-11 11:49:45 +08:00
Marina Glancy 77fe4a8e3e MDL-80353 core_user: announce user selector changes to the screenreader 2023-12-08 15:30:00 +00:00
Huong Nguyen fe8d759b17 Moodle release 4.3.1 2023-12-08 09:21:43 +07:00
Mihail Geshoski bf3a6a122f MDL-80246 tiny_equation: Escape elementid in the data-target attribute
Tabs use the value of the data-target attribute of the active tab link
to find and display the appropriate tab content. In some situations the
elementid value that is used to generate the data-target may contain
certain characters that have a special meaning in the selector context
(e.g. ".", ",", "#") and because of that the target element cannot be
correctly identified. To fix this problem the elementid value needs to
be escaped prior to generating the data-target attribute.
2023-12-08 10:05:37 +08:00
Francis Devine e368e04824 MDL-79937 mod_lesson: Fix matching pagetype question matching
The addition of text format on the output of the answer responses broke
the matching later when comparing the valid answer against the sent
response, as the answer response was not correspondingly formatted.

I decided to use the un formatted answer response as the key, to keep it
as close as identical to prior behaviour
2023-12-08 09:08:06 +13:00
Paul Holden 2671324c9e MDL-80232 forumreport_summary: fix pagination count for summary report. 2023-12-07 17:25:44 +00:00
Philipp Imhof 983921ecff MDL-80003 mod_quiz: watch all instances of tinyMCE 2023-12-07 17:29:58 +01:00
Sara Arjona f72244a8c2 weekly release 4.3+ 2023-12-07 16:22:04 +01:00
Paul Holden d09f737c7d MDL-79980 mod_survey: remove responses link if user cannot access.
Update Behat scenario to match.
2023-12-07 12:08:47 +01:00
Brendan Heywood b654282b18 MDL-80309 tasks: Clean up mtrace logs 2023-12-07 12:08:05 +08:00
Andrew Nicols bdb5a4ba40 Merge branch 'MDL-80257-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2023-12-07 11:43:05 +08:00
Huong Nguyen 419d7f40c3 Merge branch 'MDL-80341_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2023-12-07 10:27:58 +07:00
Paul Holden 7be05aae41 MDL-79839 tool_task: clean task classname parameter prior to use. 2023-12-07 10:54:01 +08:00
Huong Nguyen 04261e8722 Merge branch 'MDL-79061-403-2' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2023-12-07 09:52:28 +07:00
Jun Pataleta a53121b74a MDL-79061 course: Create a sr-only mutations logger
* Create SRLogger that extends from the default Logger class. This
logger outputs the feedback to a sr-only ARIA live region to allow
screen readers to announce the feedback from mutations.
* Update the course editor to use the SRLogger.
2023-12-07 10:43:13 +08:00
Ferran Recio 6814c42260 MDL-79061 core: Mechanism for logging mutation feedbacks
* Create a mechanism for logging mutation feedbacks.
* The mutation feedbacks are displayed as a toast by default.
* Apply this logging mechanism on the course homepage to provide
feedback for the results of actions performed on course modules and
course sections.
2023-12-07 10:43:13 +08:00
Huong Nguyen 658953e34f Merge branch 'MDL-68652-403-1' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2023-12-07 09:31:46 +07:00
Jun Pataleta c2c03f203f Merge branch 'MDL-80281_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2023-12-07 10:16:52 +08:00
Huong Nguyen 9a1a58e593 Merge branch 'MDL-77136-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2023-12-07 08:36:35 +07:00
Paul Holden 0f63155d58 MDL-79980 mod_survey: respect activity group mode getting report. 2023-12-07 09:32:11 +08:00
Ilya Tregubov 25e00b5e1f MDL-68652 core_grades: Only return allowed fields.
Grade iterator should check user permissions.
2023-12-07 09:12:39 +08:00
Ilya Tregubov b2bc3b9e7e Merge branch 'MOODLE_403_MDL-73378' of https://github.com/danielneis/moodle into MOODLE_403_STABLE 2023-12-07 09:01:58 +08:00
Jun Pataleta 38ed732727 Merge branch 'MDL-79761-403' of https://github.com/marinaglancy/moodle into MOODLE_403_STABLE 2023-12-07 08:54:00 +08:00
Paul Holden 463f16617e MDL-80239 grade: escape matched data in user search results. 2023-12-07 08:42:38 +08:00
Paul Holden 260924aeb8 MDL-80287 grade: escape current value in search templates. 2023-12-07 08:36:32 +08:00
Tim Hunt d7a1ef5dfa MDL-79835 behat_core_generator: remove misleading error obfuscation 2023-12-06 18:12:20 +00:00
Jun Pataleta b38413afe4 Merge branch 'MDL-80127_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2023-12-06 22:12:17 +08:00
Jun Pataleta 05ab53734b Merge branch 'MDL-80079-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-12-06 21:59:11 +08:00
Luca Bösch 708732ed72 MDL-77136 qtype_randomsamatch: Newest versions for shortanswer questions 2023-12-06 14:14:14 +01:00
Luca Bösch 121d6fb20a MDL-77136 core_question: Newest versions get_questions_from_categories 2023-12-06 14:14:14 +01:00
Tim Hunt e4acb387bb MDL-80127 question engine: prevent fatal errors from old bad data 2023-12-06 11:38:58 +00:00
Tim Hunt ff74bb2682 MDL-80127 question engine: don't convert null to '' before storing 2023-12-06 11:38:58 +00:00
Tim Hunt 17fb4afaab MDL-80341 quiz: unseen descriptions are not unanswered questonis
This was causing confusing in the 'are you sure you want to submit' confirmation pop-up.
2023-12-06 11:13:27 +00:00
Angelia Dela Cruz 0cb2fd1a7f MDL-80315 block_comments: Removed duplicate Behat test
Deleted the duplicated course comments block behat test. The file
blocks/comments/tests/behat/add_comment.feature is deleted as a
result.
2023-12-06 18:18:53 +08:00
Ilya Tregubov 60541d90e5 Merge branch 'MDL-76109-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2023-12-06 15:42:55 +08:00
Huong Nguyen 4b26df011f Merge branch 'MDL-50650-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2023-12-06 14:06:13 +07:00
Stephan Robotta fbecc7132d MDL-41465 reports: In separate group mode, limit to same 2023-12-06 13:52:58 +07:00
Ilya Tregubov bbea6e1d31 MDL-68652 mod_forum: Only include gradable users in grading 2023-12-06 12:45:09 +08:00
David Woloszyn 9e3ca2a866 MDL-79759 repository_url: Limit css imports and remove fragments
There are checks to urls that attempt to limit recurrsion when
parse_file is called. This is problematic for css import urls that
can call an indefinite amount of nested import urls. An import limit
has been introduced to address this. Fragments have also been removed.
2023-12-06 03:54:20 +01:00
Stevani Andolo 40ee4ab3fa MDL-80174 tool_log: ensure "other" data is safely unserialized. 2023-12-06 03:54:20 +01:00
Paul Holden d40fc8708a MDL-80268 badges: require capability to view awarded badges. 2023-12-06 03:54:20 +01:00
Paul Holden 2a60bc604f MDL-79797 backup: ensure block config is safely unserialized. 2023-12-06 03:54:20 +01:00
Ilya Tregubov e8237560d3 Merge branch 'MDL-79692-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-06 10:50:13 +08:00
Huong Nguyen 258783a754 Merge branch 'MDL-80180-403' of https://github.com/jbs1/moodle into MOODLE_403_STABLE 2023-12-06 09:16:28 +07:00
Ilya Tregubov 81de0469c1 Merge branch 'MDL-74248-MOODLE_403_STABLE-fix_mp3_mod_folder' of https://github.com/praxisdigital/moodle into MOODLE_403_STABLE 2023-12-06 10:01:00 +08:00
Sara Arjona 638cbfac93 Merge branch 'MDL-80286-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-05 16:42:14 +01:00
Sara Arjona 85c70539df Merge branch 'MDL-79862-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2023-12-05 16:35:25 +01:00
Sara Arjona 5b442418ad Merge branch 'MDL-79979-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2023-12-05 16:16:47 +01:00
Jun Pataleta 9c641bf38e Merge branch 'MDL-73974-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2023-12-05 23:09:37 +08:00
Karen Holland f9797aca63 MDL-73974 tool_brickfield: Processing alpha fontsizes 2023-12-05 23:07:57 +08:00
Sara Arjona d4b1ecbed4 Merge branch 'MDL-55640-m403' of https://github.com/sammarshallou/moodle into MOODLE_403_STABLE 2023-12-05 16:01:54 +01:00
Sara Arjona d140771110 Merge branch 'MDL-80015-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2023-12-05 15:51:28 +01:00
Sara Arjona 762df4050c Merge branch 'MDL-80254-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-05 15:45:38 +01:00
Paul Holden a56003588a MDL-79307 assignfeedback_editpdf: more informative task failure.
If ghostscript is not correctly configured the task will never
succeed, so error out earlier with a more informative exception
explaining this.
2023-12-05 12:20:23 +00:00
Jun Pataleta bee2d552b7 Merge branch 'MDL-79806_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2023-12-05 12:48:31 +08:00
Huong Nguyen f172248f20 Merge branch 'MDL-71336-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-05 11:19:41 +07:00
Jun Pataleta db71e79e05 Merge branch 'm43-mdl64431' of https://github.com/danmarsden/moodle into MOODLE_403_STABLE 2023-12-05 12:13:40 +08:00
Huong Nguyen 05c9ce4bd8 Merge branch 'MOODLE_403_STABLE' of https://github.com/dragos5436/moodle into MOODLE_403_STABLE 2023-12-05 10:40:29 +07:00
Ilya Tregubov ade9f7177a MDL-68652 core_grades: Refactor grades functions.
get_gradable_users now has extra param to retrieve only active
users. Grade reports hase their own grade_report::get_gradable_users
since they decided whether to inlcude active users from report preferences
2023-12-05 10:52:12 +08:00
Ilya Tregubov 05846ae405 MDL-68652 core_grades: Add a webservice to retrive only gradable users. 2023-12-05 10:52:12 +08:00
Ilya Tregubov e186ad572d Merge branch 'MDL-80043-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2023-12-05 09:11:08 +08:00
Ilya Tregubov 9f636a3de3 Merge branch 'MDL-80131-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2023-12-05 09:00:43 +08:00
Marina Glancy d79ad5de6a MDL-79761 navigation: fix default setting during web installation 2023-12-04 13:06:06 +00:00
Sara Arjona b7c8f7f723 Merge branch 'MDL-80185-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-04 11:00:44 +01:00
Paul Holden 46192ca77e MDL-80254 reportbuilder: better handling of deleted users in schedules.
We should verify that schedule and audience users are active accounts,
and that we don't try to send report schedules either from/to them if
they aren't.
2023-12-04 09:48:42 +00:00
meirzamoodle d68ea95f26 MDL-80257 editory_tiny: Implement ui_mode: split
Since version 6.4 and later, TinyMCE had a feature `ui_mode: split`.

It enables support for editors in scrollable containers,
and Moodle has some pages, especially the course pages, that are using the scrollable containers.
Therefore, all workaround that is addressed should be replaced by the feature to avoid future problems
regarding the overflow and the z-index issues.
2023-12-04 16:28:44 +07:00
meirzamoodle 85af2e6a7c MDL-80257 editory_tiny: Remove tox-tinymce-aux z-index
Remove .tox-tinymce-aux from style.css because z-index is already defined in TinyMCE skin.css
2023-12-04 16:28:44 +07:00
Paul Holden 4ac4b93064 MDL-74466 repository: avoid passing around sesskey when not required. 2023-12-04 09:22:32 +00:00
Jun Pataleta 136aef1fe6 Merge branch 'MDL-80221-403-enfix' of https://github.com/mudrd8mz/moodle into MOODLE_403_STABLE 2023-12-04 16:11:30 +08:00
Ilya Tregubov 79ea6a2d22 MDL-50650 core_grades: Validate minimum grade when importing grades
Also add behat test for max and min grade validation.
2023-12-04 16:03:21 +08:00
Kyle Matter e2f5104676 MDL-50650 core_grades: allow grade imports larger than 100 points 2023-12-04 12:53:21 +08:00
Jun Pataleta bc133f6fc3 Merge branch 'MDL-79726-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2023-12-04 12:09:17 +08:00
Huong Nguyen bea6119692 Merge branch 'MDL-79784-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2023-12-04 09:25:35 +07:00
Jun Pataleta b04fcb4527 MDL-80131 mod_data: Make page titles unique 2023-12-02 07:20:35 +08:00
dragos5436 b4278ca6b0 MDL-60632 mod_quiz: Fix chart rendering fail in quiz report
If a quiz activity has negative grading enabled for incorrect answers,
students can achieve overall negative grades in this quiz. If at least
one student achieves a negative grade, the chart at the bottom of the
quiz 'Results' tab will fail to display. This patch add a search for
negative results, removes them from the band below 0 and adds them to
the 0 band. This will make the chart render correctly again.

Co-authored-by: Susana Leitão <sleitao@uporto.pt>
Co-authored-by: Matthias Opitz <m.opitz@ucl.ac.uk>

Removed whitespace at end of lines
2023-12-01 15:28:24 +00:00
Paul Holden 9785551527 MDL-76719 mod_assign: don't try to load user if there are none. 2023-12-01 13:18:38 +00:00
Paul Holden 533074d453 MDL-69497 mod_assign: amend preference definitions for current user.
Ensure they can always be updated when using the grader.
2023-12-01 10:55:28 +00:00
Sara Arjona d20c47f89c Merge branch 'MDL-80209-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2023-12-01 10:56:09 +01:00
Sara Arjona d29433ddc6 MDL-79726 completion: Overall should consider pass/fail states too
In MDL-78744, when the overallcompletion state was added to be displayed
in the activity card, only COMPLETE/INCOMPLETE status were considered.
However, depending on the activity completion settings, there are a
couple of states more that should also be included (COMPLETE_FAIL and
COMPLETE_PASS).

A new method has been added to the cm_completion_details class to
calculate whether a module should be considered or not completed,
based on their completion options and the current value for the
overall complete state.
2023-12-01 09:19:11 +01:00
David Mudrák 0a494aa9f6 MDL-80221 lang: Use fixed strings in the tests, too 2023-12-01 06:28:07 +01:00
Ilya Tregubov a418e9e53a weekly release 4.3+ 2023-12-01 13:12:23 +08:00
Jun Pataleta 3f10ec31b5 MDL-80043 grade: Add upgrade.txt notes 2023-12-01 09:10:53 +08:00
Jun Pataleta 488a653e50 MDL-80043 gradereport_grader: Define editingmode_title lang string 2023-12-01 09:10:53 +08:00
Jun Pataleta 7fa08a0b35 MDL-80043 grade: editingmode_title support for grade report plugins
* Add support for grade report plugins that define an
`editingmode_title` lang string. If the grade report plugin defines this
 language string, it will be used for the page title's unique
 identifying information when editing mode is turned on.
2023-12-01 09:10:53 +08:00
Jun Pataleta 6a89731462 MDL-80043 gradereport_singleview: Improve heading wordings
* Make the headings for the single view easier to read and understand
* When on editing mode, update the heading for the grade and user
screens to convey to the user that the page is currently on editing
mode. This is helpful for screen reader users as they can immediately
know the current display mode of the single view report page when this
gets read via the page title.
2023-12-01 09:10:53 +08:00
Jun Pataleta fd8b7fc730 MDL-80043 grade: Use heading parameter for the page title if provided 2023-12-01 09:10:52 +08:00
sam marshall 006eaeef08 MDL-55640 setuplib: test_localcachedir fails sporadically 2023-11-30 13:57:48 +00:00
Paul Holden 2862cce2a9 MDL-80286 datafield_date: cast field content to real when sorting.
This ensures we don't under/overflow the size of an integer in DB.
2023-11-30 10:05:01 +00:00
Amaia Anabitarte e3d76202cd MDL-80209 mod_scorm: Save minimum score completion 2023-11-30 10:40:17 +01:00
Mark Johnson 6441cca4d1 MDL-79806 quiz_statistics: Queue recalculation on attempt_deleted 2023-11-30 08:53:16 +00:00
Juan Leyva 04892e4707 MDL-79784 tool_mobile: Add missing external::format_text 2023-11-30 09:47:46 +01:00
Jay Oswald 3ef7a7d76a MDL-79091 core_badges: refactor bades cron task 2023-11-30 17:24:37 +11:00
Jay Oswald 8cf880c5de MDL-79091 core_badges: use adhoc tasks 2023-11-30 17:24:37 +11:00
Huong Nguyen 17282deeea Merge branch 'MDL-79816-403' of https://github.com/rmady/moodle into MOODLE_403_STABLE 2023-11-30 10:40:37 +07:00
Meirza c2e8975523 MDL-76109 core: Don't check password policy for guest user
Besides adding the is_guest() check in the check_password_policy() condition,
I also changed the temporary user ID because the temporary user and
the guest must not share the same ID. Otherwise, it will raise an error.

Co-authored-by: Andrei Bautu <abautu@gmail.com>
2023-11-30 10:35:38 +07:00
Huong Nguyen c5e3ce289e Merge branch 'MDL-74378_403' of https://github.com/PhilippImhof/moodle into MOODLE_403_STABLE 2023-11-30 10:11:45 +07:00
Ilya Tregubov 83e442cc69 Merge branch 'MDL-79890-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-11-30 10:45:01 +08:00
Ilya Tregubov b8f0f87b5f Merge branch 'MDL-78849-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-30 10:38:09 +08:00
Ilya Tregubov 539e5db429 Merge branch 'MDL-79325-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-30 09:34:46 +08:00
Sara Arjona 4c3523d987 Merge branch 'MDL-80205-403' of https://github.com/aanabit/moodle into MOODLE_403_STABLE 2023-11-29 18:42:09 +01:00
Mihail Geshoski 222b528160 MDL-80270 gradereport_grader: User row as the last row cannot be sticky
In certain scenarios, a user row can be the last row in the grader
report table. The current logic does not take this into account and
always pins the last row regardless of the type.
This change ensures that the last row is not a user row before executing
the logic responsible for pinning this row.
2023-11-30 00:10:30 +08:00
Jun Pataleta a0951e25b3 Merge branch 'MDL-79841-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2023-11-29 23:48:44 +08:00
Sara Arjona 70a95b8eae Merge branch 'MDL-79610-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2023-11-29 16:37:08 +01:00
Sara Arjona 5705496179 Merge branch 'MDL-80150-403' of https://github.com/lucaboesch/moodle into MOODLE_403_STABLE 2023-11-29 13:34:40 +01:00
Mikel Martín e77912a7c5 MDL-79610 courseformat: Fix availability restrictions rendering
When duplicating a course module, availability restrictions was not rendering
properly. That happened because 'editing' was not being exported for template
for a single course module. This patch adds 'editing' to the cm exported data.
2023-11-29 13:11:05 +01:00
Paul Holden fb13f6dd01 Merge branch 'MDL-79967-403-fix' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2023-11-29 12:03:05 +00:00
Jun Pataleta fbeef47a58 MDL-79967 mod_scorm: Use only the required field for the query 2023-11-29 18:32:07 +08:00
Sara Arjona 8fa5a3008d MDL-80150 resource: Reintroduce file icon
The new activity card design, planned for Moodle 4.3, reintroduces
the resource MIME icon that was removed in Moodle 4.0.
This is a backport of MDL-78285.
2023-11-29 09:58:14 +01:00
Jun Pataleta 2c94380acf Merge branch 'MDL-79148-403' of https://github.com/ssj365/moodle into MOODLE_403_STABLE 2023-11-29 15:20:32 +08:00
Jun Pataleta 8cd66034e4 Merge branch 'm43-mdl79967' of https://github.com/danmarsden/moodle into MOODLE_403_STABLE 2023-11-29 12:25:05 +08:00
Huong Nguyen 0bb3a2f20a Merge branch 'v_4_3_0' of https://github.com/dominicchinkh/moodle into MOODLE_403_STABLE 2023-11-29 10:33:21 +07:00
Huong Nguyen 96f06326f8 Merge branch 'm43-mdl80004' of https://github.com/danmarsden/moodle into MOODLE_403_STABLE 2023-11-29 09:52:51 +07:00
Huong Nguyen 8b6d43705e Merge branch 'MDL-80002-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2023-11-29 09:36:06 +07:00
Huong Nguyen eb0575859b Merge branch 'MDL-79267-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-29 09:17:38 +07:00
Huong Nguyen a6ce3c0758 Merge branch 'MDL-79512-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2023-11-29 09:08:38 +07:00
Huong Nguyen a9bfc2075b Merge branch 'MDL-76694-403' of https://github.com/snake/moodle into MOODLE_403_STABLE 2023-11-29 09:01:12 +07:00
Jun Pataleta 6a1644abff Merge branch 'MDL-80181-403' of https://github.com/srobotta/moodle into MOODLE_403_STABLE 2023-11-29 09:37:46 +08:00
Jeremy Schulz 1bbc0425e3 MDL-80180 admin: added readonly support for multicheckbox 2023-11-28 14:34:37 -05:00
Pascal Hamar 015b2a0cd8 MDL-36733 qtype_calculated: Wildcards in calculated question hints
The placeholders for the hints are properly replaced by this change and any formulas present are replaced.

The validation is performed by the existing function qtype_calculated_find_formula_errors(),
which is called by the calculate() function,
which in turn is called by the variable substituter "vs" using the replace_expressions_in_text() function.

vs -> replace_expressions_in_text() -> calculate() -> qtype_calculated_find_formula_errors().
2023-11-28 18:41:33 +01:00
Mark Johnson cb18237b5c MDL-80281 session: Don't report long session locks for readonly sessions
Previously, $CFG->sessionlockdebug was reporting long session locks for
all requests, even if they defined READ_ONLY_SESSION. This change
ensures that only sessions with locks are reported.
2023-11-28 16:21:17 +00:00
Shamiso.Jaravaza c898074fd8 MDL-79148 mod_bigbluebuttonbn: fix recording link 2023-11-27 23:54:56 -07:00
Ilya Tregubov 14b5d0694f Merge branch 'MDL-79603-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2023-11-28 13:53:20 +08:00
Laurent David 54d0894ec3 MDL-79841 theme_boost: Do not remove card borders
* When we are in small screensize we had removed the
left and right borders for cards. This is now restored
2023-11-28 06:37:37 +01:00
Jun Pataleta 0b326e9e72 Merge branch 'MDL-80210_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2023-11-28 10:35:14 +08:00
Amaia Anabitarte eae154a081 MDL-80205 mod_scorm: Remove all Pass grade options from completion 2023-11-27 18:04:30 +01:00
Helen Foster 42022a1d26 MDL-80221 lang: Import fixed English strings (en_fix) 2023-11-24 18:30:16 +01:00
Stephan Robotta c59c0f906b MDL-80181 wiki: fix width of left column in comments 2023-11-24 11:18:07 +01:00
Philipp Imhof e82f1d43c8 MDL-74378 mod_quiz: make sure timer is initialized 2023-11-24 08:52:05 +01:00
Huong Nguyen 6ff6327a6b weekly release 4.3+ 2023-11-24 12:23:15 +07:00
Huong Nguyen 4b34028221 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2023-11-24 12:23:12 +07:00
David Woloszyn 1e8af88afd MDL-80229 core: Add tolerance to min_get_minimum_revision 2023-11-24 15:51:45 +11:00
Eloy Lafuente (stronk7) edbbe29706 Merge branch 'MDL-79966-m403' of https://github.com/sammarshallou/moodle into MOODLE_403_STABLE 2023-11-23 23:40:50 +01:00
sam marshall fc35bc5876 MDL-79966 core_task: NEVER_RUN_TIME did not fit in 10 digits 2023-11-23 16:23:39 +00:00
Rodrigo Mady 6c5f358ca2 MDL-79816 block_recentlyaccesseditems: Fix modname type in WS 2023-11-23 11:57:22 -03:00
Paul Holden 895189107f MDL-71336 forms: ensure grouped date elements have unique IDs.
Previously they were each taking the ID of their parent group element.
2023-11-23 12:01:28 +00:00
Tim Hunt d8c4a57ce8 MDL-80210 quiz: fix default for reviewmaxmarks when upgrading
It is correct that the database default should be 0, to match
other similar columns, but when sites are upgraded, we need
to set the settings for all existing quizzes to match the previous
behaviour.
2023-11-23 11:03:46 +00:00
Andrew Nicols 3d5c60ad26 Merge branch 'MDL-79966-m403' of https://github.com/sammarshallou/moodle into MOODLE_403_STABLE 2023-11-23 10:30:40 +08:00
Huong Nguyen a2cfa93011 Merge branch 'MDL-78496-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-11-23 09:23:00 +07:00
Ilya Tregubov e40f4e4d83 Merge branch 'MDL-80157_storedfileproblem-403' of https://github.com/leonstr/moodle into MOODLE_403_STABLE 2023-11-23 09:47:03 +08:00
Ilya Tregubov 1f0f185176 Merge branch 'MDL-79185-MOODLE_403_STABLE' of https://github.com/dmitriim/moodle into MOODLE_403_STABLE 2023-11-22 11:48:09 +08:00
Dmitrii Metelkin d5d2c59161 MDL-79185 cache: don't throw exception if cache data is corrupted 2023-11-22 12:49:18 +11:00
Ilya Tregubov c2c357dfb2 Merge branch 'MDL-78670-403' of https://github.com/rmady/moodle into MOODLE_403_STABLE 2023-11-22 09:10:54 +08:00
Paul Holden fccf80c3a3 MDL-80185 lang: use iso6391 language code for HTML lang attributes.
This resolves accessibility issues where Moodle language pack codes
didn't always map to correspondingly named iso6391 codes.

Where this value is defined in the language configuration, it will
now be used.
2023-11-21 22:55:21 +00:00
Mikel Martín ee26c16e90 MDL-80015 course: Fix category 'More' dropdown alignment
Co-authored-by: Stephen Sharpe <stephen.sharpe@synergy-learning.com>
2023-11-21 14:15:39 +01:00
Angelia Dela Cruz 26c5ffd356 MDL-79828 core_badges: Delete already awarded course badges 2023-11-21 16:30:12 +08:00
Amaia Anabitarte d38211efc6 MDL-79979 tool_generator: Use auto-enrol admin in new courses setting 2023-11-21 08:41:57 +01:00
sam marshall dd844035ac MDL-79966 core_task: Scheduled task timing (crontab fields) is wrong 2023-11-20 17:12:27 +00:00
Amaia Anabitarte 778b8f51b1 MDL-79979 tool_generator: Use auto-enrol admin in new courses setting 2023-11-20 17:13:59 +01:00
Juan Olivares 4d28563eeb MDL-74248 mod_folder: Fix mp3 files being unaccessible in chrome
Platform users that host mp3 files within a folder are not able to access them using Chrome. This fix allows them to do so.
2023-11-20 11:30:28 +01:00
Dan Marsden 89f3fced22 MDL-79967 scorm: Fix scorm_insert_track grading calls. 2023-11-20 22:03:10 +13:00
Amaia Anabitarte 1ed0cb2562 MDL-79862 completion: Improve error handling for default completion 2023-11-20 09:52:22 +01:00
Huong Nguyen 7e1589b2ee Merge branch 'MDL-80037-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2023-11-20 14:48:38 +07:00
Huong Nguyen bc5d145dfb Merge branch 'MDL-79783-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-20 14:05:10 +07:00
Huong Nguyen 5aaba2850f Merge branch 'MDL-79604-403' of https://github.com/srobotta/moodle into MOODLE_403_STABLE 2023-11-20 14:01:22 +07:00
Laurent David 3116b46192 MDL-79512 mod_feedback: Add toast dialog when saved
* Add notification to notify the user once the changes have been
successfully saved
2023-11-20 06:55:14 +01:00
Laurent David 3a1aed3578 MDL-79512 mod_feedback: Fix issue with drag and drop
* A teacher can not change the order of the questions in feedback
as the order is not saved.
2023-11-20 06:55:14 +01:00
AMOS bot a2544fd5ca Automatically generated installer lang files 2023-11-20 00:10:44 +00:00
Rodrigo Mady ebab82c9f3 MDL-78670 mod_quiz: Add offline atempt rule for sequential navigation 2023-11-17 20:30:50 -03:00
Mark Johnson 40e56b3adc MDL-79806 mod_quiz: Implement new quiz_attempt_deleted callback 2023-11-17 16:06:58 +00:00
Leon Stringer 0a360e1eb2 MDL-80157 file: Exception message spelling 2023-11-17 14:35:38 +00:00
Paul Holden 59aa25852c MDL-79325 group: consistent name formatting in overview page/export. 2023-11-17 09:48:06 +00:00
Jun Pataleta ba60319c94 MDL-80037 theme: Indicate when $CFG->theme is defined in config.php
* And prevent selection of theme if $CFG->theme is defined in config.php
2023-11-17 09:24:32 +08:00
Dominic Chin ad836b6d4c MDL-80035 theme_boost: Fix fourth argument of single_button constructor 2023-11-17 09:17:27 +11:00
Sara Arjona 72d7395c96 weekly release 4.3+ 2023-11-16 16:22:34 +01:00
Sara Arjona d376741b93 Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2023-11-16 16:22:30 +01:00
Paul Holden ca991dbe29 MDL-78849 user: correct logical operator behaviour for guest button.
Apart from being banned per MDL-74990, it causes a subtle bug here
due to operator precedence.

Co-authored-by: Tom Mayfield <tmayfield@costrack.com>
2023-11-16 11:31:49 +00:00
Huong Nguyen 3a7594c71a Merge branch 'MDL-76457-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2023-11-16 10:58:12 +07:00
Huong Nguyen 9f88fb2125 Merge branch 'MDL-80066-403' of https://github.com/elza3ym/moodle into MOODLE_403_STABLE 2023-11-16 10:53:03 +07:00
Ilya Tregubov f29c4e36a4 Merge branch 'MDL-80121-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2023-11-16 10:01:03 +08:00
Ilya Tregubov a87db5a60d Merge branch 'MDL-75616-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2023-11-16 09:23:06 +08:00
Mohamed Shehata 07bbe2fa5e MDL-80066 form: fix date picker on small screens 2023-11-15 23:44:09 +02:00
Sara Arjona 1c11297195 Merge branch 'MDL-79981-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-11-15 17:10:10 +01:00
Sara Arjona 5f59e2a61e Merge branch 'MDL-79962-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-15 16:47:39 +01:00
Sara Arjona 7e4119de7e Merge branch 'MDL-79697-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-11-15 16:15:49 +01:00
Andrew Nicols c30c1ca9cd MDL-79697 core: PSR-4 NS can be spread across multiple dirs
The PSR-4 specification does not preclude a single namespaces from
having multiple sources. This is the case for several PSR standards
including standard packagist packages distributed by PSR:

- PSR-7 - HTTP Message Interfaces: \Psr\Http\Message
- PSR-17 - HTTP Factories: \Psr\Http\Message
- PSR-15 - http-server-handler: \Psr\Http\Server
- PSR-15 - http-server-middleware: \Psr\Http\Server
2023-11-15 21:24:52 +08:00
Sara Arjona f50c83ac37 Merge branch 'MDL-80045-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2023-11-15 13:47:10 +01:00
Sara Arjona c54b573bd0 Merge branch 'MDL-79956-403' of https://github.com/ssj365/moodle into MOODLE_403_STABLE 2023-11-15 13:31:44 +01:00
Jun Pataleta 1f5e140ae9 MDL-80121 gradereport_singleview: Increase zero-state heading level
With the h2 heading not being rendered on the zero-state pages of the
Single view report, we need to increase the heading level of the
"Search for a user to view all their grades" and
"Select a grade item above" headings from h3 to h2.
2023-11-15 19:24:04 +08:00
Jun Pataleta f65d067dec MDL-80121 grade: Trim heading
In order to prevent rendering an empty heading <h2>, we need to make
sure that the $heading parameter passed to print_grade_page_head() is
not an empty string.
2023-11-15 19:24:04 +08:00
Stephan Robotta dbe914883c MDL-79604 mod_data: exception if mandatory checkox list is missing 2023-11-15 12:22:49 +01:00
Ilya Tregubov 783dc4cdb2 Merge branch 'MDL-79996-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-15 15:24:26 +08:00
Dan Marsden 26e91219e8 MDL-64431 assignfeedback_editpdf: Flatten PDF files 2023-11-15 19:28:21 +13:00
Huong Nguyen 15526541b3 Merge branch 'MDL-79648-403' of https://github.com/SergioComeron/moodle into MOODLE_403_STABLE 2023-11-15 09:13:35 +07:00
Huong Nguyen c78364eb73 Merge branch 'MDL-79601-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2023-11-15 09:09:25 +07:00
Angelia Dela Cruz 0c9bc880c1 MDL-79603 mod_scorm: Behat coverage for Scorm package display options 2023-11-15 09:41:38 +08:00
Andrew Nicols 93f282a345 MDL-78496 phpcs: Moodle 4.3.x supports up to php82 only
At this point, and per our PHP policy, Moodle 4.3 is not expected to
support PHP 8.3.
2023-11-15 09:23:31 +08:00
Andrew Nicols 7d4ba18a65 MDL-79890 core: Stop using get_class() without args
PHP 8.3 deprecates the use of `get_class()` without arguments. The
following alternatives should instead be used as appropriate:

- `get_class($this)` - The equivalent for instance methods
- `self::class` - The current class

Note that the behaviour of `get_class()` in a static method was
equivalent to `self::class` and _not_ `static::class`. That is to say
that the previous behaviour did not respect late static binding.
2023-11-15 09:14:08 +08:00
Andrew Nicols e78cbaa6c4 MDL-79890 core: ReflectionProperties::setValue() should take 2 args
Since PHP 8.3 setValue() must be called with null as the first arg if
called statically.
2023-11-15 09:13:08 +08:00
Mikel Martín 9b401dfc29 MDL-76457 tool_usertours: Fix tour popovers in RTL 2023-11-14 21:27:38 +01:00
Mikel Martín 3e179325e9 MDL-76457 theme_boost: Fix bootstrap popovers in RTL
- Fix the arrow placement for bootstrap popovers in RTL mode.
- Remove unneded css parser workaround for popover arrows.
  After MDL-67386 was integrated those changes were not needed anymore.
2023-11-14 21:27:38 +01:00
Sara Arjona 60727a7cdf MDL-77581 lesson: Fix behat random failures 2023-11-14 16:24:43 +01:00
Andrew Nicols 4d59c788ee MDL-78496 environment: Moodle 4.4 requirements
The only changes to requirements since Moodle 4.3 are increases to:

* the minimum PHP version required; and
* the minimum required Moodle version.
2023-11-14 22:47:55 +08:00
Andrew Nicols d5993fffd4 MDL-80079 core: Correct incorrect arg to format_text::$options 2023-11-14 22:28:55 +08:00
Andrew Nicols 136bd2c4c4 MDL-80079 core: Correct incorrect arg to format_string::$options 2023-11-14 22:28:55 +08:00
Mikel Martín b2d8615725 MDL-80045 block_starredcourses: Fix cards alignment in small screens 2023-11-14 14:36:23 +01:00
Sara Arjona 4e880779f9 Merge branch 'MDL-77581-403' of https://github.com/dpalou/moodle into MOODLE_403_STABLE 2023-11-14 11:52:51 +01:00
Dani Palou e5efe8b6d1 MDL-77581 lesson: Fix generator unit tests in oracle 2023-11-14 11:11:25 +01:00
SergioComeron da4a2d6191 MDL-79648 core_course: 29 October repeating day 2023-11-13 18:37:23 +01:00
Sara Arjona 84ec153634 Merge branch 'MDL-77581-403' of https://github.com/dpalou/moodle into MOODLE_403_STABLE 2023-11-13 17:19:41 +01:00
Paul Holden b69c42db5d MDL-79692 enrol_meta: check for group validity when adding members. 2023-11-13 10:23:14 +00:00
Huong Nguyen 55d5f7756d Merge branch 'MDL-74129-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2023-11-13 10:43:18 +07:00
David Saylor b262a67c89 MDL-75616 backup: Use standard temp directory for extraction 2023-11-13 11:08:17 +11:00
AMOS bot 05492ddbb3 Automatically generated installer lang files 2023-11-12 00:10:15 +00:00
Sara Arjona 185856927d MDL-74129 h5p: Preserve metadata information
The metadata information was not restored when an H5P file was uploaded
(it was saved when it was edited directly from the Content bank, but the
original information in the H5P file was lost).
This patch includes all the metadata fields and its values in the original
H5P file to preserve this information too.
2023-11-10 10:33:47 +01:00
Ilya Tregubov 935c2509f1 weekly release 4.3+ 2023-11-10 09:17:15 +08:00
Paul Holden a502fbcd1e MDL-79962 roles: consistent sorting of role entity name column.
The "name" field is typically omitted for default/pre-defined roles,
which should be accounted for when sorting.
2023-11-09 17:04:03 +00:00
Dani Palou 061186c215 MDL-77581 behat: Test create lesson pages using UI 2023-11-09 11:32:00 +01:00
Dani Palou eac49ffa4c MDL-77581 behat: Apply new lesson cluster generators to existing tests 2023-11-09 11:32:00 +01:00
Dani Palou db82329f6c MDL-77581 behat: Create generators for lesson clusters 2023-11-09 11:32:00 +01:00
Dani Palou 875ad48c9d MDL-77581 lesson: Fix wrong PHPDoc in some generator functions
While creating the new perform_create_page function I noticed that the PHPDoc return type of the existing functions was wrong
2023-11-09 11:01:51 +01:00
Dani Palou c627e1a4de MDL-77581 behat: Remove lesson_student_dashboard test file
After f7c476bac5 was integrated, these tests didn't assert anything specific and similar steps are already tested in lesson_navigation
2023-11-09 11:01:51 +01:00
Dani Palou 3b0165ec67 MDL-77581 behat: Apply new lesson generators to existing tests 2023-11-09 11:01:51 +01:00
Dani Palou 96bfaf67fd MDL-77581 behat: Create generators for lesson pages and answers 2023-11-09 11:01:51 +01:00
Dani Palou fc4354c7e3 MDL-77581 behat: Support finish_generate_ in generators 2023-11-09 11:01:51 +01:00
Shamiso.Jaravaza b5c49b8ac9 MDL-79956 mod_bigbluebuttonbn: fix import links 2023-11-08 21:48:03 -07:00
Michael Aherne 2721a7cdc3 MDL-80030 filelib: Fix info type. 2023-11-09 11:13:52 +08:00
Ilya Tregubov ab79a0e972 Merge branch 'MDL-79992-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2023-11-09 09:57:09 +08:00
Sara Arjona 275af6c114 Merge branch 'MDL-79827-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-08 18:10:44 +01:00
Sara Arjona dcc8300ef4 Merge branch 'MDL-79975-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-08 18:03:03 +01:00
Sara Arjona af62e9773c Merge branch 'MDL-79781-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-08 17:19:51 +01:00
Sara Arjona 0ac35f9248 Merge branch 'MDL-76555-403' of https://github.com/pmaneggia/moodle into MOODLE_403_STABLE 2023-11-08 17:06:18 +01:00
Mikel Martín a028969791 MDL-79601 report_completion: Fix RTL First/Last name alignment 2023-11-08 16:23:29 +01:00
Mikel Martín 7bc41babf8 MDL-79601 report_progress: Fix RTL First/Last name alignment 2023-11-08 16:23:29 +01:00
Andrew Nicols 4e08cbd42e MDL-79981 core: Add ability to manually run and filter phpunit on GHA 2023-11-08 12:53:43 +08:00
Ilya Tregubov d3427d45fa Merge branch 'MDL-79615_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2023-11-08 10:43:00 +08:00
Huong Nguyen 67a690d176 Merge branch 'MDL-79739-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-11-08 09:23:50 +07:00
Huong Nguyen 81d72254b5 Merge branch 'MDL-79840-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-08 09:23:09 +07:00
Ilya Tregubov b2e58aed7b Merge branch 'MDL-79858-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-08 09:49:29 +08:00
Paul Holden 5ca36b0731 MDL-79267 mod_forum: define report subplugin type language strings. 2023-11-07 09:49:56 +00:00
Huong Nguyen b105ec5188 Merge branch 'MDL-78953-403' of https://github.com/pedrojordao/moodle into MOODLE_403_STABLE 2023-11-07 15:33:52 +07:00
Jun Pataleta a85f7c200b MDL-80019 mod_bigbluebuttonbn: Use updated completion field names
Field names for the completion conditions have been updated since 4.3.
So the fields names should also be updated in the test.
2023-11-07 13:13:18 +08:00
Jun Pataleta f09f15e0be Merge branch 'MDL-80019-403' of https://github.com/call-learning/moodle into MOODLE_403_STABLE 2023-11-07 13:11:51 +08:00
Laurent David e35be12fb7 MDL-80019 mod_bigbluebuttonbn: Completion form freeze fix
* When the completion is locked, we should not be able to edit the completion elements
2023-11-06 22:11:02 +01:00
Sara Arjona 2f1a67685f Merge branch 'mdl-78650-403-stable' of https://github.com/Fragonite/moodle into MOODLE_403_STABLE 2023-11-06 09:51:00 +01:00
Huong Nguyen d3bc17fe56 Merge branch 'MDL-79062-403-2' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2023-11-06 10:52:04 +07:00
Dan Marsden adfd93a303 MDL-80004 scorm: add missing require locallib during course reset. 2023-11-06 12:05:12 +13:00
Paola Maneggia 82f9838f28 MDL-76555 mod_resource: Fix PHP8.0 type error (legacy resources) 2023-11-05 13:46:39 +01:00
Mikel Martín a18057fd06 MDL-80002 forumreport_summary: Fix summary report date filtering 2023-11-03 15:47:30 +01:00
Paul Holden dbc285e49e MDL-79996 communication: valid instance checks during user deletion. 2023-11-03 12:55:55 +00:00
Sara Arjona 31b409d920 MDL-79992 backup: Display course backups from activity restore
The Course backup area was not displaying the course backups when
accessing to the Restore page for an activity because the context
was not updated properly for this area.
2023-11-03 12:23:18 +01:00
Jake Dallimore 501c58729f MDL-76694 core_comment: exit the js init if the element cannot be found
In pages which result in the theme_boost/embedded template being used,
blocks may be rendered and the resulting HTML ignored, leaving any JS
they may have added to run without a corresponding DOM element to act
on. This fixes that case for comments, making sure we exit gracefully
during the init if the element can't be found.
2023-11-03 10:13:14 +08:00
pedrojordao 3cc283a25e MDL-78953 autocomplete: Add only one empty option when deselecting item.
Each option that was deselected was prepending an empty option in the select.
2023-11-02 18:47:59 -03:00
Paul Holden 188b5021fb MDL-79975 tool_task: correct class attribute table cell property. 2023-11-02 13:19:50 +00:00
Sara Arjona be7a698223 weekly release 4.3+ 2023-11-02 13:40:53 +01:00
Jun Pataleta 60a1c97289 MDL-79062 grade: Behat test fixes
* Feature: We can use a minimum grade different than zero
  - Use correct minimum input values.
  - Use data generators for faster test execution.
* Scenario: Disable category overriding
  - Use the field name to ensure that the correct field is being tested.
2023-11-02 17:34:29 +08:00
Jun Pataleta 92afaa484f MDL-79062 grades: Sort-by-name menu item accessibility fixes
* <h6> tags cannot be in table cells. Replace them with <div> tags.
* Group the ascending/descending sort menu items to better indicate
where they belong to.
2023-11-02 17:34:28 +08:00
Jun Pataleta 9fdb460330 MDL-79062 gradereport_grader: Set numeric type for grade value inputs
* Set grade inputs for grade items with type set to GRADE_VALUE to
number and add min and max input attributes, where necessary.
2023-11-02 17:34:28 +08:00
Jun Pataleta ccfc156b43 MDL-79062 gradereport_grader: Remove setting of tabindex >= 1
Tab indices that are greater than or equal to 1 break the natural
tab order of the document and may cause problems for keyboard users.
2023-11-02 17:34:27 +08:00
Huong Nguyen 10f10ee269 Merge branch 'MDL-78903-403' of https://github.com/meirzamoodle/moodle into MOODLE_403_STABLE 2023-11-02 10:18:20 +07:00
Huong Nguyen 47bf3467a2 Merge branch 'MDL-79801-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-11-02 10:14:46 +07:00
Huong Nguyen 04d7b13fc4 Merge branch 'MDL-79617_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2023-11-02 09:05:36 +07:00
Alexander Van der Bellen a3e7f7fd14 MDL-78650 mod_assign: Improve group submission action event handling
Don't return an event action when a group submission has already been submitted
by another student.
2023-11-01 20:38:30 +08:00
Alexander Van der Bellen 745b504426 MDL-78650 mod_assign: Add Behat test 2023-11-01 20:38:24 +08:00
Alexander Van der Bellen 89913c7eeb MDL-78650 mod_assign: Add unit test 2023-11-01 20:38:20 +08:00
Daniel Neis Araujo eb658e33c3 MDL-73378 gradebook: Category grade null when all subgrades are null 2023-10-31 13:58:16 -03:00
Sara Arjona 03e68d81b4 Merge branch 'MDL-79856-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-31 13:26:32 +01:00
Sara Arjona ae80f632bf Merge branch 'MDL-79849-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2023-10-31 13:08:20 +01:00
Jun Pataleta e2079313e2 Merge branch 'MDL-79853-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-10-31 16:46:06 +08:00
Huong Nguyen b4bade5ca9 Merge branch 'MDL-79807_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2023-10-31 12:49:48 +08:00
Huong Nguyen 10883ef268 Merge branch 'MDL-79460-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2023-10-31 12:49:48 +08:00
David Woloszyn 19e1e834a7 MDL-79460 communication_matrix: Re-enabled tests that use new sync route 2023-10-31 09:34:06 +07:00
Meirza f30b0eee9b MDL-78903 tiny_h5p: show repositories if editor filepicker type set 2023-10-31 08:00:28 +07:00
Meirza 0ad939f062 MDL-78903 tiny_media: show repositories if editor filepicker type set 2023-10-31 08:00:27 +07:00
Jun Pataleta e8f534c4f4 Merge branch 'MDL-77274-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2023-10-30 17:14:27 +08:00
Jun Pataleta 7e22a9c2c7 Merge branch 'MDL-79800-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2023-10-30 16:40:12 +08:00
Mikel Martín c542a77f11 MDL-79800 courseformat: Fix activity cards right elements margins
- Fix margins in elements displayed in the right side of activity cards.
Replace right margins with left margins to avoid extra space when editing
mode is off and action menu is not displayed.
- Fix groupmode icon spacing when displayed in small resolutions with edit
mode disabled
2023-10-30 07:52:38 +01:00
Laurent David db52a8bc31 MDL-77274 core_renderer: Respect full name format in letter avatars
* Make sure that we respect the fullnamedisplay and alternativefullnameformat
parameters to decide on the initials for a given user
* Add further tests

Co-authored-by: Tatsunori Uchino <tats.u@live.jp>
2023-10-30 06:16:09 +01:00
Huong Nguyen 4800afbc3e Merge branch 'MDL-79639_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2023-10-30 11:22:59 +07:00
Jun Pataleta 990b740ec1 Merge branch 'MDL-79194-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2023-10-27 23:33:20 +08:00
Mark Johnson b1d436a281 MDL-79615 course: Improve efficency of cache rebuilds
When bulk-updating course module visibility, set_coursemodule_visibily
was triggering a partial cache purge and rebuild for each course module.
This potentially led to 2 cache sets each requiring a lock to be
acquired and released per course module, plus any other cache updates
for other changes to the course in the same request.

This adds a new $rebuildcache paramter to the
set_coursemodule_visibilty, which is true by default to retain the
existing behaviour. If set false, it will skip doing the partial purge
and rebuild for that course module, and it is up to the calling code to
ensure the cache is updated as requried.

To assist with this, there is a new
course_modinfo::purge_course_module_cache_multiple() method, which
allows multiple course modules to be purged from the cache in a single
cache set.
2023-10-27 10:51:29 +01:00
Ilya Tregubov 8bf31f2277 Merge branch 'MDL-79693-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-27 16:45:37 +08:00
Jun Pataleta 97fc41ebcb Merge branch 'MDL-77364-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2023-10-27 16:34:00 +08:00
Sara Arjona bac3ffbe79 MDL-77364 myoverview: Display course name tooltip
Based on the feedback given by the UX team:
- The text has been increased to display more (50 vs 55).
- A tooltip has been added to display the full course name on hover,
following the accessibility guidelines.
2023-10-27 07:26:24 +02:00
Jun Pataleta dc7dd96189 weekly release 4.3+ 2023-10-27 09:43:04 +08:00
Jun Pataleta 67c567062e NOBUG: Fixed SVG browser compatibility 2023-10-27 09:43:03 +08:00
Jun Pataleta b7ee271c8b Merge branch 'MDL-79768-403-fix' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2023-10-26 23:05:58 +08:00
Ferran Recio 81cdd8db81 MDL-79194 core_courseformat: optimize section reload
* When reloading a section, we also forced the reloading of
course modules, resulting in doing the same work twice (once for
the section reload and once for the course module reload)
* Debounce the reloading process so prevent unwanted duplicate
reloads
2023-10-26 14:53:07 +02:00
Paul Holden 90d7b45f5f MDL-79858 block_myoverview: correctly export request course button. 2023-10-26 13:40:31 +01:00
Mark Johnson 632d4faeec MDL-79807 quiz_statistics: Clear stats cache when question added/removed 2023-10-26 13:38:31 +01:00
Paul Holden aac3b19bff MDL-79781 course: detect invalid creator role for pending courses. 2023-10-26 13:18:34 +01:00
Paul Holden a65a8fc40a MDL-79856 roles: use role localname when confirming deletion. 2023-10-26 12:00:54 +01:00
Angelia Dela Cruz c0bedfd833 MDL-79768 fix: Fixed random failing Behat due to time difference 2023-10-26 18:05:04 +08:00
Laurent David b72551c475 MDL-79194 core_course: Refresh modules menus with section changes
* Whenever a section is hidden, we need to refresh all contextual (hamburger)
menus of each course modules.
2023-10-26 11:04:40 +02:00
Andrew Nicols 437967f78e MDL-79853 core: Add phpunit options to manual runs 2023-10-26 14:48:51 +08:00
Jun Pataleta e05747e353 Merge branch 'MDL-79768-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2023-10-26 10:48:18 +08:00
Jun Pataleta 4865c40790 Merge branch 'MDL-42189-403' of https://github.com/davewoloszyn/moodle into MOODLE_403_STABLE 2023-10-26 10:32:13 +08:00
Paul Holden d63fd0365a Merge branch 'MDL-79762-43' of https://github.com/kabalin/moodle into MOODLE_403_STABLE 2023-10-25 23:55:54 +01:00
Juan Leyva f054958593 MDL-79849 tool_mobile: Add search disabled features 2023-10-25 17:32:26 +02:00
Ruslan Kabalin 7ee0ee6206 MDL-79762 core: Add possibility to define modal type for modalform
If `moduleName` param is passed in config object for modalform, it will be
used to instantiate modal class, otherwise 'core/modal_save_cancel' is
used.

Co-authored-by: Marina Glancy <marina@moodle.com>
2023-10-25 15:57:11 +01:00
Paul Holden cf715c550a MDL-79840 contentbank: fix references to invalid icon images. 2023-10-25 08:45:51 +01:00
Jun Pataleta 440a27c5de Merge branch 'MDL-75572-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2023-10-25 13:44:40 +08:00
Sara Arjona 2130e4ff8b MDL-75572 criteria: Only award badges to sucessfull completions
The UX team confirmed a badge shouldn't be awarded when the criteria
use a passing grade and the user gets a failing grade.
So the COMPLETION_COMPLETE_FAIL status won't be considered
completed for activities with completion that require a passing
grade.
2023-10-25 07:08:26 +02:00
Jun Pataleta 676626064c Merge branch 'MDL-79782-403' of https://github.com/roland04/moodle into MOODLE_403_STABLE 2023-10-24 22:47:47 +08:00
Jun Pataleta 655ac0b6a6 Merge branch 'MDL-79767-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-24 16:23:12 +08:00
Jun Pataleta 28233e5b3d Merge branch 'MDL-79637-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-10-24 10:48:55 +08:00
Paul Holden e001508f68 MDL-79827 tiny_link: show repositories only if editor filepicker set. 2023-10-23 22:01:01 +01:00
Mark Johnson 9b96653fc5 MDL-79617 repository_upload: Close session early in upload process 2023-10-23 15:32:15 +01:00
Angelia Dela Cruz 920ddcb70f MDL-79768 mod_data: Test for student can see upcoming data activity 2023-10-23 08:50:51 +08:00
David Woloszyn 82d1033f43 MDL-42189 gradereport_overview: Report hidden from suspended enrolments 2023-10-23 09:46:58 +11:00
Paul Holden 6856da7f09 MDL-79801 tag: fix report entity flagged column/filter query.
The "flag" field isn't a boolean state (1/0), it's a cumulative
count of how many times the tag has been flagged by users. This
should be accounted for to ensure that column aggregation and
filtering performs correctly.
2023-10-20 14:22:17 +01:00
Sara Arjona 150d134fa2 weekly release 4.3+ 2023-10-20 12:16:13 +02:00
Sara Arjona d30fa9918f Merge branch 'install_403_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_403_STABLE 2023-10-20 12:16:09 +02:00
Mikel Martín 343ad024c0 MDL-79782 pix: Replace angles- SVGs with Free versions 2023-10-20 08:50:10 +02:00
Huong Nguyen 4f8778cfc7 Merge branch 'MDL-78775-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2023-10-20 09:29:47 +07:00
Ilya Tregubov b770c56b6d MDL-78775 gradereport_grade: Fix Behat.
Sort by lastname before doing any assertions.
2023-10-20 09:56:26 +08:00
Paul Holden 156953f115 MDL-79783 theme_boost: remove form-check padding inside table cells. 2023-10-19 14:13:46 +01:00
Mark Johnson 07a6698d01 MDL-79639 quiz_statistics: Prevent database deadlocks
This changes the cache purge code to select IDs for deletion
first, rather than using a subquery in a DELETE, since this
risks causing a deadlock in MySQL.
2023-10-19 08:57:34 +01:00
Huong Nguyen 1ec619db69 Merge branch 'MDL-79689-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2023-10-19 10:03:37 +07:00
Paul Holden 9f5f8d4a0a MDL-79767 communication: correct arguments when loading instance. 2023-10-18 22:38:50 +01:00
Sara Arjona 810f134cdc Merge branch 'MDL-79635-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-18 19:55:48 +02:00
Sara Arjona 7b1a0a0e65 Merge branch 'MDL-77651-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2023-10-18 15:47:11 +02:00
Sara Arjona 447530591d Merge branch 'MDL-79747_403' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2023-10-18 10:28:57 +02:00
Huong Nguyen 34223e32ef Merge branch 'MDL-78775-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2023-10-18 12:56:24 +07:00
Ilya Tregubov ac3cda51f0 MDL-78775 core_grades: Fix Behat 2023-10-18 12:53:53 +08:00
Angelia Dela Cruz f25ac24adf MDL-79689 mod_assign: Behat for enabling anonymous submissions 2023-10-18 10:46:30 +08:00
Huong Nguyen c3ba14a052 Merge branch 'MDL-79705-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-18 09:36:17 +07:00
Huong Nguyen bd844a184c Merge branch 'MDL-78979-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-18 09:23:31 +07:00
AMOS bot c968b1236f Automatically generated installer lang files 2023-10-18 00:11:10 +00:00
Jun Pataleta ff2d542295 MDL-77651 calendar: Hide left/right arrow characters
* Hide the arrow characters for the calendar templates so they won't be
read out by screen readers and avoid confusion for screen reader users.
2023-10-17 23:51:52 +08:00
Jun Pataleta bf68987951 MDL-77651 core: Hide left/right arrow characters for link_arrow_xx()
* The arrow characters in link_arrow_right() and link_arrow_left()
functions get announced by screen readers. This causes confusion
and is unnecessary.
2023-10-17 23:51:52 +08:00
Paul Holden e2049d770c MDL-79705 reportbuilder: remove checkbox field callback handling.
We no longer need special handling of this field type, because it
now returns language strings rather than HTML markup for a checkbox
element on display.
2023-10-17 16:51:29 +01:00
Paul Holden 021bdd0e4b MDL-79705 profilefield_checkbox: display data as simple Yes/No. 2023-10-17 16:51:29 +01:00
Tim Hunt 9bb59ad004 MDL-79747 quiz stats: task should run as admin the right way
The correct way to get an ad-hoc task to run as the main admin account
is to leave userid as null.

Setting it causes fatal errors if the main admin account is set to
auth: nologin.
2023-10-17 16:50:32 +01:00
Iñaki Arenaza fd1035ecf0 MDL-78481 mod_lesson: matching pagetype applying filters fix 2023-10-17 17:15:39 +02:00
Paul Holden 0602fdc0cb MDL-79693 output: remove embedded toast region from clipboard modal.
This was causing the toast notification upon the clipboard action
result to immediately disappear as the modal was closed. The toast
module can happily handle this for us itself, so remove from the
template.
2023-10-17 08:20:57 +01:00
Andrew Nicols 1294e309dc MDL-79739 core: Only run some tests in separate processes 2023-10-17 12:21:12 +08:00
Huong Nguyen 596bc2c2bf Merge branch 'MDL-78775-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2023-10-17 10:47:02 +07:00
Ilya Tregubov 09568062fd Merge branch 'MDL-79691-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2023-10-17 10:28:27 +08:00
Huong Nguyen b205b758e8 Merge branch 'MDL-79367-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2023-10-17 09:17:46 +07:00
Paul Holden 55077e45bb MDL-78979 mod_data: correct restore decode rule for data view page. 2023-10-16 20:53:52 +01:00
Angelia Dela Cruz 9c4f0d31f2 MDL-79691 mod_h5pactivity: Behat coverage for H5P activity grades reset 2023-10-16 16:18:43 +08:00
Sara Arjona c220ad62dd Merge branch 'MDL-79566-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2023-10-16 09:53:48 +02:00
Ilya Tregubov ffc8c116fd Merge branch 'MDL-79365-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-16 14:07:55 +08:00
Sara Arjona 8679a15604 MDL-79367 availability: Fail grade does not mark activities as completed
The UX team confirmed that an activity shouldn't be considered completed
when the criteria use a passing grade and the user gets a failing grade.
So the COMPLETION_COMPLETE_FAIL status won't be considered
completed from now on.
2023-10-16 07:52:40 +02:00
Huong Nguyen 9995038273 Merge branch 'MDL-79698-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-10-16 11:39:53 +07:00
Huong Nguyen 70ee7b1beb Merge branch 'MDL-79653-403' of https://github.com/andelacruz/moodle into MOODLE_403_STABLE 2023-10-16 10:54:38 +07:00
Huong Nguyen 5cc2ab26eb Merge branch 'MDL-79352-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-16 10:42:06 +07:00
Huong Nguyen cf0446155b MDL-79566 tiny_autosave: Add Javascript submission handler 2023-10-16 09:29:16 +07:00
Paul Holden 87c42699d9 MDL-79365 customfield_textarea: ensure field uniqueness is correct. 2023-10-13 14:30:34 +01:00
Andrew Nicols 97bcb22dba MDL-79693 core: Move toast regions to document on modal close 2023-10-13 14:22:48 +01:00
Andrew Nicols ecd82700a7 MDL-79698 core: Correct duplicate array key in test provider 2023-10-13 15:44:17 +08:00
Ilya Tregubov daa598b1b4 MDL-78775 core_grades: Fix saving on grader report page
When we have a pagination on grader page and search for user
that is not on first page, saving was throwing an error
since page didn't have enough data
2023-10-13 14:09:25 +08:00
Ilya Tregubov 13eb20d8d1 weekly release 4.3+ 2023-10-13 13:39:23 +08:00
Angelia Dela Cruz d0a9c57c0b MDL-79653 gradingform_guide: Behat coverage for deleting marking guide 2023-10-13 10:46:23 +08:00
Huong Nguyen 21b11cdb3d Merge branch 'MDL-79638-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-10-12 11:07:19 +07:00
Ilya Tregubov d4b2c50163 Merge branch 'MDL-79160-master' of https://github.com/danghieu1407/moodle into MOODLE_403_STABLE 2023-10-12 09:43:41 +08:00
Ilya Tregubov bd50ac1876 Merge branch 'MDL-79422-master' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE 2023-10-12 09:09:27 +08:00
Ilya Tregubov da4204c491 Merge branch 'MDL-79562-403' of https://github.com/lameze/moodle into MOODLE_403_STABLE 2023-10-12 09:06:32 +08:00
Simey Lameze 780b99229c MDL-79562 behat: make verification step more specific 2023-10-12 08:16:22 +08:00
Jun Pataleta bebde352fe Merge branch 'MDL-79611-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-11 18:15:46 +08:00
Jun Pataleta 1adf99597e Merge branch 'MDL-79633-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-11 13:41:12 +08:00
Huong Nguyen 70c1b02809 Merge branch 'MDL-78103-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2023-10-11 11:25:04 +07:00
chen levy 335c9c920d MDL-78103 theme: Fixed dropdown menu size by the content 2023-10-11 11:10:26 +07:00
Safat b1ad4fb830 MDL-79614 communication_matrix: Add missing call for sync flag 2023-10-11 11:04:44 +08:00
Jun Pataleta 2b5073a222 MDL-79626 upgrade: add the 4.3.0 separation line to all upgrade scripts 2023-10-11 09:40:13 +08:00
Andrew Nicols 731b150241 MDL-79637 phpunit: Do not reset DB during init of isolated tests
During the bootstrap of PHPUnit we ensure that the database has been
reset to its initial state.

We do this by checking the internally-stored DB write count between
runs. If the count is not yet set (null), or it has been increased, we
force a reset.

When running an isolated test the test runner resets the database, it
then sets up a new isolated test environment by writing a new PHPUnit
test case and passing it to a new PHP Process using standard in. As part
of this, the bootstrap is run for that process.

Because we are in a new process, the db write count is fresh and not yet
set. This has been leading to an additional db reset before the isolated
test.

To handle this we want to _not_ perform a reset during the
initialisation for isolated runs. We know that the DB is in a fresh
state before we start the run.

To support this we need to know whether the test is an isolated test
during the bootstrap, which means we cannot use the previous approach to
calculating this.

Instead we look at the PHP_SELF value. PHP sets this to "Standard input
code" when run from stdin, instead of running a file.

There should not be any other legitimate reason to run a PHPUnit
bootstrap via this stdin approach.

Unfortunately this approach is a little bit risky as it depends on the
presence of a specific string, however this string has been in place
since 2016, and there is no legitimate way of calculating this.

I did consider looking at whether the called script included `/vendor/`
and `/phpunit`, but this is also likely a risky approach if someone
calls PHPUnit in an unexpected way.

This approach is itself unit tested so any change to PHP's stdin string
before we deprecate this approach entirely in 12 months time will be
caught.
2023-10-11 09:29:26 +08:00
Paul Holden 228ee621e6 Merge branch 'MDL-79642-q_tags_off-403' of https://github.com/leonstr/moodle into MOODLE_403_STABLE 2023-10-10 21:18:55 +01:00
Andrew Nicols 16f65ba275 MDL-79638 phpunit: Add unit test for increment resets 2023-10-11 00:10:33 +08:00
Andrew Nicols 165918258d MDL-79638 phpunit: Remove mysql/mariadb hack
This hack was introduced to work around a bug in MySQL 5.6.14 and
MariaDB at the time.

https://bugs.mysql.com/bug.php?id=69882

It was addressed a few months later in 5.6.16, and 5.7.4.
MariaDB merged version 5.6.16 of MySQL's InnoDB engine in MariaDB
10.0.11 and got hte patch from there.

Moodle has required MySQL 8.0, and MariaDB 10.6.7 since Moodle 4.2 and
it is therefore safe to remove these hacks.
2023-10-10 23:35:45 +08:00
Sara Arjona 3392a198d7 Merge branch 'MDL-79623-MOODLE_403_STABLE' of https://github.com/PhMemmel/moodle into MOODLE_403_STABLE 2023-10-10 16:19:19 +02:00
Leon Stringer 7cba44007c MDL-79642 qbank_tagquestion: Fix Return type err
Previously if $CFG->usetags was not enabled the course question bank
page would show:

  Exception - qbank_tagquestion\plugin_feature::get_question_filters():
  Return value must be of type array, none returned

This is now fixed.
2023-10-10 12:13:56 +01:00
Paul Holden 0004f31e2e MDL-79635 group: ensure unique params used to determine visibility.
Or we'll trigger DML "Incorrect number of query parameters" exception.
2023-10-10 10:08:53 +01:00
Sara Arjona 83865c7979 Merge branch 'MDL-77816-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-10-10 09:21:27 +02:00
Ilya Tregubov b43222dc67 Merge branch 'MDL-79501-master' of https://github.com/geichelberger/moodle into MOODLE_403_STABLE 2023-10-10 15:06:11 +08:00
Ilya Tregubov e857efcf28 Merge branch 'MDL-79279' of https://github.com/timhunt/moodle into MOODLE_403_STABLE 2023-10-10 11:20:58 +08:00
Ilya Tregubov e7ab69fa26 Merge branch 'MDL-71414-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2023-10-10 10:19:00 +08:00
Paul Holden f4743bbb8d MDL-79633 mod_data: correct timemodified tag replacement attribute. 2023-10-09 19:41:02 +01:00
Paul Holden d1b63c5e18 MDL-79352 admin: fix links to tool plugin management page. 2023-10-09 15:11:52 +01:00
Paul Holden cf5065ed71 MDL-79611 group: early exit getting members of non-existing group. 2023-10-09 15:00:33 +01:00
Paul Holden bf380e2d46 MDL-77816 mod_bigbluebuttonbn: feedback when validating completion. 2023-10-09 14:58:49 +01:00
Yannick Schillinger 4b40f8273d MDL-77816 mod_bigbluebuttonbn: Fix completionValidate argument format 2023-10-09 14:58:38 +01:00
Laurent David c0f2ff773f MDL-71414 mod_h5pactivity: Add a new "None" message
* In matching types of questions, sometimes the user does not answer all
questions. We now display "None" in the result report. The answer can
be either correct or incorrect.
* Fix "unknown" answer constant name.
2023-10-09 11:57:34 +02:00
Laurent David 2ef18bce0d MDL-71414 mod_h5pactivity: Fix issue with drop down report
* Drag and Drop report were missing answers when target could be dropped on multiple
drop zones.
2023-10-09 11:57:34 +02:00
Philipp Memmel 536780ce38 MDL-79623 tool_componentlibrary: Fix correct modal content attribute 2023-10-09 09:05:41 +00:00
Jun Pataleta fe7aff8093 Moodle release 4.3 2023-10-07 11:31:00 +08:00
Sara Arjona c765bb3b52 Moodle release 4.3rc2 2023-10-06 14:03:06 +02:00
Sara Arjona cacdbac650 NOBUG: Fixed SVG browser compatibility 2023-10-06 14:03:03 +02:00
Sara Arjona d06fa181f9 Merge branch 'MDL-79581-master' of https://github.com/sarjona/moodle 2023-10-06 12:24:35 +02:00
Sara Arjona 89d3f66c2f MDL-79581 communication: Adding missing index to install 2023-10-06 12:18:03 +02:00
Sara Arjona 02d5e79b6f Merge branch 'MDL-79613-master' of https://github.com/snake/moodle 2023-10-06 08:31:11 +02:00
Huong Nguyen 73769bdd4f Merge branch 'MDL-79573-master-int' of https://github.com/mickhawkins/moodle 2023-10-06 13:04:36 +07:00
Jake Dallimore 12fa9a8d22 MDL-79613 core_grade: revert the removal of searchwidget templates
These templates are needed by plugins which use the now-deprecated
searchwidget (located in grade/amd/src/searchwidget/basewidget.js)
in order to keep that deprecated widget working during the deprecation
time period. This also clarifies the js deprecation notice.
2023-10-06 12:22:33 +08:00
Michael Hawkins acc48db386 MDL-79573 communication: Load form data for the correct provider fields 2023-10-06 11:10:09 +08:00
Ilya Tregubov b1774ab520 Merge branch 'MDL-79570-master' of https://github.com/ferranrecio/moodle 2023-10-06 11:09:29 +08:00
Ferran Recio 2824913f42 MDL-79570 tool_usertours: fix tours for fixed z-index elements 2023-10-06 05:00:15 +02:00
Ilya Tregubov 2b4041f93c Merge branch 'MDL-79586-master' of https://github.com/safatshahin/moodle 2023-10-06 10:25:39 +08:00
Michael Hawkins 329a9e97d2 MDL-79573 communication: Support new records for each provider type
Previously, we replaced information in the same communication record
in the database, now there will be a unique record per provider.
This ensures when switching between different providers, the correct
actions such as room member management can be actioned for the correct
provider.

This also includes the required updates for the instances to no
longer assume a provider must be enabled to be relevant. Specifying a
provider is optional to fetch a specific provider instance, the default
will use the currently enabled provider.
2023-10-06 09:54:32 +08:00
Ilya Tregubov f9d75f083f Merge branch 'MDL-79570-master' of https://github.com/ferranrecio/moodle 2023-10-06 08:40:33 +08:00
Ilya Tregubov 0cfac00031 Merge branch 'MDL-79589-master' of https://github.com/ferranrecio/moodle 2023-10-06 07:54:49 +08:00
Sara Arjona 1cdb5d2d20 Merge branch 'MDL-79599-master' of https://github.com/ferranrecio/moodle 2023-10-05 19:59:45 +02:00
Ferran Recio 74b61956ca MDL-79570 tool_usertours: fix drawers tour position 2023-10-05 18:03:33 +02:00
Ferran Recio 2e1506f42c MDL-79570 theme_boost: fix drawers z-index
Drawers are floating elements that should cover the page content but not
the top navbar or the sticky footer. This patch gives the drawer a
consistent z-index of $zindex-fixed -1 as oposed to the $zindex-fixed
used in the rest of floating elements.

However, in mobile the drawers acts a standard web drawer, covering the
full page content, event the other floating elements. This is why in
mobile the z-index should be higher than $zindex-fixed.
2023-10-05 18:03:33 +02:00
Sara Arjona 1bb937140f Merge branch 'MDL-79600-master' of https://github.com/roland04/moodle 2023-10-05 14:05:22 +02:00
Ferran Recio 28c7558884 MDL-79599 theme_boost: fix drawers in RTL 2023-10-05 13:44:38 +02:00
Sara Arjona 563851857f Merge branch 'MDL-79602-master' of https://github.com/HuongNV13/moodle 2023-10-05 13:03:46 +02:00
Jun Pataleta 9071c03b41 Merge branch 'MDL-79381-master' of https://github.com/HuongNV13/moodle 2023-10-05 18:18:33 +08:00
Mikel Martín 7e3c732d17 MDL-79600 course: Fix courseindex collapseall icon in RTL
- Add new fa-angles-{left|right|down|up} icons to the icon system
- Fix course index collapseall icon in RTL
2023-10-05 11:29:50 +02:00
Huong Nguyen 8e242a78a0 Merge branch 'MDL-79584-master' of https://github.com/snake/moodle 2023-10-05 14:53:05 +07:00
Andrew Nicols 46f5547308 MDL-79581 communication: Work around inconsistency in DB SET FROM upgrade 2023-10-05 14:05:38 +07:00
Safat 75cae1dede MDL-79586 communication: Restrict the use of non-configured providers 2023-10-05 16:53:50 +11:00
Safat 73f342233a MDL-79586 core: Resolve regression of disabled matrix plugin 2023-10-05 16:22:02 +11:00
Huong Nguyen d0294388d7 MDL-79602 core: Handle empty selection for MoodleNet 2023-10-05 12:10:11 +07:00
Jake Dallimore ffb85e63f7 MDL-79584 core_payment: wait for processPayment promise to resolve
This fixes a regression introduced by MDL-78324 in which the
notification was being called before the promise had resolved. This
change just reverts that.
2023-10-05 12:56:15 +08:00
Jake Dallimore dc2721083c MDL-79584 core_payment: load strings in js and pass to template
This template shouldn't really be using string helpers inside string
helpers like it does, and this is unsupported in 4.3. This just moves
the string resolution to js land and then passes that resolved string
into the template instead.
2023-10-05 12:56:14 +08:00
Jake Dallimore 230c2961fc MDL-79584 core_payment: fix modal content insertion in payment modal
Instead of replacing the body, revert to the desired behavior in which
the payment methods are injected into the body, retaining the desired
markup classes, etc.
2023-10-05 12:50:06 +08:00
Huong Nguyen 0d6204d29c Merge branch 'MDL-79581-master' of https://github.com/andrewnicols/moodle 2023-10-05 11:37:09 +07:00
danghieu1407 5174e4e36d MDL-79160 Question: Answer field overflows parent width with large size 2023-10-05 10:57:51 +07:00
Eloy Lafuente (stronk7) a48504f8fb MDL-79381 core: MoodleNet PHPUnit with the new controllers
Basically the changes imply that:
- For some tests that are using reflection, we need to ensure
  that the backup controller is passed.
- And, whenever used explicitly in tests, it has to be destroyed.
  (note that this leaves out tests running get_package(), because
  that method now instantiates and destroys the controller by itself.
  only tests that get a controller need to destroy it).
- Move from some old functions to the new ones introduced in the issue.
2023-10-05 10:40:33 +07:00
Eloy Lafuente (stronk7) ace315370f MDL-79381 core: Refactor MoodleNet controller
Including in this commit:
 - Moved the backup controller instantiation out of the constructor
 - Created a new get_backup_controller() method to retreive the controller when needed
 - Removed some constructor-promoted properties
 - Added resourcefilename to resource_packager constructor
 - Made resource_packager to abstract class (cannot be instantiated)
 - Removed constructor-promoted properties and declare them "normally"
 - Backup controller is called and destroyed in get_package() method.
   Only PHPUnit tests will need to play with the destroy method because
   they use the reflection method
 - Made course_partial_packager extend course_packager and removed constructor-promoted properties
 - Removed the get_all_task_settings() method and replaced it with get_all_activity_tasks() method
 - Fixed bugs related to Partial course sharing
2023-10-05 10:40:32 +07:00
Huong Nguyen 5ab3d0a02f Merge branch 'MDL-79591-master' of https://github.com/sarjona/moodle 2023-10-05 09:35:10 +07:00
Andrew Nicols 805ebbb434 Merge branch 'MDL-79276-master' of https://github.com/raortegar/moodle 2023-10-05 08:55:14 +08:00
Jun Pataleta 98ac14eecb Merge branch 'MDL-79531-master-1' of https://github.com/mihailges/moodle 2023-10-05 07:37:02 +08:00
Ferran Recio 312806fd5c MDL-79589 course: fix availability subpanel selected option 2023-10-04 17:05:42 +02:00
Sara Arjona 69d4f0db33 Merge branch 'MDL-79583-master' of https://github.com/andrewnicols/moodle 2023-10-04 16:47:19 +02:00
Sara Arjona d113c7f00e MDL-79591 quiz: Fix the string for the completion condition 2023-10-04 16:40:40 +02:00
Andrew Nicols 5ee0a5f760 MDL-79581 core_communication: Linting fixes 2023-10-04 20:37:58 +08:00
Andrew Nicols 166d137407 MDL-79581 communication_matrix: Use the contextid from the API 2023-10-04 20:37:57 +08:00
Andrew Nicols 99c1543aa8 MDL-79581 communication: Context is a mandatory field
The API was incorrectly assuming that all uses of the API were for a
course, and that the instanceid of the communication instance was a
course id. These assumptions are both entirely wrong.

The API is intended to support a range of uses including use at the
site, user, and activity levels.

Furthermore, if a group were to be used, then the instanceid should be
of that group's id, and therefore the contextid would need to be fetched
or that group's course instead.

The only solution here is to add a new contextid field to the table, and
implement it all parts of the API.
2023-10-04 20:37:57 +08:00
Ilya Tregubov f2ba761bef Merge branch 'MDL-79157-master' of https://github.com/ferranrecio/moodle 2023-10-04 18:49:19 +08:00
Mihail Geshoski bef518efb8 MDL-79531 mod_quiz: Create only one random question in new category 2023-10-04 12:31:12 +02:00
Mihail Geshoski 451614016e MDL-79531 mod_quiz: Fix exception when adding random questions
Moves the data-filtercondition property to an element that always
exists regardless of whether the selected category from the filter
has questions or not. This will effectively solve the exception
that is being thrown due to the non-existing element and also
enable creation of random questions in a category that does not
have any questions yet. Also, the data-filtercondition attribute
is no longer used when creating a random question in a new category
as this value is not relevant in this case. Instead, a default
filter condition is generated in the webservice for the random
question based on the newly created category.
2023-10-04 12:31:12 +02:00
Sara Arjona 9877a06246 Merge branch 'MDL-79551-master-rc' of https://github.com/junpataleta/moodle 2023-10-04 12:28:14 +02:00
Sara Arjona 396fef601b Merge branch 'MDL-79565' of https://github.com/paulholden/moodle 2023-10-04 11:55:41 +02:00
Ferran Recio 0c6a581f1e MDL-79157 output: fix menu subpanels keyboard navigation 2023-10-04 11:07:45 +02:00
Paul Holden 894b7ef422 MDL-79565 dml: replace hardcoded length SQL with appropriate API.
SQL Server uses `LEN(..)`, meaning we cause a DML exception when
trying to call invalid method.
2023-10-04 09:13:51 +01:00
Paul Holden 2bb6c551cf MDL-79310 enrol: restrict searched users to those user can view. 2023-10-04 14:30:45 +08:00
Paul Holden b91feb0b23 MDL-79310 forumreport_summary: report only on users who can be viewed. 2023-10-04 14:30:45 +08:00
Paul Holden 6de45d2c9f MDL-79310 mod_forum: ensure only visible users can be exported. 2023-10-04 14:30:45 +08:00
Andrew Nicols c81cf6a7b7 MDL-79583 core_badges: Remove unused AMD module
This module was removed by removed by MDL-78324, but added back due to a
merge conflict in MDL-79064.
2023-10-04 14:28:30 +08:00
Jun Pataleta d5d7835a0a MDL-79551 versions: Make CiBoT happy
* Use array short syntax for $plugin->dependencies
* Add trailing comma for multi-line $plugin->dependencies array
2023-10-04 14:04:29 +08:00
Jun Pataleta 3d55b4a865 MDL-79551 tiny_html: Remove unnecessary $plugin->release 2023-10-04 14:01:27 +08:00
Jun Pataleta cfc48251c2 MDL-79551 versions: Main version bump 2023-10-04 13:59:41 +08:00
Jun Pataleta 94bc2cd38b MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
Sara Arjona 4101c5ee2a Merge branch 'MDL-69119_angle_bracket_character_in_answers_not_escaped_in_moodle_xml_export_of_multiple_choice_calculated_questions' of https://github.com/ziegenberg/moodle 2023-10-04 07:51:30 +02:00
Huong Nguyen 7ac2a960e9 Merge branch 'MDL-79539-master' of https://github.com/meirzamoodle/moodle 2023-10-04 10:53:57 +07:00
Huong Nguyen 5602cc2488 Merge branch 'MDL-79548-master' of https://github.com/mickhawkins/moodle 2023-10-04 10:21:41 +07:00
Jake Dallimore e430e16c44 Merge branch 'MDL-79466_master' of https://github.com/marxjohnson/moodle 2023-10-04 10:21:08 +08:00
Mikel Martín 5fec728be9 MDL-79509 mod_wiki: Improve comment editing 2023-10-04 01:24:20 +00:00
Paul Holden 77766f9c8a MDL-72249 message: stricter cleaning of processor type parameter. 2023-10-04 01:24:20 +00:00
Mark Johnson b0bb97ee3b MDL-79213 groups: Add visibility checks in groups_get_members_join()
Group visibility was not taken into account when
generating SQL for getting enrolled users restricted
to a list of groups. This may have allowed users to
infer membership of groups they were not allowed to
see members of.
2023-10-04 01:24:20 +00:00
Paul Holden f5f6ce375e MDL-79426 gradeimport_csv: safely preview CSV content during import. 2023-10-04 01:24:20 +00:00
Paul Holden 833e818f02 MDL-79455 tool_uploadcourse: clean course data fields individually. 2023-10-04 01:24:20 +00:00
Paul Holden ef67f43c67 MDL-79455 tool_uploadcourse: safe preview of uploaded course data. 2023-10-04 01:24:20 +00:00
Paul Holden 3400ae6510 MDL-79409 mod_imscp: appropriate unserialization of package structure. 2023-10-04 01:24:20 +00:00
Paul Holden ba974a4add MDL-79408 mod_lesson: safer unserializing/comparison of properties. 2023-10-04 01:24:19 +00:00
David Woloszyn 7679452caf MDL-77846 core: Make endpoint revision number checks stricter
In some places we prevented cache poisoning, in others we did not. We
also did not place any restriction on the minimum value for a revision.

This change introduces a new set of functions for configonly endpoints
which validates the revision numbers passed in. If the revision is
either too old, or too new, it is rejected and the file content is not
cached. The content is still served, but caching headers are not sent,
and any local storage caching is prevented.

The current time is used as the maximum version, with 60 seconds added
to allow for any clock skew between cluster nodes. Previously some
locations used one hour, but there should never be such a large clock
skew on a correctly configured system.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-10-04 01:24:19 +00:00
Huong Nguyen 5a765e124c MDL-66730 core_course: Improve permission check for category moving
Co-authored-by: Erica Bithell <egb10@cam.ac.uk>
2023-10-04 01:24:19 +00:00
Laurent David a20997441d MDL-77795 mod_bigbluebuttonbn: Change meetingID on duplicate
* We need to set a different meetingID when duplicating or importing a
BigBlueButtonBN activity to prevent unwanted sharing of recordings between
meetings.
2023-10-04 01:24:19 +00:00
Paul Holden 100ac7c646 MDL-78820 h5p: use fullname of current user as the xAPI actor name. 2023-10-04 01:24:19 +00:00
meirzamoodle 0adb58ec9c MDL-78969 oauth2: remove auto-login after successful confirmation
With the new flow, users can go to the login page from the confirmed page,
and if the user successfully logs in, the user will be directed to the confirmed page.
To avoid that, the confirmed page can only be seen by users who are not logged in.
2023-10-04 01:24:19 +00:00
Paul Holden aa8ab48521 MDL-78971 quiz_grading: escape user identity fields on display. 2023-10-04 01:24:19 +00:00
Jun Pataleta b19a93b989 Merge branch 'MDL-79507_master' of https://github.com/marxjohnson/moodle 2023-10-04 09:15:45 +08:00
Jun Pataleta 1724362afc Moodle release 4.3rc1 2023-10-04 07:58:44 +08:00
Jun Pataleta c3ec88f12d Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-10-04 07:58:41 +08:00
raortegar 789c7c207b MDL-79276 core: Fix output renderer error in the shutdown handler.
Render the output in shutdown handler was causing
issues in phpunit test_psr_classloader
This is an small fix to check that the output has been started.
2023-10-03 14:14:32 +02:00
Ferran Recio 3f985bf3cf MDL-79458 output: fix subpanels in classic 2023-10-03 13:32:27 +02:00
Michael Hawkins 83998b9ba9 MDL-79548 core: Update MoodleNet modal strings so they can be translated
Previously, the type of share (course/activity) was being injected into
the string, but not from a translation, so did not fully translate. The
MoodleNet type (resource) was working, but has also been replaced here
to avoid inserting one string into another (this was also unnecessary
while resource is the only possible option). This also meant the latter
string could be deprecated.
2023-10-03 18:52:38 +08:00
Daniel Ziegenberg 55ef05579b MDL-69119 qformat_xml: fix mc calculated export
The Moodle XML export of multiple choice calculated questions was
missing proper escaping of answers. Also the indentation of the
generated xml was off.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2023-10-03 12:18:11 +02:00
Jun Pataleta b896c303f3 Merge branch 'MDL-79557-master' of https://github.com/jleyva/moodle 2023-10-03 12:18:13 +08:00
Jake Dallimore d7c348cfe1 Merge branch 'MDL-79056-master' of https://github.com/junpataleta/moodle 2023-10-03 12:02:52 +08:00
Andrew Nicols 213fd0cdb3 MDL-78580 mod_quiz: Do not concatenate lang strings 2023-10-03 12:02:29 +08:00
Andrew Nicols be8093e2c7 Merge branch 'MDL-78580_master' of https://github.com/marxjohnson/moodle 2023-10-03 11:05:42 +08:00
Huong Nguyen 6d6ed6822f Merge branch 'MDL-79247' of https://github.com/stronk7/moodle 2023-10-03 09:56:55 +07:00
Huong Nguyen 96b03bc501 Merge branch 'MDL-79555-master' of https://github.com/ilyatregubov/moodle 2023-10-03 09:44:04 +07:00
Huong Nguyen 4a7259f236 Merge branch 'MDL-79224_master' of https://github.com/marxjohnson/moodle 2023-10-03 09:38:53 +07:00
Jun Pataleta 6ee9522dfa Merge branch 'MDL-79254_master' of https://github.com/marxjohnson/moodle 2023-10-03 09:42:25 +08:00
Ilya Tregubov 9938ee3a04 Merge branch 'MDL-79534' of https://github.com/paulholden/moodle 2023-10-03 09:34:14 +08:00
Jun Pataleta cfc14c45bb Merge branch 'MDL-79535' of https://github.com/paulholden/moodle 2023-10-03 09:21:12 +08:00
Jun Pataleta 88b78ea367 Merge branch 'MDL-79364-master' of https://github.com/ilyatregubov/moodle 2023-10-03 09:16:38 +08:00
meirzamoodle 66e8bde8b3 MDL-79539 core: handling negative input to get the upper value
Co-authored-by: Alain Corbière <alain.corbiere@univ-lemans.fr>
2023-10-02 20:51:02 +07:00
Mark Johnson 7daa40f468 MDL-79466 qbank_history: Filters not applied correctly in History view
Filters were not being passed from the question bank when viewing a question's history,
mearning that questions not visible with the default filters applied would not have
any version shown on this history view unless the required filters were re-applied manually.

This change ensures the filters are passed in the URL to history.php. It also removes the Filter
UI from the History view, since it doesn't make sense to change the filters that are passed.
2023-10-02 13:30:33 +01:00
Brendan Heywood 08780b449f MDL-79276 core: Auto close streaming elements in shutdown handler 2023-10-02 21:11:44 +10:00
Brendan Heywood 21b5ad1555 MDL-79276 core: Fix perfdebug footer bug in non html pages 2023-10-02 21:11:44 +10:00
Brendan Heywood 79c2e4bdae MDL-79276 core: Fix html validation with streaming api 2023-10-02 21:11:44 +10:00
Brendan Heywood 10dd816af1 Revert "MDL-79320 mod_forum: remove use of buffering constant when exporting."
This reverts commit 4aeb85b988.
2023-10-02 21:11:44 +10:00
Juan Leyva 83461bcf5f MDL-79557 message: Clean subject field content for get_messages WS 2023-10-02 13:10:52 +02:00
Mark Johnson 6401ca4959 MDL-79224 core: Make Binary datafilter redisplay selected value
The Binary datafilter was returning a single value where all parts of
the API expect an array of values. This was working in most places by
fluke as this value was a single-character string, so doing $value[0]
returned the value. However, it was not working when deciding which
option to mark as selected when re-displaying the filter.

This change makes the filter return an array containing a single integer
value to match the rest of the API, then internally selects that single
value for comparison when deciding if an option should be selected.
2023-10-02 11:50:44 +01:00
Ilya Tregubov f591de2b58 MDL-79555 core_grades: Remove copy pasted code.
Seems that data from form was overridden for no reason.
2023-10-02 17:31:43 +08:00
Ilya Tregubov 94a13aeeff MDL-79364 backup: Fix conversion for 1.9 backups.
1.9 backups used current plugin version as oldversion.
But quiz uses some hardcoded version numbers when processing
restore which is lower then current plugin number, so some quiz
logic was ignored.

See define_structure(), process_quiz_question_instance() within
restore_quiz_stepslib.php
2023-10-02 15:26:50 +08:00
meirzamoodle 9c4b38b8d5 MDL-79539 messageinbound: avoiding a null parameter value 2023-10-02 14:26:04 +07:00
Ilya Tregubov c80e366051 Merge branch 'MDL-79458-master' of https://github.com/ferranrecio/moodle 2023-10-02 13:30:07 +08:00
Huong Nguyen 0d6fb2546d MDL-79344 tool_mfa: Use core/log for factor_webauthn 2023-10-02 11:41:53 +07:00
Huong Nguyen 8b395dcfc3 Merge branch 'MDL-79344-master' of https://github.com/stevandoMoodle/moodle 2023-10-02 11:36:59 +07:00
Eloy Lafuente (stronk7) f284cd9eaf MDL-79247 forum: Workaround same-time discussion modified dates bug
Within the forum_get_discussion_neighbours() function of forum
when the discussions timemodified (last post) is the same, there
is a bug that does strange things when calculating the prev and
next discussions.

Note that, in real life, this is really hard to achieve, but in tests,
when multiple discussions and post can be created by generators in the
same second (specially when the test machine is quick), chances of
facing that problem are higher.

By adding 1 second wait, we ensure that the discussions won't have
the same timemodified (last post) and workaround the problem.

No mater of that, the problem deserves an issue to be created
so we guarantee from code that it also works ok when the same
timemodified (last post) situation happens.
2023-10-01 23:23:30 +02:00
Eloy Lafuente (stronk7) 4fcb52cd45 MDL-79247 forum: Make discussion list ordering deterministic
Note that normally this doesn't matter much, but there are situations
when we want the discussion list ordering fully consistent /
deterministic.

Specifically, when discussions (or forum posts )are created in the
same second, or when the discussion titles are repeated, or 2
discussions have the same number of votes... (any criteria in general),
in the context of testing, we don't want the order
to be non-consistent, so we need to provide an extra sorting
criterion to make it fully deterministic.

So, in this case, we are adding a sort by discussion.id <<DIRECTION>>
that is an unique value, primary key... so cheap to calculate and,
that way, when the 1st sorting column has repeated values, the id
will decide.
2023-10-01 18:34:09 +02:00
AMOS bot 2e7514f4b0 Automatically generated installer lang files 2023-09-30 00:10:37 +00:00
Jun Pataleta 43d5aec47e on-demand release 4.3beta+ 2023-09-29 22:21:20 +08:00
Jun Pataleta 36b7d90e5e Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-09-29 22:21:17 +08:00
Gregor Eichelberger 91135c5305 MDL-79501 tiny: Fix editing multiple videos
The selection gets lost while opening the modal dialogue to update an
embedded media. Caching the current selection allows us to update the
previously selected node instead of updating the first embedded media.

Signed-off-by: Gregor Eichelberger <gregor.eichelberger@tuwien.ac.at>
2023-09-29 14:07:44 +02:00
Mark Johnson f462a48202 MDL-79507 quiz: Hide version info when rendering blocked questions 2023-09-29 09:31:36 +01:00
Jun Pataleta 7cf8ef39ad Merge branch 'MDL-79487-do-not-delete-refresh-token-master' of https://github.com/individual-it/moodle 2023-09-29 12:14:25 +08:00
Jun Pataleta 336ec5580a Merge branch 'MDL-79041-master-2' of https://github.com/HuongNV13/moodle 2023-09-29 11:59:39 +08:00
Jun Pataleta 7998d80302 MDL-79056 gradereport_user: Make column heading IDs unique
Associate column headings of user report tables to the user ID that the
report is being generated for. This will prevent duplicate IDs for the
report columns when multiple user report tables are displayed on the
User report page.
2023-09-29 11:03:14 +08:00
Jun Pataleta af22c038b7 MDL-79056 gradereport_user: Set grade category and item names as th
* The table cells mentioned in the `headers` attribute of other table
cells need to be using the table header <th> tag. Otherwise, HTML
validation fails.
2023-09-29 11:03:14 +08:00
Ilya Tregubov bd380a11ec Merge branch 'MDL-79280' of https://github.com/paulholden/moodle 2023-09-29 09:53:35 +08:00
Ilya Tregubov 45031e8205 Merge branch 'MDL-79521-master' of https://github.com/meirzamoodle/moodle 2023-09-29 09:21:40 +08:00
AMOS bot 96aac92ddc Automatically generated installer lang files 2023-09-29 00:08:13 +00:00
Paul Holden a8c8967055 MDL-79535 mod_quiz: use dummy URL in random questions external call.
It's not required by the external method, however its absence causes
debugging warnings about missing page URL in the error logs.
2023-09-28 19:08:47 +01:00
Paul Holden d7db5f08b0 MDL-79534 contenttype_h5p: correct fallback file used for icons. 2023-09-28 17:39:28 +01:00
Sara Arjona 458172696f Merge branch 'MDL-79511-master' of https://github.com/meirzamoodle/moodle 2023-09-28 16:15:47 +02:00
Sara Arjona d5bf67a67a Merge branch 'MDL-79499-master' of https://github.com/mihailges/moodle 2023-09-28 16:05:25 +02:00
Sara Arjona 3839d226ca Merge branch 'MDL-79482' of https://github.com/paulholden/moodle 2023-09-28 13:33:20 +02:00
Artur Neumann d4709d817e MDL-79487 oauth2: do not delete refresh token
when `log_out` is called from `\core\oauth2\client` it will delete the refresh token,
what it actually needs to use it to get a new access token
actually logging out is not needed here, the only thing we need to make sure is,
the invalid access token is removed from the session
that is done by storing `null`
2023-09-28 15:57:12 +05:45
Huong Nguyen 0094121765 Merge branch 'MDL-79274_master' of https://github.com/catalystfd/moodle 2023-09-28 15:48:49 +07:00
Sara Arjona f1721161c3 Merge branch 'MDL-79490' of https://github.com/paulholden/moodle 2023-09-28 10:46:17 +02:00
Ilya Tregubov 4f6240f630 Merge branch 'MDL-79502-master' of https://github.com/roland04/moodle 2023-09-28 16:45:07 +08:00
Ilya Tregubov 12b5c2e952 Merge branch 'MDL-79463' of https://github.com/paulholden/moodle 2023-09-28 16:40:35 +08:00
Sara Arjona 3f8a1b0107 Merge branch 'MDL-79477' of https://github.com/paulholden/moodle 2023-09-28 10:17:33 +02:00
Sara Arjona c571d3a0da Merge branch 'MDL-78918-master' of https://github.com/ssj365/moodle 2023-09-28 09:52:08 +02:00
Stevani Andolo 492fded0ec MDL-79344 tool_mfa: Fixed factor_webauthn request timeout handler 2023-09-28 15:48:34 +08:00
Stevani Andolo 369fee885f MDL-78750 communication_matrix: Fixed available providers 2023-09-28 09:13:22 +02:00
Meirza 3cda11b55c MDL-79521 tool_analytics: Export modal should use the ModalSaveCancel 2023-09-28 12:51:54 +07:00
Stevani Andolo a78921005f MDL-78750 communication_matrix: Dynamic settings 2023-09-28 07:51:35 +02:00
Sara Arjona 89eae3a811 Merge branch 'MDL-79350-master' of https://github.com/daledavies/moodle 2023-09-28 07:47:55 +02:00
Huong Nguyen f61b060182 Merge branch 'MDL-78813-master' of https://github.com/mihailges/moodle 2023-09-28 12:01:25 +07:00
Huong Nguyen 5c131030fd MDL-79041 core: Fix typo for MoodleNet resource URL 2023-09-28 11:33:00 +07:00
Huong Nguyen 202d57eef7 MDL-79041 core: Fix PHPDoc for prepare_file_share_request_data() 2023-09-28 11:33:00 +07:00
Huong Nguyen 1dda6c86b8 MDL-79041 core: Better handling of the MoodleNet resource URL
- Switch use PARAM_TEXT instead of PARAM_URL for resource URL
 - Added noreferrer to the Go to MoodleNet drafts button, to avoid the risks associated with opening in
   _blank without removing access to the referrer and opener
2023-09-28 11:32:59 +07:00
Meirza 0e8cb9c10b MDL-79511 lib: Allow dynamic properties for ADOFieldObject class 2023-09-28 10:15:48 +07:00
Huong Nguyen d2ad5c8c03 Merge branch 'MDL-75329' of https://github.com/paulholden/moodle 2023-09-28 09:35:44 +07:00
Ilya Tregubov 98d07e8514 Merge branch 'MDL-79285' of https://github.com/stronk7/moodle 2023-09-28 10:20:12 +08:00
Ilya Tregubov 78cbb2204d Merge branch 'MDL-79360/403' of https://github.com/skodak/moodle 2023-09-28 09:37:34 +08:00
Shamiso.Jaravaza d1c1acb155 MDL-78918 mod_bigbluebuttonbn: Fix notifications 2023-09-27 12:30:16 -06:00
Jun Pataleta e02ea67301 Merge branch 'MDL-77891-master' of https://github.com/snake/moodle 2023-09-27 23:50:32 +08:00
Jun Pataleta 3c7b5c983e Merge branch 'MDL-78905-master' of https://github.com/mihailges/moodle 2023-09-27 23:34:05 +08:00
Mark Johnson e5a7a18ae2 MDL-79254 quiz_statistics: Convert recalculate task to ad-hoc
Previously, quiz statistics processing happened on a scheduled task.
This task looked for all quizzes with completed attempts, then
determined if those quizzes had a statistics calculation that's newer
than the most recent attempt, then ran the statistics calculation if
needed. It was hard coded to stop processing after 1 hour.

The queries involved in determining which quizzes needed processing
weren't terribly efficient, and combined with the 1 hour limit this made
the statistics unusable on large sites, where they are the most useful.

This converts the scheduled task to an ad-hoc task, and uses an event
observer for mod_quiz\event\attempt_submitted to queue a task when
it is needed. This removes the need for a query to work out what needs
processing, and allows the task processing to be scaled up as needed.
2023-09-27 15:43:15 +01:00
Shamim Rezaie d22da878f1 MDL-79486 qbank_columnsortorder: Document get_data_from_datamethod 2023-09-27 22:59:04 +10:00
Shamim Rezaie 1ecb374344 Merge branch 'MDL-79486-master' of https://github.com/andrewnicols/moodle 2023-09-27 22:57:46 +10:00
Meirza 5dd79c7781 MDL-79511 auth: Avoid errors on the dynamic properties creation
Currently, Moodle uses fetchOBject() from ADOdb to get the table columns.
Sadly, the current ADOdb, especially the fetchObject() function, still creates dynamic properties.
Altering the fetchObject() with fetchRow() to avoid the dynamic properties deprecation error on PHP 8.2
2023-09-27 16:43:15 +07:00
Meirza a72d935dbc MDL-79511 enrol: Avoid errors on the dynamic properties creation
Currently, Moodle uses fetchOBject() from ADOdb to get the table columns.
Sadly, the current ADOdb, especially the fetchObject() function, still creates dynamic properties.
Altering the fetchObject() with fetchRow() to avoid the dynamic properties deprecation error on PHP 8.2
2023-09-27 16:42:50 +07:00
Sara Arjona 346fe1f78a Merge branch 'MDL-79432-master' of https://github.com/junpataleta/moodle 2023-09-27 10:22:21 +02:00
Mihail Geshoski 65b75f18cc MDL-78813 gradereport_grader: Revert border-top-width css change
Revert the modification of the border-top-width css attribute
to the grader table and the table header. This change seems to
be unnecessary.
2023-09-27 10:02:03 +02:00
Mihail Geshoski 8b9efc3135 MDL-78813 gradereport_grader: Make the average row sticky again
After MDL-75762 the overall average row in the grader report
was no longer properly pinned and hidden behind the sticky footer.
This change ensures that the overall average row is pinned again
at the top of the sticky footer when vertically scrolling. Also,
leveragning on the new sticky footer 'toggled' event it is making
sure that the row is properly pinned on narrower screens where the
sticky footer appears and disappears dynamically when scrolling.
2023-09-27 10:02:03 +02:00
Mihail Geshoski 4fa621a62f MDL-78813 core: Event to notify when the sticky footer has been toggled
New event in core/sticky-footer that is fired when the sticky footer has
been enabled or disabled. Leveraging this event, modules can create
event listeners and execute actions once the sticky footer has been
toggled.
2023-09-27 10:02:03 +02:00
Kevin Percy 01687d9125 MDL-78813 gradereport_grader: Fixed help icon covering course average 2023-09-27 10:02:03 +02:00
Mihail Geshoski 867e05ea34 MDL-78905 grades: Carry over form data without validation
Avoids validating form data which is carried over from the
simple dynamic form to the advanced form page when creating
or editing grade items, categories and outcomes in the
Gradebook setup.
2023-09-27 09:19:40 +02:00
Huong Nguyen 48f29f73e0 Merge branch 'MDL-79493-master' of https://github.com/ilyatregubov/moodle 2023-09-27 13:37:25 +07:00
Andrew Nicols 9a4a2df0e4 MDL-78750 communication: Fix missing test properties 2023-09-27 14:12:53 +08:00
Andrew Nicols 9739399741 Merge branch 'MDL-78750-master-int' of https://github.com/stevandoMoodle/moodle 2023-09-27 14:09:13 +08:00
Ilya Tregubov 1fbe7c1113 Merge branch 'MDL-79100-master' of https://github.com/meirzamoodle/moodle 2023-09-27 13:44:14 +08:00
Shamim Rezaie 2f29bac4f9 Merge branch 'MDL-78239-master' of https://github.com/HuongNV13/moodle 2023-09-27 14:39:54 +10:00
Huong Nguyen 9f0778ddb2 Merge branch 'MDL-79255-master' of https://github.com/call-learning/moodle 2023-09-27 11:12:39 +07:00
Huong Nguyen 08a669cba0 Merge branch 'MDL-79480' of https://github.com/paulholden/moodle 2023-09-27 11:10:35 +07:00
Huong Nguyen 82b661d8fa Merge branch 'MDL-79467' of https://github.com/paulholden/moodle 2023-09-27 10:44:02 +07:00
Jun Pataleta 6459f9f6b8 Merge branch 'MDL-78937-master' of https://github.com/meirzamoodle/moodle 2023-09-27 11:40:32 +08:00
Meirza d561e151e5 MDL-78937 lib: Set default value to $component property
We encountered errors on the plugin check page while upgrading from version 3.11 to 4.3.
The plugins marked with the status "To be deleted" have a null value for the $component property,
which results in the following error message:
"Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is
deprecated in lib/classes/component.php on line 1056."
To avoid this error, we need to set an empty string as the default value for the $component property.
2023-09-27 09:53:47 +07:00
Ilya Tregubov 53717729a5 Merge branch 'MDL-79451' of https://github.com/paulholden/moodle 2023-09-27 10:01:37 +08:00
Andrew Nicols 3da39da392 Merge branch 'MDL-78847-master' of https://github.com/aanabit/moodle 2023-09-27 09:55:33 +08:00
Ilya Tregubov 386f29a46d Merge branch 'MDL-77708-master' of https://github.com/sarjona/moodle 2023-09-27 09:07:10 +08:00
Eloy Lafuente (stronk7) 71bc684c41 MDL-79285 xhprof: Add support for optional "reducedata" parameter
This new parameter / property will decide if we want to reduce
the run data before processing it:
- By default it will be disabled in table mode.
- By default it will be enabled in graph mode.
- The defaults can be changed by adding reducedata=[0|1] in the URLs
- Once data reduction is enabled, it stays enabled while
  navigating within the xhprof reports.
2023-09-26 19:39:48 +02:00
Eloy Lafuente (stronk7) 8ef2974af1 MDL-79285 xhprof: Cover the new functions with unit tests
This covers the 2 new functions with unit tests:
- xhprof_topo_sort()
- reduce_run_data()

Note that the example graph used in the provider is the
one shown in the issue to explain the reduction procedure.
2023-09-26 19:39:47 +02:00
Eloy Lafuente (stronk7) bc70bd69ed MDL-79285 xhprof: Enable reducing runs data for quicker use
Here we are reducing the xhprof runs data by removing the
__Mustache==>__Mustache calls and all the orphaned data.

To save N iterations what we are doing is:

0. The information is "topologically" sorted, so we ensure that
   all the parents in the data are processed before the children.
   (this will help a lot when cleaning orphaned data, see below).
1. First pass, all the candidate (by regexp) calls are removed
   from the run data.
2. Second pass, all the orphaned information (calls that have
   ended losing his parent) are also removed, so data is consistent.
   Note that, normally we would need N passes to remove all the
   orphaned data (because each pass creates new orphan candidates),
   but, as far as we have ensured that the information is topologically
   sorted (see point 0 above), all this can be done in one unique pass.

TODO:
  - Add unit tests.
  - Enable some system to be able to decide which utilities we
    want to get the data reduced and which ones will continue
    using the complete data. Right now the reduction is being
    applied to all the utilities (both table and graph views).
  - Document the change and, if implemented, the way to select
    between complete/reduced data.
  - Consider adding some caching to speed-up the reduction process
    (some TODOs have been left in the code pointing to the critical
    points).
2023-09-26 19:39:47 +02:00
Paul Holden c16587f52f MDL-79480 repository_wikimedia: drop deprecated image size parameter. 2023-09-26 16:21:43 +01:00
Paul Holden 4fd6045c2a MDL-79482 qbank_columnsortorder: improve resize column modal header. 2023-09-26 16:20:10 +01:00
Mikel Martín fbc7a8f5f3 MDL-79502 courseformat: Fix completion button colour contrast 2023-09-26 16:51:06 +02:00
Sara Arjona c6e727732a Moodle release 4.3beta 2023-09-26 16:19:45 +02:00
Mihail Geshoski abfff66a86 MDL-79499 gradereport_grader: Pin properly the user name column
After modifying the 'overflow-y' css attribute of the #page element
in MDL-75762, the user name column is no longer properly pinned.
The existing 'top' css attribute on the column cells does not work
well with the newly assigned overlow on the #page element and
causes the columns to be partially cut off by the page when
scrolling horizontally. Re-adjusting the 'top' css attribute to '0'
solves this problem.
2023-09-26 15:27:11 +02:00
Ferran Recio 0184a477d5 MDL-79458 output: fix action menu subpanel behats 2023-09-26 13:22:51 +02:00
Paul Holden 6de6f64199 MDL-75329 course: defensive counting of course sections.
Avoids errors due to pre-existing integrity issues with course
data, where the absence entirely of section data would result in
PHP errors.
2023-09-26 12:18:32 +01:00
Paul Holden 2aa56c770d MDL-79477 tool_moodlenet: better handling of network download test.
We can't assume the presense of `Content-Length` header in response
to a HEAD request. Modify test assertion to account for this.
2023-09-26 11:14:46 +01:00
Amaia Anabitarte 8874725c53 MDL-78847 mod_folder: Fix inline folder renderer 2023-09-26 10:39:35 +02:00
Sara Arjona cc9430929d MDL-77708 docs: Update references from docs.moodle.org/dev 2023-09-26 10:30:19 +02:00
Huong Nguyen e38aa09dee MDL-78239 editor_tiny: Calculate correct height for non-visible editors 2023-09-26 14:50:13 +07:00
Ilya Tregubov 0f4efffb76 MDL-79493 core_grades: Fix Behat tests. 2023-09-26 15:49:43 +08:00
meirzamoodle 6246db3d30 MDL-79100 core_communication: Update communication-related lang strings 2023-09-26 12:12:38 +07:00
Jun Pataleta 4cb2b3c758 Merge branch 'MDL-79484' of https://github.com/paulholden/moodle 2023-09-26 12:22:52 +08:00
Jun Pataleta 4569711e18 Merge branch 'MDL-79485' of https://github.com/paulholden/moodle 2023-09-26 12:08:12 +08:00
Jun Pataleta 535747fbc7 Merge branch 'MDL-79481' of https://github.com/paulholden/moodle 2023-09-26 12:06:16 +08:00
Jun Pataleta 2f3033646c Merge branch 'MDL-76713-master' of https://github.com/laurentdavid/moodle 2023-09-26 11:57:24 +08:00
Jun Pataleta a24e9872ef Merge branch 'MDL-79442-master' of https://github.com/snake/moodle 2023-09-26 11:48:31 +08:00
Jun Pataleta 3c2589fb58 Merge branch 'MDL-79400-master' of https://github.com/HuongNV13/moodle 2023-09-26 11:20:02 +08:00
Jun Pataleta 7a369aa0a8 Merge branch 'MDL-79420-master' of https://github.com/HuongNV13/moodle 2023-09-26 10:57:46 +08:00
Huong Nguyen a26954ce4a Merge branch 'MDL-79483' of https://github.com/paulholden/moodle 2023-09-26 09:18:31 +07:00
Stevani Andolo d644c3d89d MDL-78750 communication_matrix: Dynamic settings 2023-09-26 09:55:54 +08:00
Paul Holden acc510ced7 MDL-79490 communication_matrix: include required test library. 2023-09-25 18:31:52 +01:00
Huong Nguyen 440bf51af2 Merge branch 'MDL-79444-master' of https://github.com/meirzamoodle/moodle 2023-09-25 15:24:47 +07:00
Laurent David 8790501437 MDL-76713 core_availability: Fix date restriction conflict
* Use a unique ID the date nodes in the HTML tree to be able to find the current node.
* Look for nodes in the same tree "leaf" and work on conflicts in this single leaf/branch.
2023-09-25 10:16:44 +02:00
Huong Nguyen df76743906 Merge branch 'MDL-79322-master' of https://github.com/mickhawkins/moodle 2023-09-25 15:04:15 +07:00
Huong Nguyen b27f6b0eca Merge branch 'MDL-79440-master' of https://github.com/snake/moodle 2023-09-25 14:56:49 +07:00
Shamim Rezaie 832ee471be Merge branch 'MDL-75928-master' of https://github.com/lameze/moodle 2023-09-25 17:51:29 +10:00
Shamim Rezaie 9e9dab8045 Merge branch 'MDL-79348-master' of https://github.com/roland04/moodle 2023-09-25 17:39:41 +10:00
Andrew Nicols 9c07defb77 MDL-79486 qbank_columnsortorder: Data providers must not create data 2023-09-25 14:34:56 +08:00
Paul Holden 3f6dd17042 MDL-79485 tool_mfa: replace hard-coded verification lang strings. 2023-09-24 21:21:54 +01:00
Paul Holden 4cbce0bae2 MDL-79484 tool_mfa: remove hard-coded assumption of "and" lang string. 2023-09-24 18:56:24 +01:00
Paul Holden bf6dcc5779 MDL-79483 qbank_columnsortorder: set pix_icon for each column action. 2023-09-24 16:54:20 +01:00
Paul Holden 76a0561f91 MDL-79481 question: replace hard-coded template language strings. 2023-09-24 16:09:40 +01:00
Andrew Nicols 83b4c96cad Moodle release 4.3beta 2023-09-23 21:38:52 +08:00
Andrew Nicols b9172e35e7 MDL-74054 qbank_columnsortorder: Rebuild amd 2023-09-22 23:13:06 +08:00
Mark Johnson 0ac2936c11 MDL-74054 questions: Fix question bank header widths
Chrome ignores min-width on table headers with table-layout:fixed,
meaning that question bank headers could be resized so that the controls
were overlapping, and could be too narrow by default.

This removes min-width: min-content in the headers and instead uses
Javascript to calculate a constrain a min width based on the content of
the headers.
2023-09-22 22:52:36 +08:00
Paul Holden 379bac1fe7 MDL-79467 output: handle empty sitename display during installation.
Causes PHP warnings when null on PHP 8.1.
2023-09-22 14:32:11 +01:00
Ilya Tregubov 216060b637 Merge branch 'MDL-78217-master' of https://github.com/rezaies/moodle 2023-09-22 18:06:25 +08:00
Shamim Rezaie 7b8aa2daf1 MDL-78217 grade: Fixing invalid input as early as possible 2023-09-22 19:40:13 +10:00
Ilya Tregubov 403b62a06b Merge branch 'MDL-77035-integration-master' of https://github.com/mihailges/moodle 2023-09-22 17:37:15 +08:00
Paul Holden efe3e377b6 MDL-79280 mod_quiz: Behat scenario for adding multiple user overrides. 2023-09-22 10:31:59 +01:00
Tim Hunt 83e840b8e7 MDL-79280 mod_quiz: consistently store ->cm as a cm_info 2023-09-22 10:31:59 +01:00
Mihail Geshoski 6a4cf000b3 MDL-77035 grades: Fix checkbox spacing to satisfy accessibility criteria 2023-09-22 11:29:53 +02:00
Paul Holden c518c78ca4 MDL-79463 output: invert logic in url_select change event.
Avoids eslint `consistent-return` errors (because we previously only
returned from the conditional branch).
2023-09-22 10:21:44 +01:00
Mikel Martín 5a5c6ff179 MDL-79348 courseformat: Fix focus indicator of edit restrictions link 2023-09-22 08:34:24 +02:00
Huong Nguyen 67db7b900b Merge branch 'MDL-78129-behat-remove' of https://github.com/HuongNV13/moodle 2023-09-22 13:18:49 +07:00
Huong Nguyen 9a517653b1 MDL-78129 communication_matrix: Remove Behat test
This change requires a change in the mock server which we don't have
    time to do before Beta. This will be done in the coming days and this
    commit content reverted.
This one will be re-introduced in MDL-79460
2023-09-22 13:17:21 +07:00
Huong Nguyen af14974b13 Merge branch 'MDL-78129-behat' of https://github.com/HuongNV13/moodle 2023-09-22 11:48:08 +07:00
Huong Nguyen 436e522cd8 MDL-78129 communication_matrix: Skip Behat test
This change requires a change in the mock server which we don't have
time to do before Beta. This will be done in the coming days and this
commit content reverted.
2023-09-22 11:42:28 +07:00
Michael Hawkins 81a1695e71 MDL-79322 core: Update MoodleNet course sharing to use course fullname
Previously this was using course short name, which is inconsistent and
less informative than the course full name.
2023-09-22 11:42:28 +08:00
Huong Nguyen bd323aede7 Merge branch 'MDL-78129-master' of https://github.com/andrewnicols/moodle 2023-09-22 10:29:54 +07:00
Andrew Nicols 84cfc8beeb MDL-78129 communication: Fix all phpcs isuses
This is a brand new subsystem, plugin-type, and plugin. They are written
from the ground up by us. They should not contain any coding style
violations.
2023-09-22 11:08:04 +08:00
Ilya Tregubov d22800ca42 Merge branch 'MDL-78217-master' of https://github.com/rezaies/moodle 2023-09-22 10:53:55 +08:00
Andrew Nicols e36d84ee31 Merge branch 'MDL-74054-master-fixes' of https://github.com/marxjohnson/moodle 2023-09-22 10:53:55 +08:00
Mark Johnson 4630043f46 MDL-74054 qbank_columnsortorder: Improve and expand unit tests 2023-09-22 10:53:54 +08:00
Mark Johnson 330908868b MDL-74054 qbank_columnsortorder: Fix column reset by allowing null values 2023-09-22 10:53:54 +08:00
Andrew Nicols 697ac9b913 MDL-74054 qbank_customfields: Fix behat tests 2023-09-22 10:53:54 +08:00
Andrew Nicols a3cfd50482 MDL-74054 qbank: Miscellaneous coding style fixes 2023-09-22 10:53:53 +08:00
Andrew Nicols 813c2441a1 MDL-74054 qbank_columnsortorder: Correct dataProvider name 2023-09-22 10:53:53 +08:00
Andrew Nicols 94de1567c3 MDL-74054 qbank_columnsortorder: Move away from ModalFactory 2023-09-22 10:53:53 +08:00
Mark Johnson 33e52fe4ed MDL-74054 qbank_viewquestiontext: Convert from filter to question bank control
This replaces the "Show question text in the question list?" filter, which was
never really a filter, with a new widget displayed alongside other question bank
controls like "Create a new question" and "Reset columns".

It also refactors the logic of displaying the question text field or not, so that
it is all handled within the qbank_viewquestiontext plugin rather than relying on
code in the view.
2023-09-22 10:53:53 +08:00
Mark Johnson 63894ec2fe MDL-74054 qbank_columnsortorder: Progressively enhance question bank actions
This modifies the question_data fragment used by the filter code to make its
parameters closer to the URL parameters of the question/edit.php page. This
Allows us to progressively enhance the add, remove and reset actions on the
question bank page, using this same fragment to reload the question table after
each change. This re-uses the same actions.js module used for enhancing these
actions on the qbank_columnsortorder admin screen.
2023-09-22 10:53:52 +08:00
Mark Johnson 3685a3355f MDL-74054 qbank: Updates to plugins to support qbank customisation 2023-09-22 10:53:52 +08:00
Mark Johnson 82599bef84 MDL-74054 mod_quiz: Prevent question bank customisations in custom view 2023-09-22 10:53:52 +08:00
Mark Johnson 93ca1cdc32 MDL-74054 theme: Style changes to support question bank UI cusomisation 2023-09-22 10:53:52 +08:00
Mark Johnson 37d69fff6b MDL-74054 qbank_columnsortorder: Implement add, remove and resize
This updates the admin interface, and hooks into the question bank view
for users to override admin defaults with their preferences.
2023-09-22 10:53:52 +08:00
Mark Johnson 6001ee3dfd MDL-74054 core_question: Define unique question bank column IDs
This also resolves MDL-78829.
Some question bank plugins use a separate class for each plugin they
define. However, qbank_customfields (and potentially others in the
future) uses a single class to define multiple fields. Using the class
name as an ID for the column doesn't give us a way of reliable
instantiating an object for the column. Previously, qbank_customfields
appended the field name as though it was a namespaced class, but this
had to be manually constructed and deconstructed by detecting this
particular column class.

This change introduces a standard way of constructing a unique ID for
each question bank column, in the form
pluginname\columnclass-columnname. This ensures that the ID will be
unique for each column, and the ID can be used to instatiate the
column's object.
2023-09-22 10:53:51 +08:00
Nathan Nguyen 2be0e10a80 MDL-74054 core_question: Add additional plugin points
This refactors the question bank view class to support new plugin points
required for the question bank UI customisation features.
2023-09-22 10:53:51 +08:00
Mark Johnson feef716c91 MDL-74054 core_question: Re-apply filters when performing a qbank action
This changes the root element used by the fragment when
applying filters, so that the whole of display_question_list()
is reloaded.

This ensures that the returnurl will be updated correctly on the
question actions and bulk actions without manipulating then
further in Javascript.
2023-09-22 10:53:46 +08:00
Andrew Nicols 2a096dc5ad MDL-78129 communication_matrix: Skip unit test
This change requires a change in the mock server which we don't have
time to do before Beta. This will be done in the coming days and this
commit content reverted.
2023-09-22 10:51:50 +08:00
Andrew Nicols 07e0094f8c MDL-78129 communication_matrix: Persist any user with a non-moodle power level 2023-09-22 10:44:04 +08:00
Andrew Nicols 01a3461bbb MDL-78129 communication_matrix: Simplify power level setting
This change introduces a new API call to fetch the current power levels.

The result of this are used to fetch current admin users so as not to
remove them.

The update of existing users is simplified to only set users who do not
have the default level.
2023-09-22 10:44:04 +08:00
Andrew Nicols eb991355fe MDL-78129 communication_matrix: Stop marking users as synced
No need to sync users for role changes.

Power level changes do not need to happen after being added to a room.
They can happen in any order and persist after a user is removed.
2023-09-22 10:44:04 +08:00
Andrew Nicols 01679678cf MDL-78129 communication_matrix: Coding style fixes 2023-09-22 10:44:03 +08:00
Andrew Nicols d72ebf1bf2 MDL-78129 communication_matrix: Update room membership on unennrol 2023-09-22 10:44:03 +08:00
Andrew Nicols 2dc30d662e MDL-78129 communication_matrix: Tidy up API calls 2023-09-22 10:44:03 +08:00
Safat e9743431a6 MDL-78129 communication_matrix: Add support for matrix power level 2023-09-22 10:44:02 +08:00
Jake Dallimore 72e867f9e6 MDL-79440 mod_lti: fix missing array key warning on LTI 2 edit
These fields only exist for LTI 1.1 and LTI 1.3 edits, so can be
ignored in LTI 2.0 edits. This change fixes this for the tool
type edit (edit_form) and for the tool instance form (mod_form).
2023-09-22 10:15:20 +08:00
Jake Dallimore 26d0ac156e MDL-79442 mod_lti: launch container should inherit from tool config
Specifically in the case where multiple content items are returned, and
when we hit the content_item_to_form() method, ensure that content-item-
specific values do not influence the final value of launchcontainer,
which must use the value set in tool configuration.
2023-09-22 10:13:56 +08:00
Shamim Rezaie 59046ab0d2 Merge branch 'MDL-77035-master-2' of https://github.com/mihailges/moodle 2023-09-22 06:44:56 +10:00
meirzamoodle b7fbbaf7f4 MDL-79444 theme: Move the autocomplete list above the TinyMCE editor 2023-09-22 03:15:55 +07:00
Shamim Rezaie c428c0195a MDL-78217 grade: Keep category total updated in the UI 2023-09-22 05:36:22 +10:00
Shamim Rezaie aa30501b80 MDL-78217 grade: Recalculate Parent Weights on Zero Child Weights
The maximum grade for that category is considered as zero when all child
weights within a category are zero.
2023-09-22 05:36:22 +10:00
Shamim Rezaie 6aa05cfb9a MDL-78217 grade: Refine front-end weight handling and add validation
In this commit, the front-end experience for grade item weights in the
gradebook setup page is refined, building upon the improvements made in
the previous commit.

Firstly, overridden weights are excluded from automatic adjustments.
This enhancement guarantees that user-specified weights remain unchanged
by front-end calculations, thereby preserving the flexibility of custom
weight assignments.

Additionally, front-end form validation has been introduced to enhance
the user experience. Now, users will see validation errors if they
submit invalid values, giving them the opportunity to correct the values
themselves. This ensures that weights are not automatically normalised
by the back-end code, preserving the values as entered by the user.
2023-09-22 05:36:16 +10:00
Andrew Nicols 148e779651 Merge branch 'MDL-78649-master' of https://github.com/meirzamoodle/moodle 2023-09-21 22:25:14 +08:00
Paul Holden d7d8119201 MDL-79451 mod_bigbluebuttonbn: fix request action dialog cancelling. 2023-09-21 14:37:49 +01:00
Jun Pataleta e2f900b2ad Merge branch 'MDL-79323-master-enfix' of https://github.com/vmdef/moodle 2023-09-21 15:29:40 +02:00
Ilya Tregubov e25dd12c5c Merge branch 'MDL-79341' of https://github.com/paulholden/moodle 2023-09-21 14:50:28 +08:00
Safat 3e47253787 MDL-78129 core_communication: Add update membership api 2023-09-21 13:28:20 +08:00
Ilya Tregubov 69b347d1e1 Merge branch 'MDL-71955' of https://github.com/paulholden/moodle 2023-09-21 09:14:33 +08:00
Ilya Tregubov f647af9cc6 Merge branch 'MDL-79301-master' of https://github.com/NashTechOpenUniversity/moodle 2023-09-21 09:00:14 +08:00
Ilya Tregubov b27e31b60d Merge branch 'MDL-68712' of https://github.com/paulholden/moodle 2023-09-21 08:47:19 +08:00
Mathew May 7f33dfc887 MDL-77035 grades: Update toggleall for a11y 2023-09-20 23:53:44 +02:00
Mihail Geshoski 255165f786 MDL-77035 grades: Fix PHP coding style issues
Fixes some preexisting PHP coding style problems in
grade/edit/tree/index.php.
2023-09-20 23:53:44 +02:00
Mihail Geshoski cda31407e7 MDL-77035 grades: Fix accessibility violation in modals
Adds the aria-labelledby attribute to the .modal element in order to
comply with the modal accessibility requirements.
2023-09-20 23:53:44 +02:00
Mihail Geshoski d8837e51c4 MDL-77035 grades: Fix accessibility violation in gradebook setup
Fixes an accessibility violation in the gradebook setup page
related to the insufficient spacing between the select checkbox
elements and the 'move' icon.
2023-09-20 23:53:44 +02:00
Mihail Geshoski b882a113f2 MDL-77035 grades: Behat tests for the bulk actions in gradebook setup
Introduces new behat tests to cover in detail the bulk action features
in the gradebook setup and also fixes some of the preexisting tests.
2023-09-20 23:53:43 +02:00
Mihail Geshoski 0062aed025 MDL-77035 grades: Bulk actions area implementation in gradebook setup
Implements the bulk actions area in the gradebook setup page.
2023-09-20 23:53:43 +02:00
Mihail Geshoski 9dcc17ce11 MDL-77035 grades: Bulk move action implementation in gradebook setup
Introduces a JS class for the bulk move action in the gradebook setup
and the relavant templates.
2023-09-20 23:53:43 +02:00
Mihail Geshoski c2628ac3b9 MDL-77035 core: Base js class for a bulk action
Implements a base js class that each individual bulk action
implementation needs to extend. This class contains all common event
listeners, methods (including abstract) that each implementation need
to use. Also, it introduces a default mustache template for the bulk
action trigger elements.
2023-09-20 23:53:43 +02:00
Mihail Geshoski 662a2fca9c MDL-77035 core: Base js class for a bulk actions area
Introduces a base js class that bulk actions area implementations need
to extend. This class contains all common selectors, event listeners,
methods (including abstract) that each implementation would use.
Also, introduces a common template for the bulk actions area.
2023-09-20 23:53:43 +02:00
Mihail Geshoski 6cf7908652 MDL-77035 grades: WS that returns the grade tree structure in a course 2023-09-20 23:53:43 +02:00
Jun Pataleta 9c4435e874 Merge branch 'MDL-79423-master' of https://github.com/snake/moodle 2023-09-20 16:22:53 +02:00
Shamim Rezaie a342c9d546 Merge branch 'MDL-78895' of https://github.com/paulholden/moodle 2023-09-20 23:43:01 +10:00
Jun Pataleta 54226e8157 MDL-79432 calendar: Deprecate unused functions
* calendar_get_link_previous() and calendar_get_link_next() are no
longer used anywhere except from the already deprecated
calendar_top_controls() so we should deprecate these as well.
2023-09-20 15:39:46 +02:00
Jun Pataleta ba0cb9c6e6 Merge branch 'MDL-79398' of https://github.com/paulholden/moodle 2023-09-20 15:05:03 +02:00
Laurent David 0304eacfd5 MDL-79255 mod_bigbluebuttonbn: Allow subplugins to be uninstalled
* Allow subplugins to be uninstalled
2023-09-20 14:56:50 +02:00
Paul Holden 57c4b58fd5 MDL-68712 enrol_self: improve detection/re-use of group enrolment keys. 2023-09-20 13:30:59 +01:00
Jake Dallimore fa6928250e MDL-79423 mod_lti: add tool state filtering to LTI tools report
The report should only include those tools which are fully configured,
per the LTI_TOOL_STATE_CONFIGURED constant.
2023-09-20 20:13:26 +08:00
Jake Dallimore 38668033ff MDL-77891 core_calendar: support display of mod iconurl
This affects:
- event_item.mustache (day view)
- event_icon.mustache (used by month_mini and month_mini and
month_detailed templates)
2023-09-20 17:03:08 +08:00
Andrew Nicols 3720532cb2 MDL-79422 ajax: Update service.php for coding style 2023-09-20 16:03:12 +08:00
Andrew Nicols 7f569fc1f1 MDL-79422 ajax: Allow no-login WS calls to fetch after a failure 2023-09-20 16:02:31 +08:00
Huong Nguyen 90e3a3d994 MDL-79420 core: Remove invalid MoodleNet template call 2023-09-20 11:38:54 +07:00
Ilya Tregubov 9890e67e6d on-demand release 4.3dev+ 2023-09-20 09:03:45 +08:00
Víctor Déniz 0b838f6977 MDL-79323 lang: Fix Behat tests regressions after merging en_fix strings 2023-09-19 13:42:10 +01:00
Shamim Rezaie 22a97437d1 MDL-78217 grade: Improve front-end grade item weight calculations
This change enhances the user experience in the grade report grader by
moving grade item weight calculations to the front-end. Previously,
these calculations were done on form submission, resulting in slower
performance and less interactivity.

With this improvement, grade item weights are now calculated dynamically
in the browser as users make changes, providing instant feedback and a
more responsive interface. This change improves the usability and
efficiency of the grade report grader.

This is only applicable to natural aggregation type.
2023-09-19 21:00:15 +10:00
Helen Foster 13b7ea5d44 MDL-79323 lang: Import fixed English strings (en_fix) 2023-09-19 10:24:37 +01:00
Huong Nguyen dee9c195fe Merge branch 'MDL-79395' of https://github.com/stronk7/moodle 2023-09-19 14:29:58 +08:00
Huong Nguyen 267462f99c Merge branch 'MDL-79370' of https://github.com/paulholden/moodle 2023-09-19 14:29:57 +08:00
Jake Dallimore 1b768a1f64 Merge branch 'MDL-79186' of https://github.com/paulholden/moodle 2023-09-19 11:12:24 +08:00
Ilya Tregubov 69a243f18c Merge branch 'MDL-79390' of https://github.com/paulholden/moodle 2023-09-19 11:03:37 +08:00
Ilya Tregubov eb96238d36 Merge branch 'MDL-79384-master' of https://github.com/snake/moodle 2023-09-19 10:54:13 +08:00
Ilya Tregubov 7d6129be45 Merge branch 'MDL-79338' of https://github.com/skodak/moodle 2023-09-19 10:40:54 +08:00
Huong Nguyen 0c49449efa Merge branch 'MDL-79347-master-2' of https://github.com/junpataleta/moodle 2023-09-19 09:19:25 +07:00
Huong Nguyen 2bc1598138 MDL-79400 Calendar: Use catch() for native Promise 2023-09-19 09:10:45 +07:00
Jake Dallimore 9c6891e73a MDL-79384 tool_analytics: remove extraneous param from modal create call 2023-09-19 09:41:20 +08:00
Jake Dallimore 4476164613 MDL-79384 mod_lti: fix tool configuration details modal 2023-09-19 09:41:19 +08:00
Paul Holden f96caa3ee0 MDL-79398 tool_mfa: remove unused enabled configuration help string. 2023-09-18 19:10:09 +01:00
Jun Pataleta 678ec36716 Merge branch 'MDL-79327' of https://github.com/paulholden/moodle 2023-09-18 19:38:39 +02:00
Paul Holden 92957ab97f MDL-79327 gradereport_grader: fix markup in collapsed columns dialog. 2023-09-18 18:36:05 +01:00
Eloy Lafuente (stronk7) b7c2415522 MDL-79395 install: update the list of stale files for 4.3 2023-09-18 16:26:46 +02:00
Dale Davies 06a9b91e17 MDL-79350 core: Do not store lang in session when readonly 2023-09-18 14:30:14 +01:00
Huong Nguyen 1ed52c0019 Merge branch 'MDL-79332' of https://github.com/timhunt/moodle 2023-09-18 18:55:53 +07:00
Paul Holden 310b29441c MDL-79390 mod_glossary: right-align export menu dropdown menu. 2023-09-18 11:03:27 +01:00
Huong Nguyen 7ac9c99c74 Merge branch 'MDL-79351-master' of https://github.com/ferranrecio/moodle 2023-09-18 16:10:17 +07:00
Paul Holden c230741457 Merge branch 'MDL-78955-patch' of https://github.com/ilyatregubov/moodle 2023-09-18 09:59:36 +01:00
Paul Holden 4e13a9e892 MDL-79370 user: set profile page URL earlier, avoid subsequent error.
Co-authored-by: Dominique Palumbo <domenico.palumbo@uclouvain.be>
2023-09-18 09:25:22 +01:00
Jake Dallimore 6b214f1c81 MDL-79384 core: fix modal footer logic when rendering it from template
If the footer property is a Templates.render() promise, and the modal is
set to show immediately (show=true), the show() logic - which contains
the footer show/hide logic - can run before the footer content is set
(i.e. before the promise chain is complete). In such cases, the footer
will be marked as hidden and must be made visible again.
2023-09-18 16:04:58 +08:00
Ilya Tregubov 553567e16c MDL-78955 lib: Fix unit test. 2023-09-18 14:47:24 +08:00
Ilya Tregubov 2b69eaf942 Merge branch 'MDL-79047-master' of https://github.com/junpataleta/moodle 2023-09-18 12:24:51 +08:00
Ilya Tregubov 826ef1f915 Merge branch 'MDL-79336' of https://github.com/skodak/moodle 2023-09-18 11:12:22 +08:00
Ilya Tregubov c2d59f626e Merge branch 'MDL-78955-master-v03' of https://github.com/ilyatregubov/moodle 2023-09-18 10:42:34 +08:00
Ferran Recio 4dcac269be MDL-78955 lib: fix choice list styling 2023-09-18 10:41:24 +08:00
Ferran Recio 6b6f71ea6f MDL-78955 lib: merge choicelist templates 2023-09-18 10:41:14 +08:00
Jun Pataleta f35e2080af MDL-79047 grade: Use the gradebook plugin name for the page title
* Use the appropriate gradebook plugin string for the page title.
* Improve gradebook page titles set by grade_get_plugin_info() by
listing the unique identifying information for the page first
(e.g. the gradebook plugin name), followed by broader information
(Grades + Course name), separating these bits of information using the
pipe `|` character.

For more information, check out
https://www.w3.org/WAI/WCAG21/Techniques/general/G88
2023-09-18 03:40:43 +02:00
Simey Lameze 9d607df0d9 MDL-75928 format_week: improve get_section_dates one week calc 2023-09-18 00:09:57 +08:00
Sara Arjona ecddfa6ccd on-demand release 4.3dev+ 2023-09-15 18:41:22 +02:00
Sara Arjona 6e2534047a weekly release 4.3dev+ 2023-09-15 17:33:29 +02:00
Sara Arjona 3079511dc7 NOBUG: Fixed SVG browser compatibility 2023-09-15 17:33:23 +02:00
Mark Johnson a92e5c5770 MDL-78580 report_statistics: Prevent database deadlocks when viewing
If a quiz had a long job to calculate statstics running, this would
cause pages that may also attempt a recalculation (the statistics report
page or question bank) to load very slowly, and possibly result in a
database deadlock.

This change will firstly prevent the question bank page performing
analysis calculations at all, since these are not required for this
page, which will speed up loading and prevent deadlocks on this page.

Secondly, this adds a lock to the recalcuation process so that it cannot
run twice concurrently. This will present the user with a message to
indicate that it is waiting for a running calculation until it is
complete, and eventually it will timeout with a message and debugging.
2023-09-15 15:16:52 +01:00
Petr Skoda f35b2d1cb3 MDL-79360 filter: fix nolink tag regression from MDL-77525 2023-09-15 12:44:09 +02:00
Ilya Tregubov 259ec50af6 Merge branch 'luca-branch' of https://github.com/ilyatregubov/moodle 2023-09-15 17:05:27 +08:00
Shamim Rezaie 24a063bd67 Merge branch 'MDL-78833-master' of https://github.com/ilyatregubov/moodle 2023-09-15 16:58:00 +08:00
Huong Nguyen c73c1d1d6b Merge branch 'MDL-79283' of https://github.com/paulholden/moodle 2023-09-15 16:58:00 +08:00
Jun Pataleta ced2753bff Merge branch 'MDL-79291' of https://github.com/paulholden/moodle 2023-09-15 16:58:00 +08:00
Huong Nguyen fb56acd3a7 Merge branch 'MDL-79320' of https://github.com/paulholden/moodle 2023-09-15 16:58:00 +08:00
Jun Pataleta e510b7bed8 Merge branch 'MDL-78916-master' of https://github.com/junpataleta/moodle 2023-09-15 16:57:57 +08:00
Ilya Tregubov 4355e38e88 Merge branch 'MDL-78312-master' of https://github.com/NashTechOpenUniversity/moodle 2023-09-15 16:56:22 +08:00
Huong Nguyen b65724480b Merge branch 'MDL-79057-master' of https://github.com/junpataleta/moodle 2023-09-15 16:54:09 +08:00
Huong Nguyen 0f1a65723f Merge branch 'MDL-79313-master' of https://github.com/junpataleta/moodle 2023-09-15 16:54:09 +08:00
Huong Nguyen 632e603304 Merge branch 'MDL-78728' of https://github.com/paulholden/moodle 2023-09-15 16:19:27 +08:00
Jun Pataleta 62a91c861c Merge branch 'MDL-78467-master' of https://github.com/sammarshallou/moodle 2023-09-15 16:19:26 +08:00
Jun Pataleta 4370887449 Merge branch 'MDL-78916-master' of https://github.com/junpataleta/moodle 2023-09-15 16:19:06 +08:00
Ilya Tregubov 8f8ea5a4d1 Merge branch 'MDL-78312-master' of https://github.com/NashTechOpenUniversity/moodle 2023-09-15 16:19:04 +08:00
Huong Nguyen 9fc4c35ca7 Merge branch 'MDL-79057-master' of https://github.com/junpataleta/moodle 2023-09-15 16:16:21 +08:00
Huong Nguyen 58ff81ac83 Merge branch 'MDL-79313-master' of https://github.com/junpataleta/moodle 2023-09-15 16:16:21 +08:00
Jun Pataleta bb4bcf6165 MDL-79347 course_format: Fix focus outline for Edit conditions link
Use `btn btn-sm` classes to provide a default focus outline for the
Edit conditions link.
2023-09-15 15:05:13 +08:00
Jake Dallimore 4464e46336 MDL-78916 mod_lti: deprecate and remove unused strings and files
These strings and files supported the old way of creating course-level
tools, which has now been fully replaced.
2023-09-15 10:47:10 +08:00
Jake Dallimore f41a0dcacf MDL-78916 mod_lti: remove delegate option for name and email sharing
These settings are no longer configurable on a per-instance basis, so
'delegate to teacher' needs to be removed from the options list for the
relevant fields in the tool type edit form. For existing tool types,
allow 'delegate to teacher' to continue to be used only if it's the
currently set value of these fields. If changed, it cannot be set again.
2023-09-15 10:47:10 +08:00
Jake Dallimore 3cabbfd00f MDL-78916 mod_lti: update behat tests to test new instance form 2023-09-15 10:47:10 +08:00
Jake Dallimore 630066c4f5 MDL-78916 mod_lti: update add/edit instance form to new design
This form layout applies when adding or editing any instance which is
based on a preconfigured tool (course or site). That is now the only
supported way of configuring a mod_lti instance.
2023-09-15 10:47:10 +08:00
Ilya Tregubov 5da0cee324 Merge branch 'MDL-79334' of https://github.com/paulholden/moodle 2023-09-14 19:46:53 +08:00
Ilya Tregubov 38dc039ed7 Merge branch 'MDL-78267-icon-fix' of https://github.com/HuongNV13/moodle 2023-09-14 19:41:07 +08:00
Huong Nguyen 6be34542ca MDL-78267 core: Add missing SVG icon for MoodleNet 2023-09-14 18:29:08 +07:00
Ferran Recio f652b769fe MDL-79351 completion: fix form_trait code smells 2023-09-14 12:24:41 +02:00
Petr Skoda f94ad6f65f MDL-79338 core: add primary navigation hook tests 2023-09-14 11:51:21 +02:00
Ilya Tregubov f5050ab31f Merge branch 'MDL-78255-master' of https://github.com/davewoloszyn/moodle 2023-09-14 17:50:24 +08:00
Petr Skoda b2a2d3dc66 MDL-79338 core: add support for hook callback redirection in tests 2023-09-14 11:47:52 +02:00
Ilya Tregubov de0481af58 Merge branch 'MDL-79220-master' of https://github.com/andelacruz/moodle 2023-09-14 17:43:13 +08:00
Petr Skoda f42cc76a78 MDL-79336 core: add core\hook\stoppable_trait 2023-09-14 11:33:01 +02:00
Matt Porritt 072efd797a MDL-78534 Authentication: MFA Remove icon from support link. 2023-09-14 16:51:54 +08:00
sam marshall 0f8577784d MDL-78467 core_cache: Improve cache locking API
* Makes it possible to safely call acquire_lock so that it throws an
  exception instead of returning false if it can't get a lock (which
  most existing uses assumed it already does).
* Fix some omissions from the requirelockingbeforewrite option (it
  now checks on delete).
* Modinfo uses a versioned cache, so it is not necessary to delete
  items, only increase the version. (Provided we keep track of
  cacherev carefully...)
2023-09-14 09:28:10 +01:00
Paul Holden fba49ba1cc MDL-79283 core: add title to embedded iframe, for accessibility. 2023-09-14 09:26:14 +01:00
Ilya Tregubov 9992804ae5 Merge branch 'MDL-78267-master-2' of https://github.com/HuongNV13/moodle 2023-09-14 16:07:51 +08:00
Huong Nguyen 4ead50e696 MDL-78267 core: Partial course sharing for MoodleNet 2023-09-14 14:59:50 +07:00
Huong Nguyen 705a721c90 MDL-78267 core_courseformat: Language changes
Change from "Bulk edit" to "Bulk actions"
2023-09-14 14:59:50 +07:00
Huong Nguyen f6b7447a68 MDL-78267 core_courseformat: Add mutation dispatch for bulk actions 2023-09-14 14:59:49 +07:00
Huong Nguyen 514df5a775 MDL-78267 core: Services for partial sharing course to MoodleNet 2023-09-14 14:59:49 +07:00
Huong Nguyen c6bf02a3b5 MDL-78267 core: Backend API for partial sharing course for MoodleNet 2023-09-14 14:59:49 +07:00
Jun Pataleta c356d161e8 Merge branch 'MDL-79158' of https://github.com/paulholden/moodle 2023-09-14 14:21:46 +08:00
Jun Pataleta 39d32096e7 Merge branch 'MDL-79181-master' of https://github.com/snake/moodle 2023-09-14 14:02:45 +08:00
Huong Nguyen b3ffe8432b MDL-78267 core: Move shared MoodleNet code to abstract 2023-09-14 11:11:42 +07:00
Jun Pataleta 9cd44cbf4c Merge branch 'MDL-79356-master' of https://github.com/HuongNV13/moodle 2023-09-14 11:52:12 +08:00
Ilya Tregubov 41d8e24f81 Merge branch 'master_MDL-78534' of https://github.com/mattporritt/moodle 2023-09-14 11:05:46 +08:00
Huong Nguyen e1cff527b9 MDL-79356 core: Convert MoodleNet modals to use new static methods 2023-09-14 09:44:19 +07:00
Jun Pataleta b3ba9f84d8 Merge branch 'MDL-79340-master' of https://github.com/andrewnicols/moodle 2023-09-14 10:43:38 +08:00
Matt Porritt 9813e1eec6 MDL-78534 Authentication: MFA Improve 2nd factor verify flow
Improve login page worklow.
This patch improves the display and UX when a user provides
their second factor during the login process. It includes
refactoring the display to use a template fed by renderer.
2023-09-14 11:50:16 +10:00
Matt Porritt 77a998006f MDL-78534 Authentication: MFA factor updates for UI
Add additional display logic to factor classes.
Update each individual factor class and the based factor classs
with the ability to nominate an icon associated with the factor
type as well as any additional logic to assist with displaying
factor information during the login process. This includes string
updates.
2023-09-14 11:49:35 +10:00
Matt Porritt 27ca1dee46 MDL-78534 Authentication: MFA refactoring and clean up
General refactoring and cleanup of MFA code, to allow for easier
addition of UX improvements.
2023-09-14 11:49:34 +10:00
Matt Porritt f140a0dff9 MDL-78534 Authentication: MFA Core login page style changes
Core login page and style changes to support mfa login workflow.
These are minor adjustments to core CSS and a core renderer
change to allow login workflow to better support MFA.
2023-09-14 11:49:04 +10:00
Ilya Tregubov 7903e9cc3a Merge branch 'MDL-79195-master' of https://github.com/andelacruz/moodle 2023-09-14 09:35:41 +08:00
Amaia Anabitarte 9e42ab938c MDL-78527 core_completion: Fixing latest behat fails 2023-09-13 17:00:09 +02:00
hieuvu a3da58a9cb MDL-78312 core_user: add an 'exact match only' option 2023-09-13 20:22:22 +07:00
Paul Holden 40776c8956 MDL-79341 core: more robust testing of user-agent curl response.
The external test file URL concerns itself only with HTTP_USER_AGENT
matching, not sending response headers, which can differ according to
HTTP protocol in use by the endpoint (1.1 vs 2).

Given the returned response code itself is irrelevant to the testcase,
there's not much benefit to asserting it and risking random failures.
2023-09-13 13:30:52 +01:00
Jun Pataleta f8b16ea91f Merge branch 'MDL-78826-master' of https://github.com/roland04/moodle 2023-09-13 19:28:25 +08:00
Jake Dallimore 893ce4f7b2 MDL-78916 core_form: allow class overrides on button form element
This works the same as the customclassoverride on the submit element,
in that only the 'btn' class is hard coded in the template. Passing
$options['customclassoverride'] to the constructor allows calling code
to specify other classes to be added beside 'btn'. E.g. 'btn-primary'.
If no options array is passed, 'btn-secondary' is used (the existing
class used for button elements).
2023-09-13 17:37:06 +08:00
Jake Dallimore bf3f13fea6 MDL-78916 mod_lti: refactor mod_form, separating legacy definition
Move all the logic dealing with display of the legacy instance form,
(which displays those frozen, manually-configured instances) into a
method of its own for clarity.
2023-09-13 17:37:06 +08:00
Huong Nguyen 8dece72737 Merge branch 'MDL-78607-master' of https://github.com/roland04/moodle 2023-09-13 14:46:35 +07:00
Andrew Nicols ce675c3dd4 MDL-79340 core_grading: Add pending steps around rubric requirejs 2023-09-13 14:00:04 +08:00
Andrew Nicols a0735fa710 MDL-79340 core_grading: Use Behat steps to set values 2023-09-13 14:00:04 +08:00
Huong Nguyen d3efd69dc1 Merge branch 'MDL-78993-master' of https://github.com/sarjona/moodle 2023-09-13 11:21:36 +07:00
Huong Nguyen 50a74f6a2d Merge branch 'MDL-67271-master' of https://github.com/sarjona/moodle 2023-09-13 11:15:22 +07:00
Huong Nguyen 8527d6e8c9 Merge branch 'MDL-75502-master' of https://github.com/davewoloszyn/moodle 2023-09-13 10:52:36 +07:00
Jun Pataleta 6c6a655b0b Merge branch 'MDL-78527-master' of https://github.com/aanabit/moodle 2023-09-13 11:17:20 +08:00
Jun Pataleta 3849e57d52 Merge branch 'MDL-77127_master' of https://github.com/PhilippImhof/moodle 2023-09-13 11:14:24 +08:00
Ilya Tregubov 94c9ce0595 Merge branch 'MDL-78806-master' of https://github.com/junpataleta/moodle 2023-09-13 10:54:54 +08:00
Luca Bösch c37a4ba29a MDL-79226 questions: check for UTF-8 encoding of the import file 2023-09-12 20:39:42 +02:00
Eloy Lafuente (stronk7) 9b2c445143 on-demand release 4.3dev+ 2023-09-12 18:54:42 +02:00
Tim Hunt a047d2f8b4 MDL-79332 Question stats: make loading robust to bad data
We were experiencing problems caused by old stats analysis in our
database, computed when there was a bug, causing fatal errors
when they were displayed. Therefore, this code needs to be robust to that.
2023-09-12 16:58:25 +01:00
Paul Holden b6e85266da MDL-79334 badges: fix return URL of activate action in system report.
We cannot rely on `qualified_me()` to work reliably upon report reload
events (paging, sorting, filtering, etc. are all performed via AJAX).

Small cleanup after f0770658.
2023-09-12 15:13:22 +01:00
Amaia Anabitarte b87b72195c MDL-78527 core_completion: Fixing tests 2023-09-12 15:43:49 +02:00
Amaia Anabitarte d481ec3af6 MDL-78527 core_completion: Improving labels and disclosure in mods 2023-09-12 15:43:49 +02:00
Amaia Anabitarte 85d07564cb MDL-78527 core_completion: Improving core completion styling 2023-09-12 15:43:48 +02:00
Sara Arjona ff844ab7bd MDL-78993 theme: Remove $CFG->svgicons
The $CFG->svgicons setting was introduced in Moodle 2.4 due to incomplete
SVG support in certain web browsers.
The landscape has evolved significantly since then, and all modern browsers
now handle SVG files correctly.
The $CFG->svgicons settings has been removed and the supports_svg() method
has been updated with currently supported browsers (IE support was removed
in Moodle 3.10).
2023-09-12 15:28:03 +02:00
Jun Pataleta 89ed58fe74 MDL-79313 calendar: Deprecate calendar_top_controls() 2023-09-12 20:53:27 +08:00
Jun Pataleta 48ddffbe88 MDL-79313 calendar: Remove unused navigation context data 2023-09-12 20:52:56 +08:00
Paul Holden 717c4b397e MDL-79158 gradereport_grader: align collapsed columns dialog element. 2023-09-12 12:25:44 +01:00
Philipp Imhof f85aa04def MDL-77127 quiz: allow students to hide timer 2023-09-12 13:06:54 +02:00
Sara Arjona b89774a17b MDL-67271 componentlibrary: Update fontawesomeicons
Regenerate the 'fontawesomeicons.json' file to enforce SVG rendering for
the icons.
The addition of '$CFG->svgicons = true;' in the config.php file addressed this.
It's important to note that '$CFG->svgicons' will eventually be deprecated as part
of MDL-78993. Consequently, I refrained from updating 'readme_moodle.txt,' as SVG
icons will become the default value once the removal is executed.
2023-09-12 10:54:15 +02:00
Sara Arjona 87589e07fc MDL-67271 pix: Add missing SVG files
The absence of SVG files has been addressed by including them,
sourced from the respective FontAwesome versions available for
download at https://fontawesome.com/icons
2023-09-12 10:54:15 +02:00
Andrew Nicols 5281100031 MDL-67271 core: Add test to find missing SVG icons
Ensure that all system icons now come with an accompanying SVG file.
Any missing SVG files have been addressed, and to maintain this consistency,
a PHPUnit test has been implemented to validate the inclusion of SVG files
for any new icons.
2023-09-12 10:54:15 +02:00
Ilya Tregubov 0de64aa81b MDL-78833 gradereport_grader: Propery align averages and ranges row.
Depending on editing mode or grade display type it can be right or
left aligned
2023-09-12 16:25:01 +08:00
Amaia Anabitarte f367759123 MDL-78527 core_completion: Fixing a bug found in master
Changing from 'Must receive a PASSING grade' to 'Not grade required'
keeps the 'completionpassgrade' = 1 and we should reset setting to 0.
2023-09-12 09:59:36 +02:00
Amaia Anabitarte 054092519e MDL-78527 forms: Improve error showing for radio buttons 2023-09-12 09:59:36 +02:00
Amaia Anabitarte 313da3ebf3 MDL-78527 pear: Adding attributes parameter to groups 2023-09-12 09:59:36 +02:00
Amaia Anabitarte 0122c2c3e7 MDL-78527 forms: New parentclass attribute to wrapper element only 2023-09-12 09:59:36 +02:00
David Woloszyn 045d4368f4 MDL-75502 core: Added MoodleNet share progress page 2023-09-12 15:14:39 +10:00
Angelia Dela Cruz 46b60d76c8 MDL-79195 core_course: Activity and resource description display behat 2023-09-12 11:30:26 +08:00
Huong Nguyen c723cac548 Merge branch 'MDL-79242-master' of https://github.com/jleyva/moodle 2023-09-12 10:27:08 +07:00
Huong Nguyen cfaeaca3c4 Merge branch 'MDL-78798-master' of https://github.com/davewoloszyn/moodle 2023-09-12 10:01:50 +07:00
Ilya Tregubov 2ebfd7eb8f Merge branch 'MDL-79099' of https://github.com/paulholden/moodle 2023-09-12 10:59:35 +08:00
Jake Dallimore d372dba199 Merge branch 'MDL-78960-master' of https://github.com/call-learning/moodle 2023-09-12 10:52:35 +08:00
Ilya Tregubov 73c8675623 Merge branch 'MDL-79210-master' of https://github.com/meirzamoodle/moodle 2023-09-12 10:50:11 +08:00
Huong Nguyen 85f6aa82cc Merge branch 'MDL-79246-master' of https://github.com/andrewnicols/moodle 2023-09-12 08:50:16 +07:00
Paul Holden 4aeb85b988 MDL-79320 mod_forum: remove use of buffering constant when exporting.
It caused debugging to be appended to exported files, since 20b8f8f9.
2023-09-11 20:17:33 +01:00
Laurent David 6729c4b955 MDL-78960 mod_bigbluebuttonbn: Add instanceid as action parameter
* In the bigbluebutton_proxy::action_url call to submodules, we need a way to get
the instance this is called upon so we can have information (parameters) for
this instance settings (like the new settings introduced by subplugins).
* Add the optional instanceid parameter in join/create/getMeetingInfo calls
2023-09-11 18:49:09 +02:00
Paul Holden 55dedf25ad MDL-79099 theme_boost: amend drawer zIndex for use in user tours.
Changed introduced in da2f2c9c modified various zIndex attributes for
the page drawers. This has a side-effect of breaking the user tour of
the course page for the course index.
2023-09-11 11:08:19 +01:00
Paul Holden 26f7eda09b MDL-71955 h5p: ensure embedded player sets up $PAGE correctly.
For module context, it should set the current cm and course to
ensure consistency in navigation API.
2023-09-11 10:18:14 +01:00
Jun Pataleta 1c892fb6d9 Merge branch 'MDL-78324-master-7' of https://github.com/andrewnicols/moodle 2023-09-11 16:29:56 +08:00
Paul Holden 75c36558b6 MDL-79186 task: fix evaluation of 'X/Y' cron field format.
The above syntax is defined as supported by the class, for example the
format '5/10' means:

"At every 10th <unit> from 5 through <max>."

It is analogous to '5-<max>/10'.
2023-09-11 09:22:17 +01:00
Ilya Tregubov 787455198b MDL-78909 mod_lti: Add indexes in upgrade.php 2023-09-11 16:03:53 +08:00
Ilya Tregubov faa491fe3b MDL-78909 mod_lti: Fix upgrade.php for lti. 2023-09-11 13:17:08 +08:00
Jake Dallimore 996760f32d Merge branch 'MDL-79048-master-2' of https://github.com/junpataleta/moodle 2023-09-11 12:59:59 +08:00
Jake Dallimore 40eb76014a Merge branch 'MDL-78909-master-2' of https://github.com/ilyatregubov/moodle 2023-09-11 12:32:57 +08:00
hieuvu 457cfa50e1 MDL-79301 mathjax: contentUpdated must trigger for mathjax element only. 2023-09-11 10:25:21 +07:00
Ilya Tregubov 799487a3dd Merge branch 'MDL-63539' of https://github.com/danmarsden/moodle 2023-09-11 11:14:48 +08:00
Ilya Tregubov d1f45f3b0e Merge branch 'MDL-78474-master' of https://github.com/aydevworks/moodle 2023-09-11 10:54:57 +08:00
Jake Dallimore 189558e80c MDL-79181 core: update LinkedIn OAuth template to use OIDC
The old method (sign in with linkedin) is deprecated:
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin

This replaces this with the new method:
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2

This is not entirely OIDC compliant, however. The well known
openid-configuration isn't present at the issuer root and the 'locale'
claim contains an object instead of a string. These are worked around.
2023-09-11 10:40:34 +08:00
Ilya Tregubov ba32de5281 MDL-78909 mod_lti: Show category restriction only for site tools 2023-09-11 10:14:58 +08:00
Ilya Tregubov 3eceb14342 MDL-78909 mod_lti: Fix for restrict to category. 2023-09-11 10:14:58 +08:00
Ilya Tregubov f9b1bac756 MDL-78909 mod_lti: Support coursevisibility override for courses 2023-09-11 10:14:58 +08:00
David Woloszyn 24cdc908ba MDL-78798 core_communication: Corrected outdated versions and references 2023-09-11 11:16:22 +10:00
Jun Pataleta 83f56a0bed MDL-78806 mod_assign: Use new Behat step for checking page title 2023-09-10 11:15:23 +08:00
Jun Pataleta 86f29846d5 MDL-78806 behat: Create a step that for checking the page title
Create a Behat step "the page title should contain ':title'" to check
the page title.
2023-09-10 11:15:23 +08:00
Jun Pataleta 8bb46fe513 MDL-78806 behat: More lenient checking of page title
Instead of doing an exact checking of the page title in
\behat_hooks::before_step(), do a more lenient check by checking that
the page title contains the acceptance test's site name.
2023-09-09 21:25:48 +08:00
Andrew Nicols 83296b266b MDL-78324 theme_boost: Only shift focus if origin focus unchanged
In the Moodle additions for the Bootstrap Dropdown we update the focus
after a 50ms delay. This is presumably because the targetted focus point
may not have shown yet and may be opened in a separate thread, though
sadly the original reasoning is not documented, and is not mentioned in
the original issues.

As a result of this delay, it was possible for the user to start to
interact and then have focus stolen from them. In reality this does not
happen often - 50ms is simply too short a time for a human to do so, but
it is plenty of time for Behat to do so and we have seen some random
fails as other parts of the UI become faster. When this happens,
keyboard focus tests are broken by this 50ms behaviour.

The fix here updates the shift focus function when closing the menu to
check whether the focus has changed from the previous location already
before setting the focus.
2023-09-09 13:45:36 +08:00
Jun Pataleta 9a2aa05eaf MDL-78806 core: Add upgrade.txt notes 2023-09-09 08:59:19 +08:00
Jun Pataleta d2be7cdc1a MDL-78806 admin: Consistent page title during upgrade and install
* Use the page title separator constant when displaying the page title
during upgrade and installation.
* No need to display the site name during install when because it hasn't
been set at this point.
2023-09-09 08:58:55 +08:00
Jun Pataleta f11daad97a MDL-78806 admin: Display the most unique information in the title first
* Page titles should display the most unique information first. For
admin pages it would be useful to display the information that
is unique to the page first before the broader categories that the
page belongs to.
* Also use the new page title separator constant.
2023-09-09 08:58:55 +08:00
Jun Pataleta 1eb8ee32bb MDL-78806 core: Remove redundant site name
MDL-78806 core: Remove redundant site name on page titles

* With the site name now being appended to the page titles, there
is no need to manually append the page titles.
2023-09-09 08:58:54 +08:00
Jun Pataleta ff553e5cf4 MDL-78806 core: Append site name on page title 2023-09-09 08:58:54 +08:00
Jun Pataleta a52fa6a047 MDL-78806 admin: Setting for displaying site name in page title
* A new config setting `sitenameintitle` for displaying the site name
on the page has been created.
2023-09-09 08:58:54 +08:00
Andrew Nicols 82761c582c MDL-78324 core: Deprecate core/modal_factory 2023-09-09 00:05:04 +08:00
Andrew Nicols 48bc688ccd MDL-78324 core: Convert modals to use new static methods
This commit takes all modals which were not using the legacy
ModalFactory.create triggers and migrates them to the new Modal.create
method.
2023-09-09 00:04:11 +08:00
Andrew Nicols f31f7e34e1 MDL-78324 calendar: Remove unused dependencies
A number of unused dependencies were found in this module, including
some on the ModalFactory and related areas which are currently being
refactored.
2023-09-09 00:04:04 +08:00
Andrew Nicols b5fc26bea7 MDL-78324 tool_licensemanager: Switch delete to utility confirmation
The core/utility confirmation modal can be used in this case to confirm
license actions. It is not necessary to have a custom module for this
purpose.
2023-09-09 00:04:04 +08:00
Andrew Nicols adce2874b0 MDL-78324 badges: Remove unnecessary Modal
The core/utility confirmation modal can be used in this case to confirm
backpack actions. It is not necessary to have a custom module for this
purpose.
2023-09-09 00:04:04 +08:00
Andrew Nicols 96e32d6f90 MDL-78324 bbb: Switch to SaveCancelPromise
This change removes an unnecessarily complicated Modal instantiation
when an existing helper exists to simplify this approach.
2023-09-09 00:04:03 +08:00
Andrew Nicols a797020524 MDL-78324 core: Convert core/tag to esm
This module is converted to ESM in preparation for simplification of
Modal instantiation.
2023-09-09 00:04:03 +08:00
Andrew Nicols 98f0aebde6 MDL-78324 gradereport_singleview: Update modal usage to drop factory use
This change includes some additional simplifications to support this
change, including conversion from done/fail to then/catch, and some
simplification of Promise usage.

There were a number of cases of nested Modal usage which have been
removed.
2023-09-09 00:04:03 +08:00
Andrew Nicols 5d9761c655 MDL-78324 mod_survey: Convert validation to esm
This module is converted to ESM in preparation for simplification of
Modal instantiation.
2023-09-09 00:04:03 +08:00
Andrew Nicols 27e40683aa MDL-78324 report_insights: Convert actions to esm
This module is converted to ESM in preparation for simplification of
Modal instantiation.
2023-09-09 00:04:02 +08:00
Andrew Nicols 1660b7d53e MDL-78324 editor_tiny: Update modals to stop using factory 2023-09-09 00:04:00 +08:00
Andrew Nicols 854da2dd70 MDL-78324 mod_quiz: Update modals to stop using factory
This commit includes some simplifications to the way in which some of
the modals are launched and allows us to remove several modules entirely
as they are no longer required following the simplification of the Modal
instantiation.
2023-09-08 23:49:13 +08:00
Andrew Nicols a54ba682a4 MDL-78324 core: Create modal factory in core/modal
This commits adds a new static `create()` method to replace the existing
ModalFactory.create approach.

This allows the creation of a modal to now be simplified to:

```js
import SomeModalClass from 'mymodule/wherever';

// ...

const modal = await SomeModalClass.create();
```

Prior to this change the modal was instantiated via the ModalFactory,
but the Type of modal was typically pulled from the ModalClass itself
via the registry. Essentially it used to require three modules to
instantiate a single Modal, and now it takes just one.
2023-09-08 23:49:13 +08:00
Andrew Nicols 9073225c98 MDL-78324 core: Simplify modal configuration
This change moves configuration of the modal from the ModalFactory to
a new `configure` function on the Modal class which does exactly the
same thing. This means that the API is fully encapsulated within the
Modal, and an individual Modal can specify its own configuration more
easily.

This change will make it much easier to instantiate new modals,
significantly reducing boilerplate in many instances.

This change allows modals to extend the `configure()` method to provide
their own defaults, or to override standard ones.

```js
class MyModal extends Modal {
    static TYPE = 'my_module/mymodal';
    static TEMPLATE = 'my_module/mymodal';

    configure(params = {}) {
        // Override the default value for large.
        params.large = true;

        super.configure(params);

        // Handle our own properties here.
        const {
          makeSound = true,
        } = params;

        this.setSoundEmitter(makeSound);
    }
```

Prior to this change, it was common to see this happen in the _calling_
code, rather than the modal itself.
2023-09-08 23:49:12 +08:00
Jun Pataleta b4c6ed3650 weekly release 4.3dev+ 2023-09-08 22:34:59 +08:00
Jun Pataleta 64c431e19b Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-09-08 22:34:57 +08:00
Jun Pataleta 8edafd35d8 MDL-78549 multianswer: Prevent default when clicking feedback trigger 2023-09-08 22:14:35 +08:00
Huong Nguyen 0a9eaa50e4 Merge branch 'MDL-78549-master' of https://github.com/junpataleta/moodle 2023-09-08 22:14:35 +08:00
Huong Nguyen a890f6f07a Merge branch 'MDL-79090-master' of https://github.com/mackensen/moodle 2023-09-08 22:14:35 +08:00
Jun Pataleta f32f669f53 Merge branch 'MDL-78258-master' of https://github.com/snake/moodle 2023-09-08 22:14:35 +08:00
Andrew Nicols eafa7c0a6f Merge branch 'MDL-79241-master' of https://github.com/marinaglancy/moodle 2023-09-08 22:14:35 +08:00
Huong Nguyen cb5c8b59bf Merge branch 'MDL-78619' of https://github.com/paulholden/moodle 2023-09-08 22:14:34 +08:00
Jun Pataleta 090e40e749 Merge branch 'MDL-79155-master' of https://github.com/safatshahin/moodle 2023-09-08 22:14:34 +08:00
Jun Pataleta be5de5fccf Merge branch 'MDL-69958-well-known-password' of https://github.com/brendanheywood/moodle 2023-09-08 22:14:34 +08:00
Ilya Tregubov 71cb542c60 Merge branch 'MDL-71494' of https://github.com/paulholden/moodle 2023-09-08 22:14:34 +08:00
Ilya Tregubov 94cf94286a Merge branch 'MDL-78254' of https://github.com/paulholden/moodle 2023-09-08 22:14:34 +08:00
Ilya Tregubov 7ddea19a95 Merge branch 'MDL-78244-master' of https://github.com/meirzamoodle/moodle 2023-09-08 22:14:33 +08:00
Jun Pataleta dd49de72b2 Merge branch 'MDL-78954-master-fix' of https://github.com/lameze/moodle 2023-09-08 22:14:33 +08:00
Shamim Rezaie 4ded6f7fb9 Merge branch 'MDL-77545-master' of https://github.com/call-learning/moodle 2023-09-08 22:14:33 +08:00
Jun Pataleta b0f9fee6dd Merge branch 'MDL-77443-master' of https://github.com/andrewnicols/moodle 2023-09-08 22:14:33 +08:00
Jun Pataleta 45cf011ab6 Merge branch 'MDL-75740' of https://github.com/paulholden/moodle 2023-09-08 22:14:33 +08:00
Paul Holden 65c0de3618 MDL-78619 communication: add customlink to list of standard plugins.
Make management URL nullable to avoid section link error when the
whole subsystem is not enabled.
2023-09-08 22:14:31 +08:00
Simey Lameze 2ab8c0f17c NOBUG: increase expected size for downloaded file 2023-09-08 22:14:29 +08:00
Andrew Nicols a5f4b6929a Merge branch 'MDL-79286' of https://github.com/paulholden/moodle 2023-09-08 22:14:29 +08:00
Andrew Nicols 0b1db43788 MDL-79277 tool_mobile: Correct default value for empty param 2023-09-08 22:14:29 +08:00
Andrew Nicols b4bd5d9f5f Merge branch 'MDL-79277-master' of https://github.com/noeldemartin/moodle 2023-09-08 22:14:29 +08:00
Andrew Nicols d5605c7704 Merge branch 'MDL-79250-master' of https://github.com/junpataleta/moodle 2023-09-08 22:14:28 +08:00
Andrew Nicols 12c67aaae1 MDL-79264 tiny_equation: Correct debounce method
The debounced method was being called immediately instead of being
debounced.
2023-09-08 22:14:28 +08:00
Andrew Nicols 6ceabf28d3 Merge branch 'MDL-79264-master' of https://github.com/geichelberger/moodle 2023-09-08 22:14:28 +08:00
Andrew Nicols f711def059 Merge branch 'MDL-68435' of https://github.com/paulholden/moodle 2023-09-08 22:14:28 +08:00
Andrew Nicols 9f676d6cb3 Merge branch 'MDL-78917' of https://github.com/paulholden/moodle 2023-09-08 22:14:28 +08:00
Jun Pataleta fdc726d7e4 Merge branch 'MDL-76034-master' of https://github.com/andrewnicols/moodle 2023-09-08 22:14:27 +08:00
Jun Pataleta 8b8efffd7e Merge branch 'MDL-78779-master' of https://github.com/andrewnicols/moodle 2023-09-08 22:14:27 +08:00
Jun Pataleta cfb2afb047 Merge branch 'MDL-78558-master' of https://github.com/roland04/moodle 2023-09-08 22:14:27 +08:00
Jun Pataleta f6dd2d6171 Merge branch 'MDL-78082-patch' of https://github.com/ilyatregubov/moodle 2023-09-08 22:14:27 +08:00
Jun Pataleta a44a7e7643 MDL-78954 theme: Rebuild CSS 2023-09-08 22:14:26 +08:00
Jun Pataleta fbcf8db9d3 Merge branch 'MDL-78954-master' of https://github.com/ferranrecio/moodle 2023-09-08 22:14:24 +08:00
Eloy Lafuente (stronk7) 5fdd1f768b Merge branch 'MDL-78619-master' of https://github.com/HuongNV13/moodle 2023-09-08 22:13:16 +08:00
Ilya Tregubov b8826a7a21 MDL-78082 gradereport_grader: Remove xpath from Behat. 2023-09-08 22:13:11 +08:00
Huong Nguyen 4a115b8118 MDL-78619 theme: Communication button fix for Classic 2023-09-08 22:13:10 +08:00
Jun Pataleta e0d2040aaa MDL-79048 course: Update page title when toggling bulk editing
* When toggling bulk editing, updating the page's title can help users,
especially screen reader users, to determine the current editing state
of the course homepage.
2023-09-08 21:55:34 +08:00
Jun Pataleta 7c88f2abdc MDL-79048 course: Add editing versions of course view page titles
* Create 'editing' versions of the coursetitle and coursesectiontitle
lang strings used for the page title of the course homepage and use
these when editing mode is turned on to provide immediate information
to users, especially screen reader users, the current state of the
course homepage.
2023-09-08 21:42:20 +08:00
Alex Yeung b690c21eab MDL-78474 mod_label: fix phpunit and behat tests 2023-09-08 12:13:23 +01:00
stemiwe d73d56f070 MDL-78474 mod_label: include new field for name 2023-09-08 12:08:59 +01:00
meirzamoodle bebd10c5a5 MDL-78649 core_communication: Clarify form provider method name 2023-09-08 16:50:54 +07:00
meirzamoodle 129d8afa39 MDL-78649 core_communication: Fix missing provider form fields types 2023-09-08 16:50:50 +07:00
Ferran Recio d54027dc6d MDL-78826 tool_componentlibrary: add dropdown js controls 2023-09-08 10:23:29 +02:00
Ferran Recio c87fe6036d MDL-78826 javascript: add dropdown js controls 2023-09-08 10:23:13 +02:00
AMOS bot 0cf21fce5f Automatically generated installer lang files 2023-09-08 00:10:53 +00:00
Laurent David 0335adeff4 MDL-77545 mod_bigbluebuttonbn: Add form extension
* Add a new way to extend the BigBlueButtonBN form via subplugins
* Allow subplugins to extends information via new tables and use it in
the edit form.
* Add a new cache helping with potential perfomance issues introduced
by recurring calls to find out about associated tables in subplugins.
2023-09-07 17:20:05 +02:00
Laurent David 3d05bc7da3 MDL-77545 mod_bigbluebuttonbn: Refactor get_instances_implementing
* We need a way to either have the classes implementing an interface/abstract
class or create instances.
2023-09-07 17:17:51 +02:00
Paul Holden c7d08f855e MDL-79291 h5p: handle content type creation errors in test generator.
If the endpoint is temporarily down and/or misbehaving, then at least
we'll a clearer failure message.
2023-09-07 15:38:45 +01:00
Tim Hunt 1437ed51ef MDL-79279 qformat_xml: multianswer import should support idnumber
Fix suggested by Georg Maißer.
2023-09-07 11:40:48 +01:00
Paul Holden b4a7583d58 MDL-79286 mod_quiz: account for users with multiple enrolments.
The quiz override form should account for this, to ensure duplicate
user records don't trigger DML debugging.
2023-09-07 11:33:58 +01:00
Huong Nguyen bd372a63d2 Merge branch 'MDL-78619-master' of https://github.com/mickhawkins/moodle 2023-09-07 15:19:18 +07:00
Mikel Martín 8af68bbe09 MDL-78558 core_courseformat: Activity cards UI improvements
- Fix action menu and completion button size
- New 'Add activity' button styles
- Fix restriction container styles
- Fix action menu and groupmode button styles
- Fix hover styles for action menu and groupmode button
- Fix groupmode spacing styles
- Homogenize completion button colours
- Fix inplaceeditable and badge positioning
- Fix export filesize related behat
- Homogenize activity/section availability
- New add topic styles
2023-09-07 09:34:43 +02:00
Mikel Martín c4a23af241 MDL-78607 availability: Add loading icon to restrictions form input 2023-09-07 09:02:03 +02:00
Ilya Tregubov 676afe98b8 Merge branch 'MDL-70371-master-rebased' of https://github.com/stevandoMoodle/moodle 2023-09-07 14:50:19 +08:00
Ilya Tregubov 224b3f2e0b Merge branch 'MDL-78082-master' of https://github.com/rezaies/moodle 2023-09-07 14:31:03 +08:00
Jun Pataleta 4cb02d8839 Merge branch 'MDL-78795-master' of https://github.com/phmemmel/moodle 2023-09-07 14:17:12 +08:00
Stevani Andolo dbf83c72c7 MDL-70371 core: Defined password length
1. Modified the password related forms
2. Added a new constant in moodlelib.php called MAX_PASSWORD_CHARACTERS
3. Added a new method in moodlelib.php called exeeds_password_length
4. Updated the upgrade.text
2023-09-07 12:29:10 +08:00
Jun Pataleta 9d85da5527 Merge branch 'MDL-77863-master' of https://github.com/junpataleta/moodle 2023-09-07 11:04:21 +08:00
Jun Pataleta 60d350c59d MDL-77863 theme_boost: Fix colours
* Fix tag area text shadow colour. It is originally set to
  `rgba(255, 255, 255, 0.5)` so it should be `rgba($white, 0.5)`
  instead of `rgba($black, 0.5)`.
* Revert colour for `$content-item-unread-colour` to `#f4f4f4` instead
  of `$gray-100`.
2023-09-07 10:57:50 +08:00
Safat 44646941f8 MDL-79155 core_course: Change default communication to none 2023-09-07 12:11:18 +10:00
Angelia Dela Cruz 3ed02cfc1f MDL-79220 mod_glossary: Behat for glossary entry with attachment 2023-09-07 09:38:14 +08:00
Ilya Tregubov d77673e6ea Merge branch 'MDL-78956-master' of https://github.com/ferranrecio/moodle 2023-09-07 08:59:46 +08:00
Ilya Tregubov e4c3ab5505 Merge branch 'MDL-78972-master' of https://github.com/roland04/moodle 2023-09-07 08:55:29 +08:00
Francis Devine a77158fd96 MDL-79274 assignfeedback_editpdf: Fix permission error in conversions
This was causing the adhoc task to fail with a nopermission error, when
a user was unenrolled from a course before their assignment submission
could be converted into a pdf.

Comments from MDL-56810 indicate the correct approach is to not attempt
a conversion in those cases.
2023-09-07 09:26:09 +12:00
Shamim Rezaie 56abfc2d22 MDL-78082 gradereport_grader: Acceptance test for locking 2023-09-07 05:46:55 +10:00
Benjamin Abraham e7caf8bd5f MDL-77863 theme: hardcoded colors in boost moved into variables
Moved all hardcoded colors found in the boost/moodle scss files into variables to make theming and child theme development easier.
2023-09-06 16:20:51 +02:00
Paul Holden 2518317649 MDL-75371 core: fix typos in reverse proxy setup docs. 2023-09-06 14:38:08 +01:00
Paul Holden 4be889a1c7 Merge branch 'patch-1' of https://github.com/ewjoachim/moodle 2023-09-06 14:25:57 +01:00
Paul Holden 71c6c88747 MDL-78895 mod_url: fix double encoded ampersands in URL.
Also restore the `$attributes` property (previously `$extra` prior
to 8d8af19a) to define URL opening behaviour, e.g. in popup or new
window.
2023-09-06 13:24:36 +01:00
Shamim Rezaie 8e73a9ec19 MDL-78082 core_grades: Incomplete Grade Item Handling Enhanced
Problem:
In grade_edittree_column_status::get_category_cell, an assumption was
made that $category->grade_item is always populated. However, this was
not guaranteed, leading to potential issues.

Solution:
To ensure $category->grade_item availability, a $category->load_grade_item();
call was introduced in grade_edittree_column_status::get_category_cell.
This guarantees safe usage of $category->grade_item.

Furthermore, in grade_edit_tree::build_html_tree, $category->get_grade_item()
was replaced with $category->load_grade_item() for enhanced reliability
and potential performance improvement.

Explanation:
These changes enhance robustness and efficiency in gradebook.
Addressing incomplete grade item handling improves code reliability and
user experiences.
2023-09-06 22:20:39 +10:00
Shamim Rezaie 4cf11157c2 MDL-78082 core_grades: Fix locking inconsistency
Problem:
In Moodle 4.2, an unintended change in behaviour occurred when locking
and unlocking grade items. Previously, in Moodle 4.1, locking a grade
item and then subsequently unlocking the grade item left specific grades
for students still locked if they were being locked individually.
However, in Moodle 4.2, the unintended change caused the individual
grades to be unlocked along with the grade item.

Solution:
To address this issue, I modified the set_locked calls in action.php to
pass the cascade parameter as false. Now, when locking or unlocking a
grade item, only the grade item itself is affected, leaving individual
grades unchanged. I have also modified the locking behaviour in the
grade_category class. So, similarly, when locking or unlocking a grade
category, the change applies only to the grade items and grade
categories within the category, without expanding to individual grades.

Explanation:
By making this change, we ensure that the locking mechanism behaves as
expected, providing a consistent and desirable user experience. Locking
and unlocking a grade item or category will no longer inadvertently
affect individual grades, preserving their locked status and avoiding
loss of data when unlocking a grade item associated with the total mark
of a category.
2023-09-06 22:20:39 +10:00
Shamim Rezaie 09ef2d0aa5 MDL-78082 core_grades: lock/unlock all option for grade categories
A lock/unlock option is added to the context menu of the grade
categories again. But it is only used as an auxiliary tool to lock or
unlock all the grade items within the category.
2023-09-06 22:20:39 +10:00
Shamim Rezaie b208ea26d1 MDL-78082 core_grades: Hide lock/unlock options for grade categories
Problem:
The grade_categories table lacks a 'locked' field, making it technically
impossible to lock grade categories. In Moodle 4.1, the "category total"
column could be locked (from the edit category form), but locking grade
categories directly was not supported.

Solution:
In response to the issue, the lock/unlock feature for grade categories
has been removed. Since the grade_categories table does not have the
necessary 'locked' field, attempting to implement category locking would
be infeasible. As a result, the feature has been removed from the
interface to avoid confusion.

Explanation:
By removing the lock/unlock feature for grade categories, we ensure that
users no longer encounter non-functional options and prevent any
potential misunderstandings about the locking behaviour. Additionally,
this change aligns the user interface with the underlying database
schema and eliminates any misleading functionality.
2023-09-06 22:19:40 +10:00
Shamim Rezaie fb3f018cf6 MDL-78082 core_grades: Fix locking issue with natural aggregation
Problem:
When the aggregation method is set to "natural," grade items' weights
and the maximum grade of the grade category's item get recalculated,
causing the needsupdate flag to be set to true. As a result, the locking
process was skipped, leading to unexpected behaviour.

Solution:
To address the issue, the set_locked method has been modified. Instead
of skipping the locking process, the method now schedules the locking of
grade items to occur slightly in the past, specifically one second in
the past. This ensures that the grade item will be automatically locked
after the recalculations are completed.

Explanation:
By making this adjustment, we ensure that the locking process is not
skipped during natural aggregation, maintaining consistent behaviour and
preventing any unintended consequences related to grade item locking.
2023-09-06 22:19:40 +10:00
Shamim Rezaie a1cf8f143a MDL-78082 gradereport_grader: Enter should submit the form
Problem:
Previously, when users pressed the Enter key while interacting with the
grader report, instead of submitting the form, a table column was
inadvertently expanded or collapsed. This behaviour occurred due to the
expand/collapse buttons lacking an explicit 'type' attribute within the
form. As a result, these buttons were mistakenly treated as submit
buttons.

Solution:
In this commit, we have addressed the issue by ensuring that the
expand/collapse buttons now have the correct 'type' attribute set,
explicitly identifying them as non-submit buttons. This adjustment
prevents them from interfering with form submission unintentionally.

Explanation:
By making this fix, we improve the user experience in the grade book,
allowing users to navigate and interact with the interface more
smoothly. Pressing the Enter key will now trigger the form submission as
expected, rather than inadvertently activating expand/collapse actions.
2023-09-06 22:18:40 +10:00
Marina Glancy 3b160c7b71 MDL-79241 tool_mfa: correctly setup standard plugin type 2023-09-06 09:14:25 +01:00
Noel De Martin 87d4c398e3 MDL-79277 tool_mobile: Fix warning 2023-09-06 09:05:10 +02:00
Ilya Tregubov 4fa5a40f34 Merge branch 'MDL-76865-master' of https://github.com/daledavies/moodle 2023-09-06 14:48:15 +08:00
Andrew Nicols aa7f105139 Merge branch 'MDL-79205' of https://github.com/paulholden/moodle 2023-09-06 12:52:28 +08:00
Andrew Nicols add1afeea1 Merge branch 'MDL-79244-master' of https://github.com/lucaboesch/moodle 2023-09-06 12:49:24 +08:00
Andrew Nicols 1629a219e9 MDL-78779 gradereport_user: Replace wait steps with expectations 2023-09-06 12:40:45 +08:00
Andrew Nicols 4bfd20983d MDL-78779 core: Do not re-render combo searchresults if term unchanged 2023-09-06 12:28:36 +08:00
Andrew Nicols c7a05345b6 MDL-78779 core: Wrap combobox debounce in pending Promise
This addresses a random failure with the combobox search results where
the debounce causes the results to be shown, and then the same search
result is returned again, re-rendered, and replaced after Behat has
moved on.
2023-09-06 12:27:45 +08:00
Ilya Tregubov bf109995b0 Merge branch 'master_MDL-67774' of https://github.com/mattporritt/moodle 2023-09-06 11:51:56 +08:00
meirzamoodle 3c3021a641 MDL-79210 lib: Code adjustments to the PHPSpreadSheet 1.29.0 2023-09-06 10:51:08 +07:00
meirzamoodle e55ecbac8c MDL-79210 lib: Upgrade PHPSpreadSheet to 1.29.0 2023-09-06 10:51:08 +07:00
Matt Porritt 1560be7b7e MDL-67774 Authentication: Specify password peppers in config.php
Add a pepper to the users supplied password.
The pepper is stored in CFG and user to add extra security to
the password hash. By effectively breaking the information to
create the hashed password into two and storing it in more
than one place.
2023-09-06 13:47:51 +10:00
Jun Pataleta 5b06e8b01c MDL-79057 gradereport_singleview: Use proper hidden attribute value
HTML attribute hidden="1" is invalid. It either needs to be set to an
empty string or use the keyword "hidden" for its value.
2023-09-06 10:32:33 +08:00
Ilya Tregubov e8ac466426 Merge branch 'MDL-76459' of https://github.com/stronk7/moodle 2023-09-06 10:02:19 +08:00
Luca Bösch 45c9000653 MDL-79244 backup: fix typo for questioncannotberestored.
AMOS BEGIN
 MOV [questionegorycannotberestored,backup],[questioncannotberestored,backup]
AMOS END
2023-09-05 22:30:36 +02:00
Jun Pataleta b8fe5b3a0e MDL-79057 gradereport_singleview: Remove tabindex > 0 for elements
A tab index with a non-zero value messes up with the logical tab order
of a page.
2023-09-06 00:32:55 +08:00
Paul Holden fd968053ec Merge branch 'MDL-76419-master' of https://github.com/rjnl/moodle 2023-09-05 17:18:30 +01:00
Andrew Nicols 00f0613f99 on-demand release 4.3dev+ 2023-09-05 22:27:40 +08:00
Andrew Nicols cc60490854 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-09-05 22:27:36 +08:00
AMOS bot 64bb886164 Automatically generated installer lang files 2023-09-05 14:25:23 +00:00
Gregor Eichelberger f1e12ca909 MDL-79264 tiny: Replace hardcoded contextid
The `contextid` argument of the `tiny_equation_filter` AJAX call is
hardcoded to 1, which causes trouble if the context table does not start
with id 1.

Signed-off-by: Gregor Eichelberger <gregor.eichelberger@tuwien.ac.at>
2023-09-05 13:24:50 +02:00
Paul Holden 7d32eabbd2 MDL-78254 libraries: upgrade to version 5.65.15 of CodeMirror. 2023-09-05 10:06:57 +01:00
Paul Holden 56cd63a8f9 MDL-71494 mod_feedback: final removal of deprecated constructor param. 2023-09-05 09:09:26 +01:00
Paul Holden 259c496e73 MDL-75740 block_news_items: show full date format for all posts.
Co-authored-by: Przemek Kaszubski <przemka@amu.edu.pl>
2023-09-05 09:08:29 +01:00
Paul Holden 6e9e73aba0 MDL-79205 webservice: gracefully handle invalid functions in docs. 2023-09-05 08:51:51 +01:00
meirzamoodle 78e0fb0818 MDL-78244 lib: Update jQuery to 3.7.1 2023-09-05 14:30:30 +07:00
Jun Pataleta f566bf4601 Merge branch 'MDL-78874-master' of https://github.com/danghieu1407/moodle 2023-09-05 12:05:59 +08:00
Ilya Tregubov 88ce8754b2 Merge branch 'MDL-77296-master' of https://github.com/davewoloszyn/moodle 2023-09-05 11:59:29 +08:00
Andrew Nicols 77dc50a76a Merge branch 'MDL-79132' of https://github.com/AnupamaSarjoshi/moodle 2023-09-05 11:52:36 +08:00
Andrew Nicols 258698e6f3 MDL-75268 core: Add tiny_premium to list of standard plugins 2023-09-05 11:44:07 +08:00
Jake Dallimore 3ea06421de MDL-78258 libraries: update 3rd party libs xml for lti1p3 2023-09-05 11:41:29 +08:00
Jake Dallimore 8800487194 MDL-78258 libraries: upgrade lti1p3 to v5.4.1
This is required since we updated php-jwt to 6.8.1 in MDL-78249.
2023-09-05 11:41:29 +08:00
Andrew Nicols b3d8c1a862 Merge branch 'MDL-75268-master' of https://github.com/davewoloszyn/moodle 2023-09-05 11:39:41 +08:00
Andrew Nicols ba1093c973 Merge branch 'MDL-78865' of https://github.com/danmarsden/moodle 2023-09-05 11:28:30 +08:00
Andrew Nicols bbfa50946e Merge branch 'MDL-79253-master' of https://github.com/junpataleta/moodle 2023-09-05 11:25:26 +08:00
Andrew Nicols 4e5ce1469c Merge branch 'MDL-79060-master' of https://github.com/junpataleta/moodle 2023-09-05 11:23:46 +08:00
Jun Pataleta 4aeada159d MDL-79060 course: Deprecate unused aria:courseimage lang string 2023-09-05 11:12:18 +08:00
Jun Pataleta 40da6b8f0c MDL-79060 course: Use course name for the course image link 2023-09-05 11:10:13 +08:00
Andrew Nicols ce4d696004 Merge branch 'MDL-79230' of https://github.com/paulholden/moodle 2023-09-05 10:56:28 +08:00
Ilya Tregubov cbe667fe66 Merge branch 'MDL-78744-master' of https://github.com/roland04/moodle 2023-09-05 10:54:52 +08:00
Andrew Nicols ee81bfabe8 Merge branch 'MDL-77061' of https://github.com/dravek/moodle 2023-09-05 10:53:19 +08:00
Andrew Nicols 1e6e9052ba Merge branch 'MDL-79236' of https://github.com/paulholden/moodle 2023-09-05 10:40:53 +08:00
Andrew Nicols 2c830e04eb Merge branch 'MDL-79237' of https://github.com/paulholden/moodle 2023-09-05 10:35:19 +08:00
Andrew Nicols 4e5510fcd7 Merge branch 'MDL-79238' of https://github.com/paulholden/moodle 2023-09-05 10:34:57 +08:00
Andrew Nicols 146a410d3a Merge branch 'MDL-78946' of https://github.com/paulholden/moodle 2023-09-05 10:34:40 +08:00
Andrew Nicols 0d6650a928 Merge branch 'MDL-79191' of https://github.com/paulholden/moodle 2023-09-05 10:32:48 +08:00
Andrew Nicols 67bf116bfc Merge branch 'MDL-79088-master' of https://github.com/marinaglancy/moodle 2023-09-05 10:28:46 +08:00
Jun Pataleta b5b63270c5 MDL-78549 qtype_multianswer: Configure feedback popover trigger via JS
* For some reason, the `data-trigger="hover focus"` does not work when
rendering the popover via HTML. It just defaults to click, so the
feedback popover for qtype_multianswer questions does not show on hover.
Configuring the feedback popover's trigger via JS seems to work.
2023-09-05 09:34:33 +08:00
AMOS bot 2280913817 Automatically generated installer lang files 2023-09-05 00:11:57 +00:00
Rajneel Totaram 54b6d9621b MDL-76419 calendar: Respect $CFG->autologinguests on frontpage 2023-09-05 10:44:03 +12:00
Paul Holden d0051760e5 MDL-78728 forms: correctly refer to outermost form element.
Read-only forms do not belong to a <form> element, so we can't refer
to that. Instead find the `.mform` element (which exists for regular
and read-only forms).
2023-09-04 16:33:51 +01:00
Andrew Nicols c550194bce Merge branch 'MDL-73734-streaming-output-api' of https://github.com/brendanheywood/moodle 2023-09-04 22:21:17 +08:00
Jun Pataleta 9392905d77 MDL-79253 mod_scorm: Require locallib when deleting SCORM instances 2023-09-04 21:24:11 +08:00
Marina Glancy 77d3c5b1b0 MDL-79088 navigation: add stoppable interface to navigation extend hook 2023-09-04 13:36:40 +01:00
Marina Glancy 906dfc2f50 MDL-79088 navigation: new hook to add items to site primary navigation 2023-09-04 13:36:40 +01:00
Paul Holden 4c02baa456 Merge branch 'MDL-79232-master' of https://github.com/marinaglancy/moodle 2023-09-04 11:38:09 +01:00
Paul Holden 08e66a5691 MDL-68435 customfield: fix plugin file serving callbacks.
Incorrect parameter/method call was previously serving files with
wrong filenames.
2023-09-04 10:45:16 +01:00
Mikel Martín bd7cc81be6 MDL-78744 completion: Split activity_information in completion and dates
Deprecate core_course\output\activity_information class and move its code to two
new classes: core_course\output\activity_completion and core_course\output\activity_dates.
In this process refactor activity_completion improving readability and and also deprecate
renderer_base::activity_information() and core_course_renderer::render_activity_information().
2023-09-04 11:37:20 +02:00
Mikel Martín d9a61945b6 MDL-78972 core_courseformat: Change delete actions link colours to red 2023-09-04 11:36:51 +02:00
Mikel Martín bb3dca93db MDL-78972 theme_boost: Add dropdown item colour styles
- Create a new SCSS file for dropdown related styles
- Move current dropdown styles from core.scss to new dropdown.scss
- Add helper classes for dropdown item colouring
2023-09-04 11:36:51 +02:00
Jun Pataleta 3492efae57 MDL-79250 admin: Add title to external_content_banner template 2023-09-04 16:53:02 +08:00
Huong Nguyen 7c6df5d2fd Merge branch 'MDL-79248-master' of https://github.com/andrewnicols/moodle 2023-09-04 12:32:37 +07:00
Andrew Nicols c5227b336f MDL-79248 mod_quiz: Behat scenario interacts incorrectly with select
This test was using the click operator to select an option value, rather
than selecting the value with form field steps.

In addition I found that sometimes the way in which a WS is used to
make the change before a refresh leads to a random failure if the page
navigation happens too slowly.
2023-09-04 11:57:04 +08:00
Andrew Nicols 7c952f1d13 MDL-79246 gradingform_rubric: Use i_click_on for behat clicks 2023-09-04 09:11:26 +08:00
Philipp Memmel c9398e27f2 MDL-78795 core_form: Fix repeated elements JS problem
Co-authored-by: Stefan Hanauska <stefan.hanauska@csg-in.de>
2023-09-03 14:12:30 +02:00
Juan Leyva eeff6d4c05 MDL-79242 tool_mobile: Pass site as installation referrer for the app 2023-09-02 18:12:25 +02:00
Paul Holden f01b902d7e MDL-79237 tiny_noautolink: define help link text language string. 2023-09-02 11:08:45 +01:00
Paul Holden 34bc525c9f MDL-79238 tool_mfa: define factor sub-plugins as standard. 2023-09-02 11:07:57 +01:00
Paul Holden 21ba055889 MDL-78946 tool_mfa: define factor subplugin type language strings. 2023-09-02 11:07:01 +01:00
Eloy Lafuente (stronk7) d2b6a1b7f3 MDL-76459 dml: Remove other remaining harcoded uses of old 28 & 30
Let's require lib/ddllib.php and use the constant properly,
so we don't need to go searching for cases in future changes.

They are a hand of files, but already are included often each
time the database manager is included. Possible alternative
for this, if we want to reduce the number of included files
is to move the constants to xmldb_constants and only include
that file, but I don't think that makes much sense.

Also, fix the xmldb schema definition to validate table and
column names with the new allowed lengths.
2023-09-02 09:22:13 +02:00
Eloy Lafuente (stronk7) 8996ee0eaa MDL-76459 oracle: Remove the 2-chars prefix limit
Now Oracle can use longer table names, like all the
other databases, and the very same 10 characters limit
for $CFG->prefix applies.

As far as it's already checked by the environmental checks
we don't need to verify anything in the driver any more.

Also, deprecate the prefixtoolong,error string. I was tempted
to straight delete it but imagined some custom database driver
extending the core one so, it doesn't harm much to keep it as
deprecated some time.
2023-09-02 09:22:13 +02:00
Eloy Lafuente (stronk7) 227ed030e9 MDL-76459 xmldb: Add environmental check to verify $CFG->prefix
While, right now, sites using long (> 10 chars) $CFG->prefix
can continue working (because we still don't have any table
> 28 chars), as soon as some new table with long name is added,
it won't work with PostgreSQL anymore (if the 63 limit is raised).

Hence, this environmental check will verify on both install and
upgrade that the $CFG->prefix is always <= 10 chars.

Sites with longer prefixes will need to rename all their tables
(and maybe other objects, depending on the dbtype) to use a shorter
prefix.
2023-09-02 09:22:13 +02:00
Eloy Lafuente (stronk7) 8dc3486a04 MDL-76459 xmldb: Raise the table & column length limits
With Oracle 19 being the minimum version for Moodle >= 4.1, now
we can safely raise the table and column length limits by a
considerable amount.

In both tables and columns the new limit it 63, coming from PostgreSQL,
that is the one now having the more restrictive limit.

1) NP with columns, let's allow up to 63 ascii chars (bytes) there.
2) But, for table names, now we need to specify a maximum prefix length,
   to know how many chars we leave remaining for table names (without
   prefix). 63 - 10 (max prefix length) = 53 ascii chars (bytes).

So, in this patch, we are introducing a new constant:

xmldb_table::PREFIX_MAX_LENGTH = 10

That will be used to:
- Validate that we aren't using a prefix longer than it.
- Calculate the final table limit that will be 63 minus
  the prefix max length.

Details added to 4.2 main upgrade.txt file.

Also, update related to tests to (near) always use the constants
so they won't need modification in the future.
2023-09-02 09:22:13 +02:00
Andrew Nicols 206c3a66e7 weekly release 4.3dev+ 2023-09-02 08:18:19 +08:00
Andrew Nicols 39d15d121a NOBUG: Fixed SVG browser compatibility 2023-09-02 08:18:16 +08:00
Paul Holden 0bbc8922d8 MDL-79236 editor_tiny: define subplugin type language strings. 2023-09-01 19:21:41 +01:00
Mark Johnson 4f07ff98f4 MDL-72321 question bank: Only update edit switch URL if present 2023-09-01 23:43:20 +08:00
Mark Johnson 4b160a7c7b MDL-72321 datafilter: Stop disabling jointype field
This was causing behat test failures due to the test trying to
set the disabled jointype field before the filter type was selected.
2023-09-01 23:43:20 +08:00
Paul Holden ec0ef091f6 MDL-79230 editor_tiny: fix plugin info manage URL.
Co-authored-by: Meirza <meirza.arson@moodle.com>
2023-09-01 15:19:35 +01:00
Marina Glancy 2fe212abcd MDL-79232 navigation: fix undefined var warning 2023-09-01 14:20:29 +01:00
David Woloszyn ec5cb56c3b MDL-78255 lib: Set Moodle files after emoji-data upgrade 2023-09-01 19:01:36 +10:00
David Woloszyn ce706f4c3e MDL-78255 lib: Upgrade emoji-data to 15.0.1 2023-09-01 19:01:04 +10:00
Andrew Nicols 7d6ed82571 Merge branch 'mdl-79204-master' of https://github.com/james-cnz/moodle 2023-09-01 11:58:51 +08:00
Andrew Nicols 34d5e85fb7 Merge branch 'MDL-79108-master' of https://github.com/sarjona/moodle 2023-09-01 11:55:59 +08:00
Huong Nguyen 7ff9b73f77 Merge branch 'MDL-74828-master' of https://github.com/andrewnicols/moodle 2023-09-01 10:53:38 +07:00
Andrew Nicols 39367921b0 Merge branch 'MDL-78930-master' of https://github.com/sarjona/moodle 2023-09-01 11:46:15 +08:00
Huong Nguyen af31bedf16 Merge branch 'MDL-76092-master' of https://github.com/andrewnicols/moodle 2023-09-01 10:41:18 +07:00
Andrew Nicols 2e58ae5c03 Merge branch 'MDL-78966-master' of https://github.com/rjnl/moodle 2023-09-01 11:31:17 +08:00
Huong Nguyen bf1568ae1e Merge branch 'MDL-79042-master' of https://github.com/andrewnicols/moodle 2023-09-01 10:28:54 +07:00
Andrew Nicols 0235a368da Merge branch 'MDL-78179-master' of https://github.com/sarjona/moodle 2023-09-01 11:25:22 +08:00
Ilya Tregubov 42aff47fff Merge branch 'MDL-74429-master' of https://github.com/roland04/moodle 2023-09-01 11:15:09 +08:00
Andrew Nicols 5aadac88be Merge branch 'MDL-79190-master' of https://github.com/jbs1/moodle 2023-09-01 11:12:55 +08:00
Matt Porritt 227a2f8e9c MDL-79051 Authentication: MFA Improve email template
Improve the layout, display and information architecture of
the email sent that contains the code for the email MFA factor.
2023-09-01 10:09:54 +07:00
Ilya Tregubov e90d73974a Merge branch 'MDL-79198-master' of https://github.com/junpataleta/moodle 2023-09-01 11:03:22 +08:00
Andrew Nicols c81e889a8d Merge branch 'MDL-77979-master' of https://github.com/meirzamoodle/moodle 2023-09-01 11:00:59 +08:00
Ilya Tregubov 9bf3e5a893 Merge branch 'MDL-78745-master' of https://github.com/meirzamoodle/moodle 2023-09-01 10:52:26 +08:00
Andrew Nicols 9366a7cf2d Merge branch 'MDL-79045-master' of https://github.com/junpataleta/moodle 2023-09-01 10:46:34 +08:00
Andrew Nicols 07dbcc0103 Merge branch 'MDL-77831-master' of https://github.com/mickhawkins/moodle 2023-09-01 10:37:41 +08:00
meirzamoodle 9526b815f5 MDL-77979 tiny_noautolink: Add the noautolink plugin to the quickbar
Modified the addQuickbarsToolbarItem function on the util to make the additional toolbar item work.
2023-09-01 09:36:42 +07:00
meirzamoodle f26b42d000 MDL-77979 tiny_noautolink: Add a TinyMCE noautolink plugin 2023-09-01 09:36:14 +07:00
Ilya Tregubov 9d4dba81b7 Merge branch 'MDL-79202' of https://github.com/paulholden/moodle 2023-09-01 10:29:41 +08:00
Andrew Nicols 3b167a177b Merge branch 'MDL-79102-master' of https://github.com/sarjona/moodle 2023-09-01 10:15:19 +08:00
Andrew Nicols 47cc73fe1a MDL-72321 question: Ensure that all instance props are defined
Since PHP 8.2, all properties on a class must be defined as the PHP
Dynamic Property feature has been deprecated.

This commit goes one step further and switches this class to using
constructor property promotion. This language feature has been available
since PHP 8.0 and allows for simplified creation of class properties
which are initially defined in the constructor.
2023-09-01 09:52:33 +08:00
Andrew Nicols b36bc08686 Merge branch 'MDL-79144-master' of https://github.com/marinaglancy/moodle 2023-09-01 09:39:28 +08:00
Ilya Tregubov c2dcd9ade8 Merge branch 'MDL-79107-master-2' of https://github.com/andrewnicols/moodle 2023-09-01 09:24:30 +08:00
Andrew Nicols 10525085a3 MDL-79107 editor_tiny: Target correct element on editor removal 2023-09-01 09:06:39 +08:00
Andrew Nicols 1ce54ee87e Merge branch 'MDL-72321_master-squashed' of https://github.com/marxjohnson/moodle 2023-08-31 23:02:35 +08:00
Paul Holden 28304c4045 MDL-79191 grade: correct column type for the grade column (float). 2023-08-31 15:12:45 +01:00
Nathan Nguyen d9a75f5315 MDL-72321 core: backup/restore filter condition 2023-08-31 15:00:39 +01:00
Nathan Nguyen e3bd166b3d MDL-72321 mod_quiz: Use new datafilters for random questions 2023-08-31 15:00:39 +01:00
Mark Johnson 823af3a8f1 MDL-72321 core_question: Replace old conditions with new datafilters 2023-08-31 15:00:39 +01:00
Mark Johnson d2f68abc89 MDL-72321 qbank_usage: Only load javascript if plugin is enabled 2023-08-31 15:00:38 +01:00
Nathan Nguyen 43866217da MDL-72321 qbank_comment: Only initialise javascript if plugin is enabled 2023-08-31 15:00:38 +01:00
Mark Johnson 6f2e91a169 MDL-72321 qbank_bulkmove: Rewrite unit test
This reduces code duplication and removes the dependency on
\core_question\local\bank\view from the test.
2023-08-31 15:00:38 +01:00
Mark Johnson 2e02264945 MDL-72321 core: Support disabled options in form-autocomplete
Autocomplete fields can now include disabled options in the suggestion
list. When calling .enchance() on a select list with disabled options,
those options will be added to the autocomplete suggestions with the
aria-disabled arribute set, and will not be selectable.

Datafilters using the autocomplete element can also hook into this by
including disabled options in their list of values.
2023-08-31 15:00:38 +01:00
Mark Johnson 7091a3210c MDL-72321 core: Allow datafilters to specify a subset of join types
A datafilter can now specify a subset of jointypes that it supports from
the default list of all, any or none. By default all options will be
available, but an individual filter can ovveride this to include just
those options that make sense for the filter. If only one option is
allowed, the select list will be hidden to simplify the UI.
2023-08-31 15:00:37 +01:00
Nathan Nguyen ef8c11328b MDL-72321 core: Add binary datafilter
This adds a new datafilter type which provides a single binary choice
(for example yes/no).
2023-08-31 15:00:37 +01:00
Paul Holden 17dae8a036 MDL-78917 webservice: extra data in exception for missing classpath.
Include the external function classname & methodname properties in
the thrown exception, to aid diagnostic.
2023-08-31 14:15:17 +01:00
Jun Pataleta 37aaae3b13 Merge branch 'MDL-79107-master' of https://github.com/junpataleta/moodle 2023-08-31 21:09:56 +08:00
Jun Pataleta 5df9996f60 MDL-79107 qtype_essay: Move non_form_fields.feature under qtype_essay 2023-08-31 20:46:11 +08:00
Andrew Nicols db23620cdb MDL-79107 editor_tiny: Inform Behat of field type 2023-08-31 20:36:32 +08:00
Jun Pataleta 2e7b5475a7 Merge branch 'MDL-79017' of https://github.com/paulholden/moodle 2023-08-31 20:32:17 +08:00
Michael Hawkins 76a0334c50 MDL-77831 core: Updated security.txt expiry and added additional info 2023-08-31 18:28:26 +08:00
Jun Pataleta a90a00d867 Merge branch 'MDL-77657-master-get_extra_scss_code-wrong-order' of https://github.com/danowar2k/moodle 2023-08-31 17:51:17 +08:00
Sara Arjona 3c831861ec Merge branch 'MDL-78530-master' of https://github.com/aanabit/moodle 2023-08-31 11:10:17 +02:00
Huong Nguyen d190ac7889 Merge branch 'MDL-56020-master' of https://github.com/jleyva/moodle 2023-08-31 15:38:50 +07:00
Amaia Anabitarte 4c4e2224e1 MDL-78530 core_completion: Remove $CFG->completiondefault setting 2023-08-31 08:40:24 +02:00
Amaia Anabitarte 1f68fe635f MDL-78530 core_completion: Use site default completion or none
When creating a new activity we should use course level default completion
and site level completion if there is no course level default completion.

For non defined default completion values use COMPLETION_TRACKING_NONE
instead of COMPLETION_TRACKING_MANUAL.
2023-08-31 08:40:24 +02:00
Amaia Anabitarte ded74e1e65 MDL-78530 core_completion: New default completion behat generator 2023-08-31 08:40:24 +02:00
Huong Nguyen b61422280c Merge branch 'MDL-79207-master' of https://github.com/andelacruz/moodle 2023-08-31 12:26:19 +07:00
Huong Nguyen a784f6186b Merge branch 'MDL-32278-master' of https://github.com/sammarshallou/moodle 2023-08-31 10:46:41 +07:00
Huong Nguyen ee45e0cbef MDL-78907 mod_bigbluebuttonbn: Use the correct parameter type for id 2023-08-31 10:15:47 +07:00
Huong Nguyen 4062dfaafd Merge branch 'MDL-78907-master' of https://github.com/call-learning/moodle 2023-08-31 10:10:13 +07:00
Angelia Dela Cruz c792623feb MDL-79207 core_course: Behat coverage for activity and resource deletion 2023-08-31 09:39:38 +08:00
Jun Pataleta e3633dc719 MDL-79045 grade: Don't enclose grade user_heading in $OUTPUT->heading()
Do not enclose \core_grades_renderer::user_heading() in
$OUTPUT->heading() and enclose the user's name in the user heading in
<h2> tags instead.
- Having <div> inside <h2> results in errors in HTML validation.
- Enclosing the whole user heading in <h2> results in the other
elements in the user heading (Message, Add to contacts) to be announced
to screen readers which can result in confusion.
2023-08-31 09:21:41 +08:00
Ilya Tregubov d302f0dc01 Merge branch 'MDL-78597-master' of https://github.com/snake/moodle 2023-08-31 08:23:03 +08:00
Sara Arjona 2ec4ac7e4a Merge branch 'MDL-78612-master' of https://github.com/andrewnicols/moodle 2023-08-30 17:55:32 +02:00
Amaia Anabitarte e37e0c39e8 MDL-78530 core_completion: New site default activity completion page 2023-08-30 17:46:56 +02:00
Andrew Nicols c85cca3e33 MDL-78612 core: Wrap modal_factory.create in pendingPromise 2023-08-30 12:41:37 +08:00
meirzamoodle a164fc5317 MDL-78745 editor_tiny: Stored text in non-entity form
TinyMCE has a default entity_encoding 'named',
which causes text with diacritic symbols to be converted to HTML entities,
e.g. pâté will be convert to p&acirc;t&eacute;
That will be a problem with the Glossary auto-linking filter if a course has a text concept like pâté,
then the filter will likely fail to get the text concept.
Changing the TinyMCE entity_encoding to 'raw' will resolve the problem.
2023-08-30 08:56:26 +07:00
james-cnz ebe15965aa MDL-79204 course: Remove HTML tag trailing slashes 2023-08-30 12:21:14 +12:00
Paul Holden c3f53e4e39 MDL-79202 tool_mobile: correctly interpolate minutes in exception. 2023-08-30 00:04:58 +01:00
Jeremy Schulz 466a73b18c MDL-79190 theme_boost: removed obsolete comment 2023-08-29 17:10:43 -04:00
Sara Arjona a586bfbd95 Merge branch 'MDL-72359-master' of https://github.com/HuongNV13/moodle 2023-08-29 16:15:36 +02:00
Huong Nguyen a2866d6833 MDL-72359 core_analytics: Better handling of MAX_TIME
We are limited by both PHP's max int value and DB (cross-db) max int allowed.
We need to use the smallest one
2023-08-29 20:36:58 +07:00
Michael Hawkins d0c7834050 MDL-78619 communication_matrix: Unit test fix 2023-08-29 19:55:34 +08:00
Jun Pataleta 59fff99a94 MDL-79198 core: Increment static variable properly 2023-08-29 16:44:16 +08:00
Jake Dallimore a23abb0538 MDL-78597 mod_lti: fix those tests not using lti generators
The following were added in MDL-69489 and had a few issues, which are
fixed in this patch:
Unit tests:
- were not using the existing generator.
- were making assertions inside a foreach, which doesn't test anything
if the result set returned is empty (error prone).
- were calling setAdminUser() unnecessarily.
Behat tests:
- the restricttocategory.feature file used manual steps to setup site
tools.
2023-08-29 16:14:55 +08:00
Jake Dallimore c497672778 MDL-78597 mod_lti: add category restriction support to course tools list 2023-08-29 16:14:37 +08:00
Jake Dallimore 7cb2a78626 MDL-78597 mod_lti: add category restriction support to lti generator
This is already supported in lti_add_type, via the lti_coursecategories
config value, so all that's needed is to match the categories by
idnumber and pass through the resulting ids.
2023-08-29 16:14:37 +08:00
Jake Dallimore 5c737525d8 MDL-78597 mod_lti: Add test for manually configured instance editing
This adds a single scenario covering all the expected behavior for those
existing, manually configured tools. It also removes any tests dealing
with creation of manually configured instances, which is not supported
any more.
2023-08-29 16:14:11 +08:00
Jake Dallimore 9914870b7d MDL-78597 mod_lti: cover creation of course tools using cartridge URLs
This replaces the legacy scenario, which used the '+' on the activity
instance edit form, with a scenario covering the cartridge use on the
new course tools (LTI External tools) edit form.
2023-08-29 16:14:11 +08:00
Jake Dallimore dfd215cad2 MDL-78597 mod_lti: add cartridge support to course tool generator
Allow the generator to create course tools based on cartridge URLs.
2023-08-29 16:14:11 +08:00
Jake Dallimore 93707d8cf5 MDL-78597 mod_lti: deprecate mod/lti:addmanualinstance and lock config
This change:
- removes all uses of mod/lti:addmanualinstance and deprecates it.
- updates the activity instance edit form, specifically the way it deals
with existing manually-configured instances, removing the ability to
edit tool configuration and adding a notice to the user.
2023-08-29 16:14:11 +08:00
Andrew Nicols 8f9b3e1d52 Merge branch 'master_MDL-79134' of https://github.com/mattporritt/moodle 2023-08-29 13:32:46 +08:00
Ilya Tregubov b327210cd2 Merge branch 'MDL-78615' of https://github.com/paulholden/moodle 2023-08-29 13:32:46 +08:00
Huong Nguyen 84b62bb1a0 Merge branch 'MDL-72359-master' of https://github.com/andrewnicols/moodle 2023-08-29 13:32:45 +08:00
Jun Pataleta cc7bc1a553 Merge branch 'MDL-79064-master' of https://github.com/andrewnicols/moodle 2023-08-29 13:32:45 +08:00
Huong Nguyen 11c4a69ea9 Merge branch '78241-master-tiny-recordrtc-fix-availability-conditions' of https://github.com/DSI-Universite-Rennes2/moodle 2023-08-29 13:32:45 +08:00
Andrew Nicols 70f9c1c595 Merge branch 'MDL-78106-master' of https://github.com/kevpercy/moodle 2023-08-29 13:32:44 +08:00
Huong Nguyen c1e4bae8b6 Merge branch 'MDL-78961' of https://github.com/paulholden/moodle 2023-08-29 13:32:41 +08:00
Jake Dallimore d8e2067b66 MDL-78597 mod_lti: deprecate lti_get_lti_types_by_course()
This method includes broken legacy behaviour in which the inclusion of
course and site tools could be controlled independently, based on the
capabilities 'mod/lti:addmanualinstance' (to include course tools) and
'mod/lti:addpreconfiguredinstance' (to include site tools). This
behaviour is deprecated in 4.3, so this method is also deprecated. See
the replacement method types_helper::get_lti_types_by_course.
2023-08-29 13:14:15 +08:00
Jake Dallimore 7ca26f1460 MDL-78597 mod_lti: add \mod_lti\local\types_helper class
This will serve as a location to put new tool-type-centric methods.
2023-08-29 13:11:49 +08:00
Jake Dallimore afa44dd288 MDL-78597 core_course: fix content item tests covering get_all cases
Fixes two tests which use the lti module as an example of a core mod
implementing the 'get_all_content_items' callback. The setup of the mod
in these tests, including course and site tools, needed to be updated
in light of the removal of the 'external tool' content item.
2023-08-29 13:06:48 +08:00
Jake Dallimore 85679c47da MDL-78597 mod_lti: let content item callbacks obey preconfigured cap
Users without the 'mod/lti:addpreconfiguredinstance' capability won't be
able to see any mod_lti content items in the activity chooser.
Note: this patch doesn't address the underlying locallib method,
lti_get_lti_types_by_course(), which will be addressed elsewhere.
2023-08-29 13:06:48 +08:00
Jake Dallimore 5b01727107 MDL-78597 mod_lti: retain selected option when arranging into optgroups
Fixes a bug with YUI, resulting in the selected option not being set
properly again after the options have been reorganised into optgroups.
2023-08-29 13:06:48 +08:00
Jake Dallimore 6ed29fc35b MDL-78597 mod_lti: prevent manual instance use in edit form
This change ensures tool instances which are currently using
preconfigured tools (site or course level) are not able to be switched
back to use the manual 'Automatic, based on tool URL' option. That
option is reserved for legacy tool support of manual instances and
domain-matched site tools, but must not be selectable otherwise.
2023-08-29 13:06:48 +08:00
Jake Dallimore ca10084639 MDL-78597 mod_lti: remove the ability to add manual instances of tools
In summary:
- Remove the 'External tool' item from get_course_content_items()
hook, which results in its removal from the activity chooser.
- Remove the 'External tool' item from get_all_content_items() hook,
which results in its removal from the admin activity chooser
recommendations page.
- Prevent use of the edit_form for creation of new manual instances.
- Retain the ability to edit existing manual instances.
- Fix tests expecting external tool.
2023-08-29 13:06:48 +08:00
Jake Dallimore 36900136a8 MDL-78597 mod_lti: add instance creation to behat creatable entities
This allows behat tests which have already created either a site or
course tool type, to then link it to an activity instance using a
generator. This depends on the ability to name match a type.
2023-08-29 13:06:48 +08:00
Jake Dallimore 5862fe2607 MDL-78597 mod_lti: add full field support to course_tool_types generator
This method is used by behat only, where only a single arg is received.
The method lti_add_type() expects two params: type and config, but will
only ever receive one. This means not all the fields can be set when
creating an lti type. This change:
- Removes the superfluous param which the method won't receive
- Improves the logic for handling type and type config data, making it
match what happens when creating types via mforms.
- Adds relative URL support to the baseurl field, allowing behat
features to create types using local tool fixtures.
- Sets sensible default for missing config data, allowing the created
tool type to be used in launches in places like behat.
2023-08-29 13:06:48 +08:00
Jake Dallimore 7d1cd36e89 MDL-78597 mod_lti: add full field support to tool_types generator
This method is used by behat only, where only a single arg is received.
The method lti_add_type() expects two params: type and config, but will
only ever receive one. This means not all the fields can be set when
creating an lti type. This change:
- Removes the superfluous param which the method won't receive
- Improves the logic for handling type and type config data, making it
match what happens when creating types via mforms.
- Adds relative URL support to the baseurl field, allowing behat
features to create types using local tool fixtures.
- Sets sensible default for missing config data, allowing the created
tool type to be used in launches in places like behat.
2023-08-29 13:06:47 +08:00
Jake Dallimore b3ef113509 MDL-78597 mod_lti: set instance vars in mod_edit form
This introduces a form constructor and sets up instance vars for the
object there, allowing removal of the optional_param() calls in other
methods.
2023-08-29 13:06:47 +08:00
Jake Dallimore 8825c0a0fe MDL-78597 mod_lti: remove tool configuration usage for course tools
This change removes the 'Tool configuration usage' control for course
tools being edited via site admin. All course tools are, at a minimum,
considered to be preconfigured tools and are visible in the course.
The visibility of course tools in the activity chooser will be
controlled via the LTI External tools course page in future.
2023-08-29 13:06:46 +08:00
Jake Dallimore 8ed8b6e9b9 MDL-78597 mod_lti: make new course tools show in activity chooser
This will only impact newly created course tools, not existing tools.
Existing tools will be listed in the LTI External tools page and
teachers will be able to add them to the activity chooser from there.
2023-08-29 13:05:55 +08:00
Jake Dallimore 6f4555d31d MDL-78597 mod_lti: improve DB reads on coursetooledit page
This was hitting the lti_types table twice, via both lti_get_type and
lti_get_type_type_config. This change adds course to the stdClass
returned by the latter, so we can just make a single call to that.
This also permits the use of that course property in other places
where we'd like to have access to it, such as when editing a pre-
configured tool at site level.
2023-08-29 13:05:55 +08:00
Huong Nguyen 33d04612cd MDL-78509 tool_mfa: Improve PHPUnit for factor_cohort and factor_role 2023-08-29 10:39:58 +07:00
Huong Nguyen 83522d40d8 Merge branch 'MDL-78509-master' of https://github.com/stevandoMoodle/moodle 2023-08-29 10:38:27 +07:00
Andrew Nicols 5349b8aecf Merge branch 'MDL-79059-master-2' of https://github.com/junpataleta/moodle 2023-08-29 11:36:16 +08:00
Jun Pataleta b300c56a19 Merge branch 'MDL-79085' of https://github.com/paulholden/moodle 2023-08-29 11:29:43 +08:00
Andrew Nicols c9c1f1ce18 Merge branch 'MDL-79092-master' of https://github.com/rhell4/moodle 2023-08-29 11:22:03 +08:00
Andrew Nicols 3c459071e9 Merge branch 'MDL-79169-int-deprecate-m' of https://github.com/Peterburnett/moodle 2023-08-29 11:17:55 +08:00
Andrew Nicols 8b9cf9e422 Merge branch 'MDL-79150-requirelockingwrite' of https://github.com/brendanheywood/moodle 2023-08-29 11:16:22 +08:00
Andrew Nicols 14582ea452 Merge branch 'MDL-78855-master' of https://github.com/ilyatregubov/moodle 2023-08-29 11:15:02 +08:00
Ilya Tregubov 5dc60d9f94 MDL-78855 tool_uploadcourse: Create instance only if plugin supports it 2023-08-29 11:14:04 +08:00
Andrew Nicols fa05f66052 Merge branch 'MDL-74810-master' of https://github.com/junpataleta/moodle 2023-08-29 11:12:35 +08:00
Stevani Andolo 00db83d1bf MDL-78509 tool_mfa: Fixes based on the report and other issues
In this commit, there are couple of fixes based on the report:
1. Removed legacy polyfill from provider.php
2. Fixed phpunit warning detected by CodeChecker
3. Removed unused files
4. Fixed the PHPunit failures by removing "securityquestions"
   from the data_provider due to it has not been included as one of the factors
5. Added PHPunit test to the factors that can be unittested
6. Removed !important rule from tool_mfa/styles.css
7. Added (int) type to sleep method within sleep_timer method due to a php deprecation
in too_mfa/classes/manager.php
8. Changed last param form bool to string in not_enough_factors() when initiating
a new single_button object in tool_mfa/renderer.php
9. Add explanation text to login page
10. Fixed "Access to an undefined property .." from PHPStan
12. Fixed all the "Variable $.. might not be defined" from PHPStan
13. Fixed the issue from https://github.com/catalyst/moodle-tool_mfa/issues/379
2023-08-29 11:06:44 +08:00
Stevani Andolo 63d8cfcf87 MDL-78509 lib_webauthn: Moved webauthn to lib
It was suggested to move the WebAuthn library form
admin/tool/mfa/webauthn/.extlib to lib/webauthn
2023-08-29 11:06:44 +08:00
Stevani Andolo a639783409 MDL-78509 tool_mfa: Boarded the tool_mfa into core
In this patch the "commitid" of the "upstream" has been included in this
commit. Also, we did not include three factors, which are SMS, Security
Questions and Login Banner.

Co-authored-by: Peter Burnett <peterburnett@catalyst-au.net>
Co-authored-by: Misha Golenkov <golenkovm@gmail.com>
Co-authored-by: Brendan Heywood <brendan@catalyst-au.net>
Co-authored-by: Alex Morris <alex.morris@catalyst.net.nz>
Co-authored-by: Dan Marsden <dan@danmarsden.com>
Co-authored-by: Kevin Pham <kevinpham@catalyst-au.net>
Co-authored-by: Chris Pratt <tonyyeb@gmail.com>
Co-authored-by: Andrew Lyons <andrew@nicols.co.uk>
Co-authored-by: Tomo Tsuyuki <tomotsuyuki@catalyst-au.net>
Co-authored-by: Liam Kearney <https://github.com/LiamKearn>
Co-authored-by: Nicholas Hoobin <nicholashoobin@catalyst-au.net>
Co-authored-by: Scott Verbeek <scottverbeek@catalyst-au.net>
Co-authored-by: nomisge <https://github.com/nomisge>
Co-authored-by: Dmitrii Metelkin <dmitriim@catalyst-au.net>
Co-authored-by: Matthew Hilton <matthewhilton@catalyst-au.net>
Co-authored-by: Michael Geering <https://github.com/dryj>
Co-authored-by: alphadijkstra <https://github.com/alphadijkstra>
2023-08-29 11:06:44 +08:00
Andrew Nicols af7719682d MDL-79064 core: Update all get_strings as uses 2023-08-29 10:57:54 +08:00
Andrew Nicols fe80eecc44 MDL-79064 core: Improve Native promise support
As we migrate to primarily using natives promises, we should make it
easier to use and consume them.

This change:
- updates core/str to add new methods for:
  - getString
  - getStrings
- accept Native promises into Modal setters
2023-08-29 10:57:06 +08:00
David Woloszyn aa179d77d8 MDL-77296 core: Record MoodleNet share progress 2023-08-29 11:26:23 +10:00
Paul Holden b52132d09d MDL-78961 admin: correct smtppass preset configuration name. 2023-08-28 22:32:56 +01:00
Paul Holden cfa1997b5a MDL-79085 tool_mobile: give visible name to autologouttime config. 2023-08-28 22:23:50 +01:00
Sara Arjona a52f94b754 Merge branch 'MDL-78980' of https://github.com/paulholden/moodle 2023-08-28 16:56:22 +02:00
Sara Arjona 0bf13bcc9c Merge branch 'MDL-78747-master' of https://github.com/andrewnicols/moodle 2023-08-28 16:49:07 +02:00
Sara Arjona 31e9a68197 Merge branch 'MDL-78707' of https://github.com/paulholden/moodle 2023-08-28 16:40:47 +02:00
Charles Fulton 1af1cd3b49 MDL-79090 task: add enable and disable cli commands 2023-08-28 10:33:25 -04:00
Sara Arjona d02be922a0 Merge branch 'MDL-78656' of https://github.com/paulholden/moodle 2023-08-28 16:29:45 +02:00
Brendan Heywood ede64f3338 MDL-69958 auth: Handle well-known/change-password requests 2023-08-28 23:57:22 +10:00
Juan Leyva 41d82de0d1 MDL-56020 search: New WS core_search_get_top_results 2023-08-28 15:48:18 +02:00
Juan Leyva f14c521905 MDL-56020 search: New WS core_search_get_search_areas_list 2023-08-28 15:48:18 +02:00
Juan Leyva 7d3477bfec MDL-56020 search: New WS core_search_view_results 2023-08-28 15:48:18 +02:00
Juan Leyva 325ef8095e MDL-56020 search: Return global search settings 2023-08-28 15:48:18 +02:00
Juan Leyva f94e1ef3c9 MDL-56020 search: Adapt code to new style and add tests 2023-08-28 15:48:17 +02:00
David Monllao 49e589445d MDL-56020 search: Adding get_results external function 2023-08-28 15:47:01 +02:00
Brendan Heywood 20b8f8f9c9 MDL-73734 core: Use streaming output for perfdebug 2023-08-28 22:48:59 +10:00
Brendan Heywood 072a15ced3 MDL-73734 tool_generator: Use streaming output api 2023-08-28 22:48:59 +10:00
Brendan Heywood a6055feebf MDL-73734 course: Use streaming output api when deleting courses 2023-08-28 22:48:59 +10:00
Sara Arjona f3777037d7 Merge branch 'MDL-79118' of https://github.com/paulholden/moodle 2023-08-28 14:37:36 +02:00
Sara Arjona d52ea4c037 Merge branch 'MDL-78749-master' of https://github.com/BruceGoodGuy/moodle 2023-08-28 14:26:02 +02:00
Brendan Heywood 9a8fccbabc MDL-73734 tool_httpreplace: Use streaming output api 2023-08-28 22:08:08 +10:00
Brendan Heywood d5860ac566 MDL-73734 tool_customlang: Use streaming output api 2023-08-28 22:08:08 +10:00
Brendan Heywood 442f18a92d MDL-73734 tool_task: Use streaming output api 2023-08-28 22:08:08 +10:00
Brendan Heywood b18c503241 MDL-73734 output: Add streaming output api
This adds a new output method which enables a page to fully render a complete
html page and then keep the connection open and stream additional content into
an element anywhere in the document. This enables pages which take some time to
render cleanly without layout bugs and reduces layout shift issues and was
inspired by Facebook BigPipe.
2023-08-28 22:08:08 +10:00
Paul Holden dae1dcc8ae MDL-78835 group: include custom fields in related report entities. 2023-08-28 13:55:59 +02:00
Sara Arjona 67f225429b Merge branch 'MDL-78248' of https://github.com/paulholden/moodle 2023-08-28 13:52:50 +02:00
Sara Arjona 9be5196ea1 MDL-78930 filetypes: Add MIME for PSD and JSON icon
- The PSD icon has been there all this time, but no MIME type was using it.
A new MIME has been added (image/vnd.adobe.photoshop) for the .psd files.
The MIME type for existing PSD files will be also upgraded.

- A new JSON icon has been added. It will be used by the JSON, CSS and SCSS
MIME types.
2023-08-28 13:42:55 +02:00
Sara Arjona 610a70f026 MDL-79108 completion: Display the correct message in default settings 2023-08-28 13:32:15 +02:00
Sara Arjona b6715a7dda MDL-79102 forms: Add uniqueid var to avoid duplicated ids
A new static variable, $uniqueid, has been introduced to the
moodleform class. This enhancement allows for the simultaneous
presence of multiple forms with distinct IDs for action buttons
on a single page, thereby mitigating the accessibility concern
associated with duplicated IDs.
2023-08-28 13:30:39 +02:00
Huong Nguyen 59bed31f53 Merge branch 'master_MDL-67390' of https://github.com/mattporritt/moodle 2023-08-28 16:21:35 +07:00
Jun Pataleta be35034f1c Merge branch 'MDL-76974' of https://github.com/paulholden/moodle 2023-08-28 17:03:27 +08:00
Jun Pataleta ec90b342da MDL-74810 core: get_time_interval_string() improvements
* Add parameter to drop zero time units. So a time interval like
  "3d 0h 0s" will be returned as "3d" only.
* Add parameter to display full format for time units. E.g. Instead of
  "3d 2h", it will be returned as "3 days 2 hours"
* Deprecate unused dateintervaldayshoursmins langconfig string.
2023-08-28 16:40:36 +08:00
Jun Pataleta 81ea8ad220 Merge branch 'MDL-61811-master_enrol_manual_notifyall_not_updating' of https://github.com/vtos/moodle 2023-08-28 16:08:53 +08:00
Ilya Tregubov 27e74b08c2 Merge branch 'MDL-79139' of https://github.com/paulholden/moodle 2023-08-28 15:39:53 +08:00
Ilya Tregubov ccaa0c7143 Merge branch 'MDL-67186_master_v2' of https://github.com/TomoTsuyuki/moodle 2023-08-28 15:20:47 +08:00
Jun Pataleta ae42728bb9 Merge branch 'MDL-74679-master' of https://github.com/whuml/moodle 2023-08-28 11:51:37 +08:00
Laurent David 23caba90bd MDL-78907 mod_bigbluebuttonbn: Get cm when necessary
* The constructor of mod_bigbluebuttonbn\instance was provided with a cm_info.
This forced us to retrieve it whenever we created an instance. The issue is that
sometimes we need all the "other" data but not necessarily the cm_info.
So we now lazy load it.
2023-08-28 05:45:17 +02:00
Laurent David fdaa738bb5 MDL-78907 mod_bigbluebuttonbn: Refactor instance class
* Make the constructor private as it should only be instancied through
static methods
* Do not duplicate the code between get_from_instanceid,
get_from_cmid and get_all_instances_in_course
2023-08-28 05:45:17 +02:00
Matt Porritt 4b556a6840 MDL-79134 Backup: Deprecate MD5 for included user passwords
Prevent backups containing legacy MD5 hashed user passwords
from being added back into the database. Hashes are converted
to random SHA512 hashed passwords upon restore for these backups.
2023-08-28 13:39:42 +10:00
Jun Pataleta 08fd13f79f Merge branch 'MDL-79093-master' of https://github.com/sarjona/moodle 2023-08-28 10:17:35 +08:00
David Woloszyn 585fd545ae MDL-75268 tiny_premium: Add Tiny Premium plugin
As a first round of support for Tiny Premium, plugins with minimal
config have been included for sites with a valid Tiny Cloud API key.
2023-08-28 12:06:06 +10:00
David Woloszyn cd064a40eb MDL-75268 editor_tiny: Add items after specified node 2023-08-28 12:06:06 +10:00
Kevin Percy 3f9dd2f210 MDL-78106 gradereport_grader: Force direction when clicking sort arrow 2023-08-28 10:03:10 +08:00
Kevin Percy a9ea85a15d MDL-78106 gradereport_grader: Fixed sort arrow size in grader report 2023-08-28 10:00:15 +08:00
Michael Hawkins d0fe8d4c21 MDL-78619 theme: Communication button fixes
The footer button was missing some CSS to factor in the blocks drawer.
Also added noreferrer to the window.open call made when clicking the
communication button, to avoid the risks associated with opening in
_blank without removing access to the referrer and opener (noopener is
implicitly defined in modern browsers when noreferrer is set).
2023-08-27 23:10:16 +08:00
Michael Hawkins a3fa3e3fc1 MDL-78619 communication_customlink: Implement custom link provider 2023-08-27 23:10:16 +08:00
Michael Hawkins bfbb314e2f MDL-78619 communication: De-couple room & user management and API fix
Management fix: Although rooms and room users are implemented as
separate provider interfaces, there were still assumptions that
adding/removing rooms would require user handling. Where room_provider
was implemented but room_user_provider was not, that would then result
in either unnecessary ad-hoc tasks, or tasks failing with errors. Now,
checks are in place to avoid these scenarios.

API fix: Previously save_form_data() was being called on the old
provider instead of the newly enabled one, so when switching between
providers the settings would not be correctly applied and the provider
may not function. Now, the object is reloaded and the data is saved correctly.
2023-08-27 23:06:22 +08:00
Michael Hawkins cdf17eb7d5 MDL-78619 behat: Add wwwroot transformation
This will replace #wwwroot# with the value of the wwwroot config.
This is useful where a FQDN within the test instance is required.
2023-08-27 23:06:22 +08:00
dor 940048e8c2 MDL-74828 media_videojs: fix loading icon position for RTL 2023-08-27 16:54:09 +08:00
Andrew Nicols 92117d2bed MDL-79042 filter_mathjax: Notify on render completion 2023-08-26 20:51:39 +08:00
Andrew Nicols e7b5d97c9a MDL-78747 communication_matrix: Correct table name
Note: This feature is currently master-only, and alpha. I have therefore
decided not to migrate data and am just dumping and re-crating the
table.
2023-08-26 14:46:53 +08:00
Jun Pataleta 9bfcd77d51 on-demand release 4.3dev+ 2023-08-26 11:04:43 +08:00
Jun Pataleta d6f6443993 NOBUG: Fixed file access permissions 2023-08-26 11:04:43 +08:00
Jun Pataleta e6dd60f845 NOBUG: Fixed SVG browser compatibility 2023-08-26 11:04:41 +08:00
Jun Pataleta f3c2b6a93a Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-08-26 11:04:40 +08:00
Jun Pataleta 896d5fd05a MDL-79059 core: Use full name as alt text for user picture links
When the user picture is being rendered as a link but the user's full
name is not being included in the link and the alt text turns out to be
empty, we could end up with a link without a discernible text. This is
an accessibility issue that will affect screen reader users. If this is
the case, use the full name as the user picture's alt text.
2023-08-26 10:39:05 +08:00
Jun Pataleta f9c46d0026 MDL-79059 mod_data: Enclose preset options within a fieldset
Enclosing the radio buttons in a fieldset to provide additional context
to the purpose of the fields.
2023-08-26 10:39:05 +08:00
Jun Pataleta 59d5458c7f MDL-79059 mod_data: Fix presets accessibility issues
* Add sr-only column headers for the select and actions columns.
* Define unique IDs for the preset name links using array indices.
* Label the radio buttons via aria-labelledby attribute pointing to
the ID of the preset's link.
2023-08-26 10:39:04 +08:00
Sara Arjona 4f558e3ec3 Merge branch 'MDL-78291-fix' of https://github.com/sarjona/moodle 2023-08-25 19:25:58 +02:00
Sara Arjona 8a40192a84 MDL-78291 behat: Fix behat tests with subpanels 2023-08-25 18:48:14 +02:00
Julien Boulen 57bdedcbe7 MDL-78241 tiny_recordrtc: fix availability conditions 2023-08-25 18:16:28 +02:00
Marina Glancy 4d5c4b471d MDL-79144 hooks: allow hooks to return tags 2023-08-25 13:53:09 +01:00
David Carrillo f0770658fb MDL-77061 badge: Convert "Manage badges" page to use Report Builder
- Manage badges page is now a Report Builder system report to show
the list of site and course badges.
2023-08-25 12:12:37 +02:00
Andrew Nicols eb0b3669c1 MDL-77443 tool_monitor: Simplify placeholder replacement 2023-08-25 16:21:45 +08:00
Stefan Hanauska 42f5b8f450 MDL-77443 tool_monitor: Add course and activity name 2023-08-25 16:21:44 +08:00
Huong Nguyen 394dbffc24 Merge branch 'MDL-79039-master' of https://github.com/andrewnicols/moodle 2023-08-25 14:25:19 +07:00
Andrew Nicols 0c782d8181 MDL-79039 filter_mathjax: Discard text nodes. MathJax can't process them 2023-08-25 14:25:48 +08:00
Sara Arjona e102db1cbc Merge branch 'MDL-78251-master-2' of https://github.com/andrewnicols/moodle 2023-08-25 07:48:13 +02:00
Andrew Nicols 5a811e48d9 MDL-78251 behat: Correct course profile editing resolvers 2023-08-25 13:25:42 +08:00
Huong Nguyen 15aaa09435 MDL-79039 mathjax: Fix variable names 2023-08-25 10:58:30 +07:00
Huong Nguyen 342192561e Merge branch 'MDL-79039-master' of https://github.com/NashTechOpenUniversity/moodle 2023-08-25 10:55:41 +07:00
Jun Pataleta 928ea71887 Merge branch 'MDL-78397' of https://github.com/paulholden/moodle 2023-08-25 11:52:57 +08:00
Jun Pataleta 0ce7bf539e Merge branch 'MDL-78386' of https://github.com/paulholden/moodle 2023-08-25 11:39:55 +08:00
Andrew Nicols 89223fa386 Merge branch 'MDL-79031-master' of https://github.com/NashTechOpenUniversity/moodle 2023-08-25 10:56:14 +08:00
Jun Pataleta 33c8754de9 Merge branch 'MDL-78579' of https://github.com/paulholden/moodle 2023-08-25 10:47:11 +08:00
Jun Pataleta 7b94cd0a4b Merge branch 'MDL-79079' of https://github.com/paulholden/moodle 2023-08-25 10:44:48 +08:00
hieuvu 52a7a71b93 MDL-79031 core_filter: Add new native filterContentRenderingComplete event 2023-08-25 09:36:20 +07:00
Jun Pataleta ac77df0ec7 Merge branch 'MDL-77988' of https://github.com/paulholden/moodle 2023-08-25 10:35:58 +08:00
Matt Porritt fc3fe7d329 MDL-67390 Authentication: Update password hashing to SHA-512
Update user password history tracking to use SHA-512 instead
of bcrypt.
2023-08-25 11:54:05 +10:00
Matt Porritt 07af783b9a MDL-67390 Authentication: Update password hashing to SHA-512
Replace the bcrypt password hashing algorithm with SHA-512.
Existing bcrypt hashes will be updated to SHA-512 when a user
logs in next. Support for old md5 hashes has been removed.
Any reamining md5 hashes are replaced with SHA-512 hashes
from strong random passwords.
2023-08-25 11:53:54 +10:00
Jun Pataleta cdcca40145 Merge branch 'MDL-79015-master-fix' of https://github.com/lameze/moodle 2023-08-25 09:52:25 +08:00
Simey Lameze 50ef8cdd3f MDL-79015 behat: make verification step more specific 2023-08-25 08:38:43 +08:00
Peter Burnett f2e0c35f52 MDL-79169 admin: Fix implicit int cast in maintenance warning 2023-08-25 10:35:46 +10:00
AMOS bot 5d7c0c7b41 Automatically generated installer lang files 2023-08-25 00:12:05 +00:00
Paul Holden c1a3e17a0b MDL-78248 libraries: upgrade to version 4.4.0 of ChartJS. 2023-08-24 17:22:09 +01:00
Andrew Nicols b29b6649fc Merge branch 'MDL-79075-attempt_reviewed' of https://github.com/leonstr/moodle 2023-08-25 00:15:30 +08:00
Andrew Nicols 9bacc7efd8 Merge branch 'MDL-79063-master' of https://github.com/junpataleta/moodle 2023-08-25 00:11:05 +08:00
Andrew Nicols 2c519fab2e Merge branch 'MDL-79073' of https://github.com/paulholden/moodle 2023-08-25 00:06:24 +08:00
Andrew Nicols 5ed90fe39f Merge branch 'MDL-61165-master-fix' of https://github.com/junpataleta/moodle 2023-08-25 00:04:06 +08:00
Andrew Nicols 339f36fae2 Merge branch 'MDL-78811-Master' of https://github.com/aydevworks/moodle 2023-08-25 00:02:13 +08:00
Andrew Nicols 4de7660341 Merge branch 'MDL-78787' of https://github.com/paulholden/moodle 2023-08-24 23:57:46 +08:00
Jun Pataleta da40dfa6b6 MDL-61165 mod_workshop: Bump version to remove legacy scheduled tasks
* We need to bump the plugin version in order for
\core\task\manager::reset_scheduled_tasks_for_component() to be run
and clear the removed legacy scheduled task.
2023-08-24 23:57:08 +08:00
Jun Pataleta bd057ca936 MDL-61165 mod_quiz: Bump version to clear removed legacy scheduled tasks
* We need to bump the plugin version in order for
\core\task\manager::reset_scheduled_tasks_for_component() to be run
and clear the removed legacy scheduled tasks.
2023-08-24 23:57:07 +08:00
Andrew Nicols 108ed280e8 Merge branch 'MDL-79147-master' of https://github.com/ferranrecio/moodle 2023-08-24 23:47:00 +08:00
Andrew Nicols 3667a702db Merge branch 'MDL-75802' of https://github.com/paulholden/moodle 2023-08-24 23:43:44 +08:00
Jun Pataleta 932306b447 Merge branch 'MDL-77917-master' of https://github.com/andrewnicols/moodle 2023-08-24 23:39:10 +08:00
Sara Arjona 556c286863 Merge branch 'MDL-78688' of https://github.com/paulholden/moodle 2023-08-24 17:35:03 +02:00
Andrew Nicols cb1607e62f Merge branch 'MDL-78741' of https://github.com/paulholden/moodle 2023-08-24 23:29:01 +08:00
Sara Arjona bd22b04d30 Merge branch 'MDL-78257' of https://github.com/paulholden/moodle 2023-08-24 17:26:57 +02:00
raortegar d6b8dd892c MDL-76034 mod_data: Add type definitions and return values
Type definitions and return values for methods get_field_class_name() and data_get_field()
2023-08-24 23:23:17 +08:00
Andrew Nicols d38c3dfc8e MDL-77917 communication_matrix: Topic must not be null
The Matrix space/room topic must always be a string. We should normalise
this on the way out of the API.
2023-08-24 23:19:38 +08:00
Sara Arjona f2af6c0fc2 Merge branch 'MDL-78249' of https://github.com/paulholden/moodle 2023-08-24 17:15:21 +02:00
Jun Pataleta 29ec472284 Merge branch 'MDL-53368-master-3' of https://github.com/HuongNV13/moodle 2023-08-24 22:51:26 +08:00
Sara Arjona 999fbc3bdd Merge branch 'MDL-75855' of https://github.com/paulholden/moodle 2023-08-24 16:49:34 +02:00
Sara Arjona a2bcc9f354 Merge branch 'MDL-78965-master' of https://github.com/andelacruz/moodle 2023-08-24 16:38:22 +02:00
Anupama Sarjoshi 597d28de44 MDL-79132 core_admin: Fix PHPUnit tests related to editors sorting 2023-08-24 15:30:49 +01:00
danghieu1407 436a403aef MDL-78874 accessibility: Improve descriptive text for check button 2023-08-24 20:45:56 +07:00
Mark Johnson e81a8381a8 MDL-72321 core: Allow datafilters to be marked required
Required datafilters cannot be removed. There will be no remove button
on the filter row, and the "Clear filters" button will ignore them.
2023-08-24 11:09:37 +01:00
Mark Johnson 1d64f468d1 MDL-72321 core: Allow custom filteroptions to be passed by datafilters
This allows datafilters to include additional fields other than the standard list of selected values.
For example they may wish to include an additional select or checkbox to change how the values are used in the resulting query.
2023-08-24 11:09:34 +01:00
Paul Holden 347810b07f MDL-75802 course: fix Behat scenario for bulk unenrolment. 2023-08-24 10:15:32 +01:00
Huong Nguyen 398bb78fa7 Merge branch 'MDL-78533' of https://github.com/paulholden/moodle 2023-08-24 15:35:14 +07:00
Huong Nguyen dc9b012d81 Merge branch 'MDL-78502' of https://github.com/paulholden/moodle 2023-08-24 15:29:37 +07:00
Huong Nguyen 7370b09777 Merge branch 'MDL-78302' of https://github.com/paulholden/moodle 2023-08-24 15:25:43 +07:00
Huong Nguyen 9e7d90cd04 MDL-53368 block_login: reCaptcha implementation 2023-08-24 15:18:34 +07:00
Huong Nguyen dcc351e61d MDL-53368 recaptcha: Implement compact display mode 2023-08-24 15:18:34 +07:00
Huong Nguyen 753fd18d1b MDL-53368 recaptcha: Fix invalid property call 2023-08-24 15:18:34 +07:00
Huong Nguyen 0cd29afb6f MDL-53368 core_auth: Implement reCaptcha on login page 2023-08-24 15:18:31 +07:00
Jun Pataleta 3f84386a4a Merge branch 'MDL-79015-master' of https://github.com/andelacruz/moodle 2023-08-24 15:52:58 +08:00
Angelia Dela Cruz c3e7065862 MDL-79015 mod_lesson: Behat coverage for lesson with access restriction 2023-08-24 15:45:16 +08:00
Ferran Recio e9bcfeecc8 MDL-79147 core: fix mustache_filesystem_loader load hint 2023-08-24 09:32:29 +02:00
Paul Holden ce1db1499d MDL-78741 files: context report entity data for path and parent.
Allows for better aggregation/grouping of file data by context tree.
2023-08-24 08:02:08 +01:00
Andrew Nicols 5a44292a05 Merge branch 'MDL-78291-master' of https://github.com/ferranrecio/moodle 2023-08-24 14:39:37 +08:00
Angelia Dela Cruz 0cd8ddaba3 MDL-78965 mod_quiz: Behat coverage for quiz with certainty-based marking 2023-08-24 14:37:59 +08:00
Ilya Tregubov 3e8a5c4277 Merge branch 'MDL-78062-master' of https://github.com/call-learning/moodle 2023-08-24 14:14:34 +08:00
Laurent David 79d368e453 MDL-78062 mod_bigblubuttonbn: Add backup for subplugin 2023-08-24 07:35:40 +02:00
Jun Pataleta 51df6abdc7 Merge branch 'MDL-78941-master' of https://github.com/andelacruz/moodle 2023-08-24 13:06:29 +08:00
Andrew Nicols 6d1bd4787f MDL-77917 communication_matrix: Use v1.7 upload content API
Version 1.7 of the Matrix API adds a new endpoint for uploading media.
`_matrix/media/v1/create` and adds a new path parameter to the existing
`_matrix/media/v3/upload` endpoint.
2023-08-24 11:59:30 +08:00
Andrew Nicols 914686bc5e MDL-77917 communication_matrix: Support server API versions
This commit brings in support for multiple versions of the Matrix
specification.

A Matrix server is compromised of a number of individually versioned API
endpoints, for example:

    /_matrix/client/v3/createRoom
    /_matrix/client/v3/rooms/:roomid/joined_members
    /_matrix/media/v1/create

The combination of a large number of these individually versioned
endpoints forms a Matrix Specification version.

For example:

* the /_matrix/media/v1/create endpoint was created for version 1.7 of the
  specification, and does not exist in earlier versions.
* in the future a new behaviour or parameter may be created for the
  `createRoom` endpoint and a new endpoint created at:

    /_matrix/client/v4/createRoom

A single server can support multiple versions of the Matrix
specification. The server declares the versions of the specification
that it supports using a non-versioned endpoint at
`/_matrix/client/versions`.

As a Matrix client, Moodle should:
* query the server version endpoint
* determine the combination of mutually supported Matrix specification
  versions
* create a client instance of the highest-supported version of the
  specification.

For example, if Moodle (Matrix client) and a remote server have the
following support:

```
Moodle:      1.1  1.2  1.3  1.4  1.5  1.6  1.7
Server:  r0  1.1  1.2  1.3  1.4  1.5  1.6
```

The versions in common are 1.1 through 1.6, and version 1.6 would be
chosen.

To avoid duplication and allow for support of future features more
easily, the Moodle client is written as:
* a set of classes named `v1p1` through `v1p7` (currently) which extend
  the `matrix_client` abstract class; and
* a set if PHP traits which provide the implementation for individual
  versioned endpoints.

Each client version then imports any relevant traits which are present
in that version of the Matrix Specification. For example versions 1.1 to
1.6 do _not_ have the `/_matrix/media/v1/create` endpoint so they do not
import this trait. This trait was introduced in version 1.7, so the
trait is included from that version onwards.

In the future, if an endpoint is created which conflicts with an
existing endpoint, then it would be easy to create a new client version
which uses the existing common traits, and adds the new trait.

Each endpoint is written using a `command` class which extends the
Guzzle implementation of the PSR-7 Request interface. This command
class adds support for easy creation of:
* path parameters within the URI
* query parameters
* body parameters

This is done to avoid complex patterns of Request creation which are
repeated for every client endpoint.
2023-08-24 11:59:25 +08:00
Huong Nguyen 95b0ea16f0 Merge branch 'MDL-69187' of https://github.com/paulholden/moodle 2023-08-24 10:38:13 +07:00
Huong Nguyen fd9dc16f85 Merge branch 'MDL-78934' of https://github.com/stronk7/moodle 2023-08-24 10:24:40 +07:00
Jun Pataleta 12e62d58b6 Merge branch 'MDL-61165-master' of https://github.com/andrewnicols/moodle 2023-08-24 11:22:15 +08:00
Jun Pataleta dfadf21e2f Merge branch 'MDL-77640-master-latest' of https://github.com/kevpercy/moodle 2023-08-24 10:23:17 +08:00
Angelia Dela Cruz 09ed13cdc9 MDL-78941 mod_quiz: Behat coverage for student flagging quiz questions 2023-08-24 10:13:36 +08:00
Ilya Tregubov 60693cd9b6 Merge branch 'MDL-77067' of https://github.com/paulholden/moodle 2023-08-24 09:59:58 +08:00
Huong Nguyen 9015554788 Merge branch 'MDL-78843-master' of https://github.com/lameze/moodle 2023-08-24 08:57:12 +07:00
Ilya Tregubov 3a761fd56e Merge branch 'MDL-76295' of https://github.com/paulholden/moodle 2023-08-24 09:54:21 +08:00
Ilya Tregubov e4a1ca2f34 Merge branch 'MDL-78630-master' of https://github.com/cameron1729/moodle 2023-08-24 09:46:47 +08:00
Ilya Tregubov 4bed4ea8f3 Merge branch 'MDL-71212-collapse-expand-all-sections-in-course-index-drawer' of https://github.com/stopfstedt/moodle 2023-08-24 09:22:23 +08:00
Brendan Heywood 482758b1df MDL-79150 cache: Improve requirelockingwrite error 2023-08-24 10:39:12 +10:00
Paola Maneggia aac6bfdf7a MDL-75802 user: Exclude current user from bulk unenrol operation 2023-08-23 22:05:19 +00:00
Paul Holden b9a5a3626e MDL-77067 reportbuilder: indicate when audiences are used in schedules.
Indicate in each audience card whether it's used as part of a report
schedule, and inform user again upon deletion of said audience.
2023-08-23 16:09:17 +01:00
Wolfgang Hummel e892d0bf92 MDL-74679 mod_forum: allows students to send Q&A forum post without dly 2023-08-23 16:57:21 +02:00
Paul Holden 33a63ca639 MDL-76295 reportbuilder: implement default datasource sorting.
Update all existing report sources to use the new default sorting
API from 064eccd4, updating existing tests to assert behaviour.
2023-08-23 15:32:50 +01:00
Shamim Rezaie b3c2a9fd15 Merge branch 'MDL-75318-master' of https://github.com/safatshahin/moodle 2023-08-24 00:21:04 +10:00
Sara Arjona 1d486cb100 Merge branch 'master_MDL-79066' of https://github.com/mattporritt/moodle 2023-08-23 22:15:42 +08:00
Sara Arjona 9cece94b69 Merge branch 'MDL-76982-master' of https://github.com/rjnl/moodle 2023-08-23 22:15:42 +08:00
Sara Arjona 6288ac9838 Merge branch 'MDL-65363-starred-courses-only-include-enroled-courses' of https://github.com/stopfstedt/moodle 2023-08-23 22:15:42 +08:00
Sara Arjona 31b0a9cfc7 Merge branch 'MDL-76902' of https://github.com/paulholden/moodle 2023-08-23 22:15:41 +08:00
Sara Arjona bf41b33259 Merge branch 'MDL-78251-master-2' of https://github.com/andrewnicols/moodle 2023-08-23 22:15:40 +08:00
Paul Holden db5c663fb9 MDL-76902 course: create categories datasource for custom reporting.
New report source based on the course category entity, joined to the
course, cohort and role assignment/user entities to provide data for
the reportbuilder editor.
2023-08-23 13:42:27 +01:00
Paul Holden 72df977729 MDL-79139 check: clarify default user role action text. 2023-08-23 13:25:31 +01:00
Paul Holden 8ca8c92f3c MDL-78397 course: update module name using API after duplicating.
This ensures that various ancillary tasks are also performed (such
as ensuring the gradebook item name matches).
2023-08-23 09:14:04 +01:00
Kevin Percy d5ece4bdbd MDL-77640 output: Fixed HTML validation for select_menu 2023-08-23 15:58:07 +08:00
Kevin Percy f7732a74e4 MDL-77640 gradebook: Updated behat for add items menu 2023-08-23 15:58:07 +08:00
Daniel Ziegenberg 7ff4626871 MDL-61165 core: Final deprecation and removal of legacy cron.
Following MDL-52846 this now finally deprecates and removes the
following classes:
- \core\task\legacy_plugin_cron_task.
- \mod_quiz\task\legacy_quiz_reports_cron
- \mod_quiz\task\legacy_quiz_accessrules_cron
- \mod_workshop\task\legacy_workshop_allocation_cron

Please, use the Task API instead:
https://moodledev.io/docs/apis/subsystems/task

This also removes the corresponding and specific to legacy cron strings
from mod_quiz and mod_workshop.

Following MDL-52846 this now finally deprecates and removes the
functions:
  - cron_execute_plugin_type()
  - cron_bc_hack_plugin_functions()

Please, use the Task API instead:
https://moodledev.io/docs/apis/subsystems/task

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2023-08-23 15:52:52 +08:00
Huong Nguyen 4f30570699 Merge branch 'MDL-78884-master' of https://github.com/sarjona/moodle 2023-08-23 13:36:08 +07:00
Daniel Poggenpohl 079a5fa104 MDL-72359 core: Changed MAX_TIME from 9999999999 to PHP_INT_MAX
This prevents automatic casting from int to double on 32 bit systems
(which have a maximum for integers of 2147483647)

Whilst Moodle will not support 32-bit systems for much longer, this is
still worth doing to prevent future issues.
2023-08-23 14:34:32 +08:00
Andrew Nicols 956fd2bab5 MDL-76092 core_backup: Unit tests for convert_params_to_values 2023-08-23 14:19:05 +08:00
Sara Arjona 63886769dd MDL-79093 completion: Default activity completion order
Default completion settings page should order activities alphabetically by
display name (instead of internal name).
2023-08-23 07:36:55 +02:00
Sara Arjona f2199b5c2d MDL-78179 badges: Clean SESSION when user disconnect backpack
The token information was not being properly cleared from the $SESSION.
As a result, certain errors were occurring when users attempted to
reconnect within the same session.
2023-08-23 07:35:44 +02:00
Sara Arjona 026f377993 MDL-78884 theme: Update references to $icon.png
The *.png files in pix/f folder have been removed, so their references
need to be updated to use the proper SVG file or a different icon, as
happened with logo_uri for oauth2 services.
2023-08-23 07:33:58 +02:00
Sara Arjona 792c711e8a MDL-78884 pix: Remove invalid or deprecated MIME icons
The following MIME icons have been completely removed because they were
not used (they were probably added/kept by mistake):
    - clip-353 --> It was added in MDL-75362 by mistake.
    - edit
    - env
    - explore
    - folder-open
    - help
    - move
    - parent

Apart from removing these MIME icons, a PHPUnit test has been added to
guarantee MIME icons in pix/f are under control and they are only
added/removed when needed.
2023-08-23 07:33:56 +02:00
Sara Arjona 4ab210a823 MDL-78884 theme: Update styles to display new icons properly
- The default box for the icons has been increased from 50px to 52px.
That way, on the course page, the box for the icons has changed from
30px to 32px.
- The icon size has been increased from 16px to 24px on the main course
page and from 24px to 40px on the activity page.
2023-08-23 07:32:49 +02:00
Sara Arjona 07736ae9b7 MDL-78884 pix: Reduce MIME type icons, replacing them
In order to reduce the number of icons for the MIME types, a few
icons have been removed and replaced with their generic from
the existing ones:
- avi -> video
- base -> database
- bmp -> image
- html -> markup
- jpeg -> image
- mov -> video
- mp3 -> audio
- mpeg -> video
- png -> image
- quicktime -> video
- tiff -> image
- wav -> audio
- wmv -> video
2023-08-23 07:32:47 +02:00
Sara Arjona dd354b589a MDL-78884 pix: Replace MIME icons with new SVG files
The old xxxxxxx-yyy.png MIME icon files have been removed and replaced with
the new SVG files created by the UX team.

Special thanks to Sabina Abellán! :-)
2023-08-23 07:30:17 +02:00
Sara Arjona 7430208d56 MDL-78884 files: Deprecate size parameter for icons
The parameter $size of the following functions has been deprecated and is not used any more:
  - file_extension_icon
  - file_file_icon
  - file_folder_icon
  - file_mimetype_icon
  - mimeinfo_from_type
  - url_guess_icon

That way, the sized icons (xxxxxxx-yyy.png) can be removed and replaced by SVG, to make it easier
to keep them updated because once they are replaced, there will only be one single file for each
MIME icon.
2023-08-23 07:30:16 +02:00
Paola Maneggia d2279457f0 MDL-76092 core_backup: Fix PHP8.0 vulnerability convert_params_to_values 2023-08-23 12:21:48 +08:00
Huong Nguyen 20ddfc3aee Merge branch 'MDL-69489-patch' of https://github.com/ilyatregubov/moodle 2023-08-23 10:11:41 +07:00
Ilya Tregubov fac3395464 MDL-69489 mod_lti: Fix query condition
Missing parenthesis added
2023-08-23 10:53:31 +08:00
Ilya Tregubov 31f1b4f62c Merge branch 'MDL-69489-master' of https://github.com/jacdsouza/moodle 2023-08-23 09:35:56 +08:00
Paul Holden 36af5457dc MDL-78787 dml: native casting to char in SQL Server driver.
Ensure the same is used during concatentation to prevent truncation
of data, which was previously set at 255 characters per field.
2023-08-23 00:55:24 +01:00
Rossco Hellmans d0385ed705 MDL-79092 session: fix recentsessionlocks mutated session debugging
In write_close() call update_recent_session_locks() before setting
$sessionatclose so that it includes $SESSION->recentsessionlocks and
doesn't trigger the debugging in check_mutated_closed_session().
2023-08-23 09:29:34 +10:00
Paul Holden 28e1bd37d0 MDL-77988 dml: correct logic when dropping plugin tables.
Comparison of method void return within a conditional didn't make
sense, and the aforementioned method throws an exception on error
anyway which would halt execution.
2023-08-22 21:28:42 +01:00
Paul Holden 8fe1f83fe1 MDL-75855 reportbuilder: don't allow condition/filter duplication.
Custom reports shouldn't allow the same condition and/or filter
instance to exist more that once per report.
2023-08-22 18:47:33 +01:00
Paul Holden 9e68a02458 MDL-79118 output: account for empty node/current URL path element. 2023-08-22 17:55:43 +01:00
Paul Holden c19d9693e9 MDL-78656 output: display menu item titles in primary navigation.
Since custom menu items were merged into the primary navigation/more
menu as part of 56c34d71 and related work, the "title" attribute of
each custom menu item was lost.
2023-08-22 17:29:59 +01:00
Andrew Nicols 1e89462692 MDL-69187 core_file: Unit test for file_get_typegroup string types 2023-08-22 15:57:53 +01:00
Paul Holden b17ee6f4ad MDL-78249 libraries: upgrade to version 6.8.1 of PHP-JWT. 2023-08-22 15:27:13 +01:00
Paul Holden 3ca41c77e4 MDL-76902 reportbuilder: entity method for defining table join alias. 2023-08-22 15:16:31 +01:00
Sara Arjona cccc00954d on-demand release 4.3dev+ 2023-08-22 15:51:24 +02:00
Paul Holden b30245b3e2 MDL-76974 javascript: convert remaining uses of old preferences API.
Implement component preference definition callbacks, update JS code
to use the `core_user/repository` module instead of the now deprecated
API.
2023-08-22 14:43:34 +01:00
Paul Holden d096c60e0c MDL-76974 user: deprecate old method of setting user preferences.
The `M.util.set_user_preference` method (plus accompanying helpers)
are now deprecated, in favour of the `core_user/repository` module
to achieve the same.

Update current implementation to proxy calls to the new API ensuring
backwards compatibility, while emitting copious developer debugging.
2023-08-22 14:42:58 +01:00
Jackson D'souza 480114fc96 MDL-69489 mod_lti: Make LTI only available to specific course categories
* Add new table for LTI types course categories
* Update LTI add / update form to restrict tool availablily in selected course categories
* Bumped version
2023-08-22 12:53:07 +01:00
Paul Holden e66f04e61d MDL-69187 files: normalize retrieval of mimetypes from groups array.
Ensure that the following both return consistently, so that filepicker
form elements behave the same for each when defining "accepted_types":

    '.html, .txt'
    ['.html', '.txt']
2023-08-22 09:56:06 +01:00
Paul Holden 3b525fa234 MDL-79073 question: detect missing context when deleting question. 2023-08-22 09:41:15 +01:00
Ferran Recio fb796f9e37 MDL-78956 core_courseformat: swap bulk availability modal radio and icon 2023-08-22 10:07:37 +02:00
Jun Pataleta 47ca66a776 Merge branch 'MDL-78097-fix' of https://github.com/sarjona/moodle 2023-08-22 15:52:29 +08:00
Ferran Recio 174125dabc MDL-78291 core_courseformat: fix cm visibility behats 2023-08-22 09:39:13 +02:00
Ferran Recio ee2e084e89 MDL-78291 core_courseformat: availability in activity action menu 2023-08-22 09:39:13 +02:00
Sara Arjona bc67e79cc7 Merge branch 'MDL-78100-int' of https://github.com/Chocolate-lightning/moodle 2023-08-22 09:17:41 +02:00
Paul Holden f68e0b9d00 MDL-78386 search: specify correct parameter type for search area. 2023-08-22 08:11:56 +01:00
Mathew May 8237f98814 MDL-78100 gradereport_grader: Behat filter clicking 2023-08-22 14:30:57 +08:00
Sara Arjona 8db9d6dd02 MDL-78097 grade: Improve behat to add columns to compare with
Until MDL-75081 is fixed, you cannot assert table contents by specifying
just a single column.
2023-08-22 08:12:28 +02:00
Kevin Percy 4f9e931993 MDL-77640 gradebook: Moved add items to new tertiary nav dropdown 2023-08-22 11:50:34 +08:00
Jun Pataleta 9b2917f183 Merge branch 'MDL-78468-master' of https://github.com/meirzamoodle/moodle 2023-08-22 11:00:11 +08:00
Ilya Tregubov d7ad0f8711 Merge branch 'MDL-79089' of https://github.com/paulholden/moodle 2023-08-22 10:51:53 +08:00
Meirza 38a0173e61 MDL-78468 admin: Removed the configs while upgrading 2023-08-22 09:47:39 +07:00
Meirza 4cfa361e0a MDL-78468 admin: Removed devicedetectregex theme setting 2023-08-22 09:47:36 +07:00
Meirza 352e427520 MDL-78468 admin: Removed enabledevicedetection theme setting 2023-08-22 09:30:13 +07:00
Safat b31b060557 MDL-75318 core: Behat coverate for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat 37266f177c MDL-75318 core: Add navigation for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat 4b9438431e MDL-75318 core: JS updates for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat 78bc87619b MDL-75318 core: Event update to share course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat 17b565f957 MDL-75318 core: External services for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat 933ab5201f MDL-75318 core: Backend api for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat a0238f277d MDL-75318 core: Capability to share course to MoodleNet 2023-08-22 11:00:06 +10:00
Paul Holden ae57526ed0 MDL-79017 core: re-factor method to unserialize array.
We can use the existing helper for object unserialization as the
base for this method, rather than manual string parsing.
2023-08-21 20:29:36 +01:00
Paul Holden 57a12c73f9 MDL-79089 tiny_html: define help link text language string. 2023-08-21 15:55:05 +01:00
Leon Stringer b3eed7cc95 MDL-79075 quiz: Fix transposed user IDs
In the description of "Quiz attempt reviewed" events the user IDs of
the reviewer (typically the teacher) and the reviewee (typically the
student) were the wrong way round.
2023-08-21 15:53:04 +01:00
Paul Holden f9bf57c269 Merge branch 'MDL-79071-master' of https://github.com/junpataleta/moodle 2023-08-21 15:32:42 +01:00
hieuvu 80c9de3d00 MDL-79039 mathjax: Re-write yui javascript to AMD module 2023-08-21 19:43:45 +07:00
Andrew Nicols c7b1cf2651 MDL-78251 tiny: Reduce use of UI for setting test expectations 2023-08-21 20:23:19 +08:00
Paul Holden 0d4d8f8a8c MDL-78707 forms: improve form container collapsing mechanism.
By using a more explicit selector for matching containers we avoid
previous problems such as incorrect count, and collapsing of elements
that had the same class name.
2023-08-21 12:38:45 +01:00
Sara Arjona 316cf48a42 Merge branch 'MDL-78097-min' of https://github.com/Chocolate-lightning/moodle 2023-08-21 13:22:04 +02:00
Ferran Recio e715b7a791 MDL-78954 theme_boost: move action menu css to separate file 2023-08-21 13:19:28 +02:00
Ferran Recio 7fea815e0f MDL-78954 output: remove default chevron from kebab menus
Action menus have a method set_kebab_trigger that converts the action
menu button into a proper kebab icon. However, this method does not
remove the standard bootstrap dropdown chevron and the visual
information is replicated (kebab icon + chevron). For now this method is
only used a couple of times but in every case (grade, course...) they
add unnecessary adhoc css rules to hide the chevron when it should be
the standard behaviour. This commit remove the chevron when the action
menu is displayed as a kebab menu.
2023-08-21 13:19:22 +02:00
Sara Arjona b91f34305b Merge branch 'MDL-78531-master' of https://github.com/aanabit/moodle 2023-08-21 13:09:50 +02:00
Paul Holden b0d1d885b1 MDL-79079 grade: prevent default click event when toggling category. 2023-08-21 12:00:45 +01:00
Paul Holden bdfe13c4fd MDL-78533 grade: relax param type of itemname in external structures.
Ensure it conforms to the same format as allowed for course modules.
2023-08-21 10:53:40 +01:00
Paul Holden 604f3fbab9 MDL-78502 grade: consider only those export formats user can access. 2023-08-21 10:46:53 +01:00
Paul Holden 8462e7880d MDL-78615 cache: display failure notifications deleting lock/store. 2023-08-21 10:45:11 +01:00
Ferran Recio 729937c89a MDL-78954 theme_boost: action menu subpanel styling 2023-08-21 10:39:16 +02:00
Dan Marsden 2b5931ddac MDL-63539 mod_scorm: AICC multi-row content not saving correctly. 2023-08-21 19:05:27 +12:00
Daniel Poggenpohl 1f2f32824d MDL-77657 theme: Corrected return type 2023-08-21 08:39:54 +02:00
Daniel Poggenpohl 02716c8ea6 MDL-77657 theme: Fix get_pre_scss_code load order
This led to problems with grandchild themes,
depending on their direct parent's prescsscallback.
2023-08-21 08:39:50 +02:00
Daniel Poggenpohl 7483bdd908 MDL-77657 theme: Fix get_extra_scss_code load order
This led to problems with grandchild themes,
depending on their direct parent's extrascsscallback.
2023-08-21 08:39:45 +02:00
Huong Nguyen 5c7a2f6099 Merge branch 'MDL-65887-master' of https://github.com/lucaboesch/moodle 2023-08-21 10:56:54 +07:00
Huong Nguyen ff8b735d4f Merge branch 'MDL-78436-master' of https://github.com/kevpercy/moodle 2023-08-21 09:45:57 +07:00
Huong Nguyen 2c3c259b5a Merge branch 'MDL-78100' of https://github.com/Chocolate-lightning/moodle 2023-08-21 09:40:33 +07:00
Andrew Nicols 24ce17d13e MDL-78251 behat: Add new selectors for profile page 2023-08-20 23:09:23 +08:00
Andrew Nicols 44f0b4beef MDL-78251 editor_tiny: Update TinyMCE to 6.6.2
Originally I changed the compiled output of TinyMCE from es2015 to es6
to try and allow our own requirejs system to serve the content.

This is a change in the TinyMCE repository (or our copy of it).

Unfortunately this turned out to not be possible, but I never got around
to updating the configuration to stop doing so.

Whilst working on this issue, I've removed this change to module
compilation, which brings us closer in line to Tiny core, and simplifies
the upgrade process.
2023-08-20 23:09:04 +08:00
vtos 22129e914e MDL-61811 enrol_manual: fixed updating of 'notifyall' field
When updating a manual enrolment instance, the value of 'notifyall' field must be calculated automatically based on the value of
'expirynotify' field. The relevant plugin's method missed that, thus, the value of 'notifyall' field was never updated when
editing a manual enrolment instance and changing the 'expirynotify' setting.

A functional test has been added to test the entire behaviour of the relevant plugin's method.
2023-08-20 12:28:15 +02:00
Stefan Topfstedt 7b04638c52 MDL-71212 core_course: adds controls to the course index drawer. 2023-08-18 11:00:55 -07:00
Stefan Topfstedt 4f95290852 MDL-65363 block_starredcourses: only list enroled courses
Filter out any starred courses that the logged-in user is not enroled in.
2023-08-18 10:36:05 -07:00
Eloy Lafuente (stronk7) 731f64226d MDL-78934 behat: Replace all the rest of goutte by browserkit
Basically all them are comments.

Only remaining occurrence remaining is
in composer.lock file, because friends-of-behat/mink-extension
still has the old goutte as dev requirement, but that doesn't
affect us at all (no goutte is installed anymore, see the vendor
directory and/or the lock file).
2023-08-18 13:59:17 +02:00
Eloy Lafuente (stronk7) 7d37b29248 MDL-78934 behat: Move to BrowserKit in extension and other custom code 2023-08-18 13:59:17 +02:00
Eloy Lafuente (stronk7) 11b7ff678d MDL-78934 behat: Move from mink goutte to browserkit driver
In order to get compatibility with PHP 8.1 there are 2 options:

1) Move to the Goutte 2 mink driver, that uses Goutte 4.
2) Move to the BrowserKit mink driver.

While 1) could sound like the easier alternative, and that is
what we are doing right now, there are a few points to take into consideration.

a) Goutte 4 is a complete wrapper over BrowserKit. 100%. See its
   source code: https://github.com/FriendsOfPHP/Goutte/blob/master/Goutte/Client.php
b) The mink extension still doesn't support Goutte 4, but supports
   BrowserKit. See https://github.com/FriendsOfBehat/MinkExtension (PR#16)
   (we could workaround this by forking the package again)
c) Last, but not least, recently (June 2023) both the MinkGoutteDriver
   and Goutte itself have been archived/abandoned:
   - https://packagist.org/packages/behat/mink-goutte-driver
   - https://packagist.org/packages/fabpot/goutte

So, given the points above, this is an attempt to move away
completely from Goutte and straight use the BrowserKit alternative
that, in practice, is the very same code that we are already using
(you can see that, in the .lock changes there isn't any new thing
being installed, because, as said, we are using it already).

Let's see how complex it is, I imagine it won't be hard. Surely killing
all references everywhere about Goutte will be the most complex task.
2023-08-18 13:59:17 +02:00
Jun Pataleta ec02ec88f3 MDL-79071 course: An empty alt text is needed for decorative images 2023-08-18 17:03:05 +08:00
Jun Pataleta 13a8dff553 MDL-79063 course: Use .text-body for 'disabled' elements in move modal
Using the .disabled class for the course module or section that is
being moved does not have sufficient colour contrast against the
background, especially when it is being highlighted.
So instead of using .disabled, just use Bootstrap classes .text-body
and .font-italic which renders the cm/section to be moved in normal
font colour while preserving its italicised look.
2023-08-18 16:28:45 +08:00
Mikel Martín ea3ecbb3ab MDL-74429 core_form: Fix element url input overflow 2023-08-18 10:11:52 +02:00
Jun Pataleta 294ea131a7 MDL-79063 theme_boost: Match .disabled font colour with .text-muted
* For consistency
* The font colour for .text-muted meets a contrast ratio of 4.69:1
which meets WCAG 2.1 Level AA success criterion for minimum contrast.
2023-08-18 16:02:13 +08:00
Luca Bösch daffea8964 MDL-65887 workshop: Recalculate + fill the 'Grade for assessment' column 2023-08-18 08:58:35 +02:00
Rajneel Totaram ff186194c9 MDL-76982 mod_book: Flip chapter navigation icons in RTL languages 2023-08-18 18:53:10 +12:00
Rajneel Totaram e6316d5285 MDL-76982 mod_book: Remove unused styles 2023-08-18 18:53:10 +12:00
Rajneel Totaram d2b80feee4 MDL-76982 theme_classic: Fix positioning of sticky previous/next buttons 2023-08-18 18:53:10 +12:00
Rajneel Totaram bfea7da668 MDL-76982 mod_book: Make previous/next buttons sticky 2023-08-18 18:53:10 +12:00
Amaia Anabitarte baecc57095 MDL-78531 administration: New default course settings section 2023-08-18 08:49:09 +02:00
Matt Porritt fb4ffa5d53 MDL-79066 TinyMCE: Add fullscreen button
Enable the existing fullscreen functionality to be able
to be accessed from a button on the default editor toolbar.
2023-08-18 16:02:10 +10:00
Ilya Tregubov e998f14061 weekly release 4.3dev+ 2023-08-18 11:23:49 +08:00
Ilya Tregubov 0b5d35856d NOBUG: Fixed file access permissions 2023-08-18 11:23:49 +08:00
Eloy Lafuente (stronk7) 8e5d5ad8db Merge branch 'MDL-78684-master-fix-2' of https://github.com/lameze/moodle 2023-08-17 19:54:39 +02:00
Eloy Lafuente (stronk7) 6b7816befd Merge branch 'MDL-78684-master-fix' of https://github.com/junpataleta/moodle 2023-08-17 19:46:42 +02:00
Jun Pataleta ea1a3e0749 MDL-78684 gradereport_grader: Increase window size during Behat run 2023-08-17 21:32:54 +08:00
Simey Lameze 79488ae624 MDL-78684 behat: fix behat failures 2023-08-17 20:37:40 +08:00
Simey Lameze 1d3fc472af MDL-78684 behat: remove tab and set the focus to the user search field
This commit also does few things:
- Adds the I change window size step back to avoid future randoms.
- Increase the download limit size on a couple of download steps that
have been failing randomly.
- Adds missing @core_grades to tertiary_navigation_searching.feature.
2023-08-17 13:49:12 +02:00
Jun Pataleta 04ee9570ac Merge branch 'MDL-75762-master' of https://github.com/laurentdavid/moodle 2023-08-17 09:20:12 +02:00
Jun Pataleta 8a75ff0950 Merge branch 'MDL-78938-master' of https://github.com/andrewnicols/moodle 2023-08-17 09:13:20 +02:00
Ilya Tregubov fc39277058 Merge branch 'MDL-78974' of https://github.com/paulholden/moodle 2023-08-17 09:13:20 +02:00
Ilya Tregubov d7461c9eff Merge branch 'master_MDL-78698' of https://github.com/mattporritt/moodle 2023-08-17 09:13:18 +02:00
Andrew Nicols dcd6ebb7da Merge branch 'MDL-77695-master' of https://github.com/lameze/moodle 2023-08-17 09:12:36 +02:00
Andrew Nicols edf29562cc Merge branch 'MDL-78576-master' of https://github.com/snake/moodle 2023-08-17 09:12:36 +02:00
Andrew Nicols 4fcf078ef9 MDL-76557 enrol_lti: Fix unit test docs and convert to provider 2023-08-17 09:12:36 +02:00
Andrew Nicols 2f5a71f899 Merge branch 'MDL-76557-sync-grades-6' of https://github.com/ishatalkin/moodle 2023-08-17 09:12:36 +02:00
Andrew Nicols b71bec8475 Merge branch 'MDL-78684-master' of https://github.com/andelacruz/moodle 2023-08-17 09:12:36 +02:00
Andrew Nicols ad923a4d96 MDL-77381 qengine: Correct coverage for new test 2023-08-17 09:12:36 +02:00
Andrew Nicols c622af3dba Merge branch 'MDL-77381-master' of https://github.com/ScottVerbeek/moodle 2023-08-17 09:12:36 +02:00
Andrew Nicols cff6c75289 Merge branch 'MDL-71331' of https://github.com/paulholden/moodle 2023-08-17 09:12:36 +02:00
Andrew Nicols 339820fad1 Merge branch 'MDL-71196' of https://github.com/paulholden/moodle 2023-08-17 09:12:34 +02:00
Andrew Nicols a929d314d0 MDL-78613 core: Add tiny_html to the list of standard plugins 2023-08-17 09:11:46 +02:00
Andrew Nicols b8f94dffdd Merge branch 'master_MDL-78613' of https://github.com/mattporritt/moodle 2023-08-17 09:11:46 +02:00
Andrew Nicols ff3393bec8 Merge branch 'master_MDL-50160' of https://github.com/mattporritt/moodle 2023-08-17 09:11:46 +02:00
Jun Pataleta 3cfaa97d63 Merge branch 'MDL-78922-master' of https://github.com/ilyatregubov/moodle 2023-08-17 09:11:46 +02:00
Sara Arjona 0d86da6163 Merge branch 'MDL-76408' of https://github.com/stronk7/moodle 2023-08-17 09:11:45 +02:00
Ilya Tregubov f511fffbd3 Merge branch 'MDL-78801-master' of https://github.com/jleyva/moodle 2023-08-17 09:11:45 +02:00
Huong Nguyen ca3c8f70a1 Merge branch 'MDL-78746-master' of https://github.com/aanabit/moodle 2023-08-17 09:11:44 +02:00
Huong Nguyen 59a6134cca Merge branch 'MDL-49827-noemailever-ui' of https://github.com/NagaSirishaGarapati/moodle 2023-08-17 09:10:53 +02:00
Jun Pataleta 2870637daa Merge branch 'MDL-78505/master' of https://github.com/skodak/moodle 2023-08-17 09:10:53 +02:00
Huong Nguyen 8ecb766d53 Merge branch 'MDL-78753-master' of https://github.com/snake/moodle 2023-08-17 09:10:52 +02:00
Huong Nguyen e1a6cdba0c Merge branch 'MDL-71909' of https://github.com/NeillM/moodle 2023-08-17 09:10:52 +02:00
Andrew Nicols be3878c34e MDL-43195 core: Version/upgrade bump 2023-08-17 09:10:52 +02:00
Andrew Nicols c3237c9ef6 Merge branch 'MDL-43195-master' of https://github.com/srobotta/moodle 2023-08-17 09:10:52 +02:00
Sara Arjona e914149b88 Merge branch 'MDL-78678-master' of https://github.com/aanabit/moodle 2023-08-17 09:10:52 +02:00
Sara Arjona df5d62eac2 Merge branch 'MDL-78844' of https://github.com/paulholden/moodle 2023-08-17 09:10:51 +02:00
Sara Arjona 570cd5748b Merge branch 'MDL-78666-master' of https://github.com/roland04/moodle 2023-08-17 09:09:16 +02:00
Sara Arjona 871e82c197 Merge branch 'MDL-78203-master' of https://github.com/ferranrecio/moodle 2023-08-17 09:09:16 +02:00
Sara Arjona 2bb12d9e2c Merge branch 'MDL-78758' of https://github.com/paulholden/moodle 2023-08-17 09:09:16 +02:00
Sara Arjona a1f108a996 Merge branch 'MDL-78761' of https://github.com/paulholden/moodle 2023-08-17 09:09:15 +02:00
Sara Arjona 272109c19a Merge branch 'MDL-78858' of https://github.com/paulholden/moodle 2023-08-17 09:09:15 +02:00
Mathew May b1063f5891 MDL-78097 grade: Allow the initials bar to pass current page params 2023-08-17 09:41:53 +08:00
Mathew May 9f5e343d73 MDL-78100 gradereport_grader: Clear all button to reset filters 2023-08-17 09:00:07 +08:00
Jake Dallimore 42c24a3223 MDL-78576 mod_lti: fail launch early when preconfigured tool not found
In the case where the instance is associated with a preconfigured tool
and where that tool type has since been removed, throw an exception
early.
2023-08-16 23:51:31 +08:00
Jake Dallimore 3a1db3cc47 MDL-78576 mod_lti: improve course tool deletion with contextual messages
Present different deletion messages depending on whether the tool has
usages or not.
2023-08-16 23:51:31 +08:00
Jake Dallimore e555984880 MDL-78576 mod_lti: move count subselect into report base fields
This gets around a limitation of the RB; its inability to use a column
subselect value in another column. This change permits the use of the
count in more than just the 'usage' column, as the row_callback is able
to set an instance var, usable by other column callbacks.
2023-08-16 23:51:31 +08:00
Andrew Nicols 83050a2fb0 MDL-78938 course: Wrap manual completion toggle in pending
This commit makes two changes to reduce random failures in behat:
- wrap the toggling of manually configured completion in pendingjs
- set the loading spinner content without forcing the completion toggle
  ws to wait for the loading spinner to update.
2023-08-16 20:01:29 +08:00
Andrew Nicols 1add591221 MDL-78938 report_progres: Wrap completion status update in pending 2023-08-16 20:00:59 +08:00
Ilya Tregubov 8490867291 MDL-78922 core_grades: Add missed element to category modal. 2023-08-16 16:44:00 +08:00
Simey Lameze 74b25ba5fd MDL-77695 behat: use automatic completion to award badges 2023-08-16 11:03:46 +08:00
Petr Skoda 989636b0de MDL-78505 core: stop mangling existing Mardown in text editors
The problem is that HTML Purifier is not compatible with Markdown,
that means we cannot sanitise Markdown texts before editing.

Luckily Markdown has to use plain text editor which does not have
XSS problems.

The only tiny downside is that Markdown cannot be allowed
in "trust text" areas any more.
2023-08-15 14:26:59 +02:00
Petr Skoda a50c2d4746 MDL-78505 Revert "MDL-32114 form: markdown must be preserved on saving post"
This partially reverts commit 4a31dd69d6.
2023-08-15 14:26:59 +02:00
Jake Dallimore 1e886c375c MDL-78753 mod_lti: fix access control for LTI External tools page
To view this page, the user must be able to use preconfigred tools in
the course. This is controlled by the 'mod/lti:addpreconfiguredinstance'
capability. The capability 'mod/lti:addcoursetool' isn't required to
view the page but does add extra functionality to the page.
2023-08-15 18:03:43 +07:00
ishatalkin d9e182b5c6 MDL-76557 enrol_lti: sync_grades accepts status codes 200,201,202,204 2023-08-15 12:25:06 +03:00
Kevin Percy 7db066a823 MDL-78436 editor_tiny: mform disabledIf works with TinyMCE 2023-08-15 14:15:07 +08:00
Kevin Percy d949243af7 MDL-78436 gradebook: Require override to add feedback 2023-08-15 14:13:03 +08:00
Sirisha Garapati 5c203e8dc3 MDL-49827 core: Expose the noemailever config in the admin UI 2023-08-15 14:47:20 +10:00
Cameron Ball 230fcddd62 MDL-78630 auth: Display lock/unlock messages 2023-08-15 10:59:09 +08:00
Jake Dallimore f645d21da1 MDL-78753 mod_lti: use course visibility named constant in report params 2023-08-15 09:20:44 +08:00
Stephan Robotta aafbdf7a6b MDL-43195 license: upgrading cc core licenses to version 4.0
The short name of the cc licenses are trailed with a suffix containing
the version number (current 3.0 and 4.0). The old cc* licenses become
the new cc-*-3.0 licenses and are disables, because the new cc*-4.0
licenses are the current ones.
2023-08-14 22:53:57 +02:00
Dale Davies af91ae626a MDL-76865 core: Check lock state before attempting to acquire a lock 2023-08-14 12:34:14 +01:00
Sara Arjona 3d8566250a Merge branch 'MDL-78700-tidy_no_clean' of https://github.com/leonstr/moodle 2023-08-14 09:12:24 +02:00
Laurent David 1558cd4bcf MDL-75762 theme_boost: Fix popover on large pages
* On the grader report the help button popover is cut and some of it
is offscreen. This patches fixes the footer help button popover
layout.
2023-08-14 07:56:54 +02:00
Ferran Recio b594536ef0 MDL-75762 gradereport_grader: fix sticky headers 2023-08-14 07:56:54 +02:00
Ferran Recio c7e9af30df MDL-75762 theme_boost: fix sticky footer page scroll 2023-08-14 07:23:12 +02:00
Laurent David 310122010e MDL-75762 core_courseformat: Fix course menu when back
* When we select an activity in a course and go to its page, the
back button recovers the scroll position correctly but should
also recover the course menu position

Note: for now the menu position is the topmost item in the page
2023-08-14 07:23:12 +02:00
Laurent David da2f2c9c45 MDL-75762 core_courseformat: Fix accessibility issue
* Reverse the changes in MDL-74740 to fix left drawer issue (drawer
was scrolling with the page)
2023-08-14 07:23:12 +02:00
Laurent David cced0e77f6 MDL-75762 core_courseformat: Use page scroll instead of section
* The scroll value is not restored when we navigate into activities as only a
section of the page was scrolled.
* Remove the overflow for the page section so the full page is scrolled
* Restore side menu navigation synchronisation
2023-08-14 07:22:06 +02:00
Jun Pataleta 32d95690c0 Merge branch 'MDL-78927-master' of https://github.com/sammarshallou/moodle 2023-08-14 11:55:24 +08:00
Jun Pataleta 478abd671f on-demand release 4.3dev+ 2023-08-14 10:56:29 +08:00
Ferran Recio 5151dc54f0 MDL-78203 behat: adding subpanels to action menu step 2023-08-11 17:24:18 +02:00
Ferran Recio fc37e6ca92 MDL-78203 lib: document new components 2023-08-11 17:24:18 +02:00
Ferran Recio cb541081bd MDL-78203 core_courseformat: groupmode action menu item 2023-08-11 17:24:18 +02:00
Paul Holden ce8397f7ad MDL-78974 themes: define removedprimarynavitems theme config property.
All configurable theme config properties must be defined at the class
level, lest PHP 8.2 complain about creation of dynamic properties.
2023-08-11 13:38:02 +01:00
Paul Holden a06ec5dd06 MDL-78980 admin: ensure all values for multiselect presets are used.
Previously, just the first value was selected. Instead defer to the
implementation in the base class for `set_value`.
2023-08-11 10:43:29 +01:00
Amaia Anabitarte 269f64b8bf MDL-78678 course: Highlight all types of modules when scrolling 2023-08-11 11:30:10 +02:00
Amaia Anabitarte 040a27fb76 MDL-78746 core_completion: Improve completion reminder information 2023-08-11 11:16:35 +02:00
Amaia Anabitarte 36b865b3d9 MDL-78746 formslib: add variables to addHelpButton()
addHelpButton() function should allow to get variables to pass to get_string
to improve help button text.
2023-08-11 11:13:29 +02:00
Jun Pataleta c6817e45be MDL-78983 core: Preserve default behaviour of flipping question icon
Introduce a lang string `questioniconfollowlangdirection` that will
allow the current behaviour of displaying the question mark icon
in RTL languages in the same manner as the current language.
2023-08-11 16:10:14 +07:00
Huong Nguyen cef4a4e5e2 Merge branch 'MDL-78983-master' of https://github.com/junpataleta/moodle 2023-08-11 12:52:56 +07:00
Jun Pataleta 001b299eb2 MDL-78983 core: Fix question mark icon direction flipping
This fixes the changes made in MDL-75047:
* Change `thisicondirection` langconfig string to a more specific one
  like `questionicondirection`.
* Use existing direction string value `ltr` for the value of
  `questionicondirection`. Also add a comment to at least provide some
  form of documentation for it.
* Improve the logic for applying the horizontal flipping class for the
  question icon:
  - Check first if the icon is a question icon
  - Flip the icon if `questionicondirection` is set to `rtl`.
2023-08-11 11:47:26 +08:00
Eloy Lafuente (stronk7) 8a6cce03f3 MDL-76408 gha: Move "highest" runs from php81 to php82
Note that, for windows php82, we need to have the php-zip extension
explicitly added. So we are adding it too.

From the manual:
  "As of PHP 8.2.0, php_zip.dll DLL must be enabled in php.ini.
  Previously, this extension was built-in."
2023-08-10 19:11:23 +02:00
Huong Nguyen 57ae65f514 weekly release 4.3dev 2023-08-10 22:50:44 +07:00
Huong Nguyen 85ea9267a9 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-08-10 22:50:41 +07:00
sam marshall 71999958f9 MDL-78927 core_user: Profile page missing breadcrumbs if no id= 2023-08-10 15:50:33 +01:00
Ilya Tregubov 25312f1692 MDL-78790 gradereport_grader: Fix sorting. 2023-08-10 18:32:23 +07:00
meirzamoodle 3d3dd827fa MDL-78685 auth_oauth2: Added logged-in status check 2023-08-10 18:32:23 +07:00
Jun Pataleta ad81e6f315 Merge branch 'MDL-78561-master' of https://github.com/kevpercy/moodle 2023-08-10 18:32:23 +07:00
Jun Pataleta 582f970795 Merge branch 'MDL-78957' of https://github.com/stronk7/moodle 2023-08-10 18:32:22 +07:00
Jun Pataleta e99eacb4f6 MDL-78528 course: Use h2 to avoid skipped headings
Use h2 headings instead of h3 for the activity headings to avoid having
skipped headings on the Default activity completion page.
2023-08-10 18:32:22 +07:00
Jun Pataleta 44787c35bc Merge branch 'MDL-78528-master' of https://github.com/sarjona/moodle 2023-08-10 18:32:22 +07:00
Jun Pataleta 4ef1f2fabd Merge branch 'MDL-78962' of https://github.com/timhunt/moodle 2023-08-10 18:32:22 +07:00
Jun Pataleta c3a27a0070 Merge branch 'MDL-77817-master' of https://github.com/meirzamoodle/moodle 2023-08-10 18:32:15 +07:00
Jun Pataleta ddab676930 Merge branch 'MDL-78674-master' of https://github.com/junpataleta/moodle 2023-08-10 18:31:52 +07:00
Ilya Tregubov 04cdf6889d Merge branch 'MDL-78939' of https://github.com/paulholden/moodle 2023-08-10 18:31:51 +07:00
Paul Holden b417f1edf2 MDL-78790 gradereport_grader: normalise report sort parameter safely. 2023-08-10 18:31:51 +07:00
Paul Holden ff75f4c675 MDL-78871 gradereport_grader: capability check getting report users. 2023-08-10 18:31:51 +07:00
Sara Arjona 769e915a8f Merge branch 'MDL-76123' of https://github.com/paulholden/moodle 2023-08-10 18:31:51 +07:00
Jun Pataleta b8a93b921b Merge branch 'MDL-78713-master' of https://github.com/snake/moodle 2023-08-10 18:31:51 +07:00
Jun Pataleta ec200c0e6c Merge branch 'MDL-77378_master_v3' of https://github.com/TomoTsuyuki/moodle 2023-08-10 18:31:50 +07:00
Michael Hawkins b50d0532e5 MDL-78763 tool_policy: Initialise returnurl as a moodle_url in viewall 2023-08-10 18:31:50 +07:00
Paul Holden 092273751b MDL-78792 message: access checks in processor fragment callback. 2023-08-10 18:31:50 +07:00
raortegar 058b830b07 MDL-74289 lib: Improve the proxy bypass matching 2023-08-10 18:31:44 +07:00
Mikel Martín fd48f18ef9 MDL-78666 core_courseformat: Add empty state in conditions dialog 2023-08-10 12:52:07 +02:00
Rajneel Totaram fc495744a5 MDL-78966 theme: Fix site event icon size in upcoming events block 2023-08-10 19:22:17 +12:00
Kevin Percy 14b1796860 MDL-78561 grade: Deprecate grade_helper::get_lang_string() 2023-08-10 11:39:50 +08:00
Jun Pataleta b2279ec1d7 MDL-78674 calendar: No need to call get_course_and_cm_from_instance()
The course ID and CM id can already be fetched from the event object.
2023-08-10 09:37:37 +08:00
Santosh Nagargoje 51267e5590 MDL-78674 calendar: Added fix to rebuild module cache in calendar 2023-08-10 09:34:51 +08:00
ScottVerbeek a3b02e0c6a MDL-77381 question engine: don't query empty arrays 2023-08-10 08:09:16 +10:00
Tim Hunt 788580c9dd MDL-78962 core/loadingicon: remove jQuery requirement in the API 2023-08-09 21:10:13 +01:00
sam marshall 93edfc5729 MDL-32278 core: print_object - handle recursion, improve formatting
A new implementation for print_object automatically prevents infinite
recursion, and allows users to choose which classes to expand. When
in web view, it defaults to a pretty-printed output using Bootstrap
classes.
2023-08-09 15:07:48 +01:00
Eloy Lafuente (stronk7) 57c2397400 MDL-78957 libraries: Fix php82 undefined property deprecation
This was detected only in master (4.3dev) because MDL-40084
added a unit test covering it. But the very same patch is
needed in 402_STABLE, no matter it's not covered there.
2023-08-09 15:27:49 +02:00
Paul Holden c9f689ae6c MDL-78844 reportbuilder: external validate system report access method. 2023-08-09 13:49:27 +01:00
Paul Holden 8bfa8e35e9 MDL-78257 libraries: upgrade to version 4.7.2 of axe-core. 2023-08-09 08:55:16 +01:00
Sara Arjona a2db0747cc MDL-78528 course: Deprecate unused methods
The method core_course_bulk_activity_completion_renderer::edit_default_completion()
has been deprecated and will be removed in Moodle 4.7.
2023-08-09 09:12:44 +02:00
Sara Arjona 2e41286ad3 MDL-78528 course: Display all forms in default activity completion page
This commit displays all the module forms together in the default
activity completion page:

- The checkboxes have been removed. Now the activity names are
displayed as accordions.
- Module names have been changed from plural to singular.
- The activity completion form is displayed below each module name,
when the chevron icon is expanded. The cancel button is not displayed.
- The CSS has been updated to meet the prototype styling.
2023-08-09 09:12:44 +02:00
Sara Arjona 8f57f0fdac MDL-78528 mod: Add suffix support to module completion fields 2023-08-09 09:12:43 +02:00
Sara Arjona 274db7f747 MDL-78528 completion: Add suffix support to avoid duplicated ids 2023-08-09 09:12:43 +02:00
Paul Holden b78663083f MDL-78647 files: safer unserializing of file reference data. 2023-08-09 04:44:18 +00:00
Shamim Rezaie 90346de2da MDL-66212 tool_lpimport: properly check capabilities
The moodle/competency:competencymanage capability should be checked
before showing the import and export pages.
2023-08-09 04:44:18 +00:00
Matt Porritt f1e320272f MDL-78340 Blocks: Dashboards now respect block permission overrides
Patch makes user dashboard respect permission overrides
that have been set on individual blocks on the system
dashboard (indexsys.php). When a user dashboard is created
either when the user visits their dashboard for the first
time or after an admin reset. When blcoks are copied to
the new dashbaord overriden permissions are also copied.
2023-08-09 04:44:18 +00:00
Rajneel Totaram b0d1cef0e0 MDL-71728 mod_quiz: check if user can access this page 2023-08-09 04:44:17 +00:00
Huong Nguyen 323136eb1f Merge branch 'MDL-78904-master' of https://github.com/junpataleta/moodle 2023-08-09 11:42:34 +07:00
Huong Nguyen 38d49c033c Merge branch 'MDL-75047-master' of https://github.com/SysBind/moodle 2023-08-09 11:29:03 +07:00
Jun Pataleta 5dbb5cc3ea Merge branch 'MDL-78872' of https://github.com/paulholden/moodle 2023-08-09 12:10:30 +08:00
Ilya Tregubov 3b23a296b7 Merge branch 'MDL-78714-master' of https://github.com/andrewnicols/moodle 2023-08-09 12:04:45 +08:00
Jun Pataleta b2d926c90f Merge branch 'MDL-78545-master' of https://github.com/mattporritt/moodle 2023-08-09 11:52:16 +08:00
Huong Nguyen e8497456c8 Merge branch 'MDL-78235-master' of https://github.com/lameze/moodle 2023-08-09 10:42:34 +07:00
Ilya Tregubov e3caced471 Merge branch 'master_MDL-78893' of https://github.com/mattporritt/moodle 2023-08-09 11:09:44 +08:00
Ilya Tregubov 58664d0b26 Merge branch 'master_MDL-78860' of https://github.com/mattporritt/moodle 2023-08-09 09:42:37 +08:00
Andrew Nicols 9f9814ae41 MDL-78714 editor_tiny: Disable HTML Sanitisation in TinyMCE
This is in keeping with other Editors such as Atto and resolves an issue
where DOM Purification incorrectly identifies HTML-like string content
as an HTML tag with a JS variable.

Moodle already performs XSS sanitisation using HTML Purifier in PHP.
2023-08-09 09:07:04 +08:00
Andrew Nicols 8e58a8fab0 MDL-78714 editor_tiny: Add xss_sanitize option to TinyMCE
To address a potential data loss issue, a feature introduced in TinyMCE
6.4.0 to disable client-side XSS sanitisation must be backported.
2023-08-09 09:05:25 +08:00
Andrew Nicols 3c9a5589b7 MDL-78714 editor_tiny: Move TinyMCE import instructions to correct path 2023-08-09 09:05:23 +08:00
Tomo Tsuyuki d8a4cc9533 MDL-67186 group: add custom fields 2023-08-09 11:02:49 +10:00
Huong Nguyen 59418b5f61 Merge branch 'MDL-78492_aurora_mysql_rowformat_master' of https://github.com/mark-webster-catalyst/moodle 2023-08-08 21:41:47 +07:00
Huong Nguyen cb1d6106c6 Merge branch 'MDL-78286-master' of https://github.com/roland04/moodle 2023-08-08 21:34:32 +07:00
Mikel Martín 848a90d1e5 MDL-78286 core_courseformat: Add direct link to edit completion settings 2023-08-08 16:22:55 +02:00
Paul Holden 6d9a45f388 MDL-76123 course: multilingual module icon alt text attribute. 2023-08-08 13:44:31 +01:00
Sara Arjona 3774059c1b Merge branch 'MDL-78770-master' of https://github.com/junpataleta/moodle 2023-08-08 13:55:26 +02:00
Sara Arjona 6fb01e22ab Merge branch 'MDL-77658-master' of https://github.com/SysBind/moodle 2023-08-08 13:29:43 +02:00
Sara Arjona 565d6a45a3 Merge branch 'MDL-78879' of https://github.com/paulholden/moodle 2023-08-08 13:04:30 +02:00
Sara Arjona f4c4aad52b Merge branch 'MDL-78559-master' of https://github.com/rmady/moodle 2023-08-08 13:01:56 +02:00
Simey Lameze 9e04e26d67 MDL-78843 behat: update get_forum_id to search for idnumber or name
This commit also converts manual steps to create discussions on the
Annoucements forum to data generator.
2023-08-08 16:32:13 +08:00
Jun Pataleta ea40779753 Merge branch 'MDL-78896-master-enfix' of https://github.com/vmdef/moodle 2023-08-08 15:29:03 +08:00
Jun Pataleta 51e86626d1 Merge branch 'MDL-77174-master' of https://github.com/andrewnicols/moodle 2023-08-08 15:15:32 +08:00
Paul Holden 69caa83345 MDL-78939 qformat_xml: fix reference to calculated question files. 2023-08-08 08:08:33 +01:00
Jake Dallimore 9f7e2cafda MDL-78713 mod_lti: update lang strings 2023-08-08 13:33:01 +08:00
Angelia Dela Cruz 6385949078 MDL-78684 Behat: Replace gradebook navigation to use page resolvers
This commit also does other things such as:
- Replace manual steps to setup gradebook by data generators
- Added support for outcomes and scales page resolvers
- Behat clean up
2023-08-08 11:53:45 +08:00
Matt Porritt 2772b2b9dc MDL-78698 Libraries: Deprecate random_bytes_emulate function
Since PHP 7.0 the random_bytes() is nativley available and Moodle
LMS requires greater than PHP 7, the native PHP funciton can be
used exclusively. Deprecating random_bytes_emulate.
2023-08-08 12:35:00 +10:00
AMOS bot 12b7a470a7 Automatically generated installer lang files 2023-08-08 00:10:38 +00:00
Paul Holden b3d00a8f0a MDL-78872 grade: fix external class execute method visibility. 2023-08-07 15:19:25 +01:00
Helen Foster 34a8e644f2 MDL-78896 lang: Import fixed English strings (en_fix) 2023-08-07 11:21:41 +01:00
Paul Holden 3ca62ad556 MDL-78302 mod_forum: fix course module grade button parameters. 2023-08-07 10:45:09 +01:00
Paul Holden 9c108c8d88 MDL-78758 reportbuilder: stricter checking of source default sorting. 2023-08-07 10:21:51 +01:00
Ilya Tregubov 0b49e25297 Merge branch 'MDL-78800' of https://github.com/stronk7/moodle 2023-08-07 16:57:38 +08:00
Ilya Tregubov 93c910f20a Merge branch 'MDL-78665-master-v02' of https://github.com/ferranrecio/moodle 2023-08-07 12:19:30 +08:00
Ilya Tregubov 2e18ba8750 Merge branch 'MDL-78550-master' of https://github.com/junpataleta/moodle 2023-08-07 11:34:04 +08:00
Damian Hippisley 26407c6ca1 MDL-78545 core_badges: Fix PHP 8.2 dynamic properties
Issue MDL-73325 added the option to tag badges, however
it introduced a dynamic property on the badge object.
In PHP 8.2 dynamic properties are deprecated, this patch
fixes this.
2023-08-07 11:04:04 +10:00
chen levy ec7e9d6d5d MDL-77658 theme: Fixed RTL manage course categories menu
fixed course checkboxes that appears on the categories menu on RTL
2023-08-06 09:19:27 +03:00
Sara Arjona d4d0483cb1 MDL-78528 completion: Add customdata to hide Cancel button
A new customdata setting has been added to edit_base_form to let
hide the Cancel button (and only display the "Save changes" button).
2023-08-04 16:33:02 +02:00
Ferran Recio b707da35d0 MDL-78665 tool_componentlibrary: add action menu page 2023-08-04 16:09:30 +02:00
Ferran Recio 105324e6fd MDL-78665 output: add subpanels to action menu
Many times the action menu item triggers modals to show more information
to the user. In most cases this is enough, however, a modal will close
the menu and the user is not able to see the modal content in the page
context. To solve this now menus can define subpanels that are displayed
next the the menu item when the item is focused or hover. This will be
used to group options like the group mode in activities or to replace
the adhoc solution implemented to select language in the user menu.
2023-08-04 16:09:29 +02:00
Ferran Recio d04ef6c5e3 MDL-78665 theme_boost: allow behat fake drawers
Drawers have several JS logic depending on the screen size. However,
some generic components like action menu subpanels require fake drawers
to test the behaviour when it is displayed in a drawer (for example in a
block). This patch allow a behat page to have a div with data-region as
fixed-drawer so the component can detect as it is inside a a drawer but
without the autoclose on small screens.
2023-08-04 16:08:00 +02:00
Ferran Recio 013b1a172f MDL-78665 output: add default template to choicelist
The choicelist output class is designed to represent a user choice in
several formats like a dropdown or subpanel. In general, other
components are free to render the choice in its own way. However, to
simplify the logic the choicelist now provide a default template to be
used in any div or panel.
2023-08-04 16:07:59 +02:00
Ferran Recio 3b53616321 MDL-78665 libs: page helpers global amd module
Add a new global module to get information from the page. Some methods
are just local functions moved to as a global library. For example, the
drawers isSmall or isLarge to detect the page width. The other funcionts
added are to detect focusable elements and they are needed to loop on
elements, especially when accessibility keyboard navigation is implemented.
2023-08-04 16:07:59 +02:00
Eloy Lafuente (stronk7) 43f39e52e7 MDL-78800 composer: Bump dependencies to current ones
This bumps direct dependencies to current ones:

- phpunit: 9.5.x No updates here, there is the 9.6.x series
  available but a lot of deprecation warnings have been
  introduced there without any alternative to use. See:
  - https://github.com/sebastianbergmann/phpunit/issues/5160
  - https://github.com/sebastianbergmann/phpunit/issues/5062
  - ...
  While that will be handy to prepare ourselves to PHPUnit 10
  in some months... we cannot force everybody to jump to 9.6.x
  because that will make a lot of tests to start emitting
  warnings.
  So we stay with PHPUnit 9.5.x for the life of this branch.
- mink-phpwebdriver: 1.2.1 No updates here, just changed the
  constraint because we cannot advance to 1.3.x yet, there is
  a change there causing some app tests to fail. See:
  - https://github.com/oleg-andreyev/MinkPhpWebDriver/pull/81
  So we stay with 1.2.x until that issue is fixed/clarified,
  only then we'll review the status.
- behat: 3.12.x => 3.13.x

And also, automatically, a bunch of 2nd and deepest dependencies.

Generated with php80 that is the lowest php version supported
by this branch and, also, by some of the dependencies, as per
documented @ https://moodledev.io/general/development/tools/composer

Worth mentioning behat/mink-goutte-driver, that we should move
to mink-browserkit-driver, but that's out from this issue scope.
2023-08-04 15:08:45 +02:00
Sara Arjona 1474f74687 weekly release 4.3dev 2023-08-04 12:40:00 +02:00
Sara Arjona 5b6f2ea15d NOBUG: Fixed SVG browser compatibility 2023-08-04 12:39:55 +02:00
Jun Pataleta 2b2d2782ce MDL-78904 user: Remove unused user/repository.php
This file does not seem used and referenced anywhere in Moodle.
Might as well just remove it.
2023-08-04 15:33:55 +08:00
Matt Porritt d84389391c MDL-78860 qtype_calculatedmulti: PHP 8.2 compatibility
PHP 8.2 has deprecated setting properties on objects dynamically.
The qtype_calculatedmulti question type had two properties being
set this way($correctanswerlength and$correctanswerformat).
This patch extends the question_answer class to add the properties
when the object is instantiated.
2023-08-04 15:44:13 +10:00
Jun Pataleta 81761d786f Merge branch 'MDL-77991-integration' of https://github.com/Chocolate-lightning/moodle 2023-08-04 11:56:21 +08:00
Mathew May b3d888f9c9 MDL-77991 gradereport_grader: Collapse a11y fixes 2023-08-04 11:25:33 +08:00
Matt Porritt aa11164e07 MDL-78893 Libaries: explicity set $flags for htmlspecialchars function
As part of PHP 8.2 compatibility explicitly set the flags for the
htmlspecialchars function, to convert both single and double quotes.
2023-08-03 14:33:34 +10:00
meirzamoodle e039eaa599 MDL-77817 editor_tiny: Fix menu and dialogue window position
The boost theme makes the TinyMCE editor rendered in a scrollable container,
scrolling the editor’s container will cause TinyMCE UI elements to be detached from the anchor.
Therefore, to keep the tinyMCE menu in the correct position,
adjustments must be made on the page drawers style.

When using TinyMCE editor in Safari browsers, a problem may occur where the dialogue
windows (such as modal dialogs) overlap with page drawers due to a specific behavior
in Safari's rendering. This function addresses the issue by adjusting the CSS overflow
property of the page drawers, ensuring they do not obscure the dialogue windows.
2023-08-03 11:31:28 +07:00
Matt Porritt 07e2b61128 MDL-78613 TinyMCE: Add source code formatting and styling
Add code formatting (indenting) as well as code style (tag color)
via a TinyMC plugin. To make it easier to make code edits when
viewing the editor content in source code view.
2023-08-03 13:43:40 +10:00
Jun Pataleta 567f4c0669 MDL-78498 mod_forum: Prevent race condition in forum recent activity
* Using the generator to create the forum discussions, the timecreated
of a discussion can be set before the user's last course access which
will prevent forum_print_recent_activity() from including this generated
discussion in the recent activity results. To work around this, generate
the forum discussion 1 second after the current time to make sure that
the user's last course access will always be before the discussion's
creation time.
* This patch also includes some optimisations by:
  - Removing the unnecessary @javascript tag for the
    `Time limit expires` scenario
  - Bringing the discussion generation to each scenario to allow each
    scenario to customise the data passed to the generator like for the
    `Time limit expires` scenario.
  - Navigating directly to the forum instance.
2023-08-03 11:31:45 +08:00
Huong Nguyen aeeb1653c0 Merge branch 'MDL-78553-master' of https://github.com/davewoloszyn/moodle 2023-08-03 09:44:24 +07:00
David Woloszyn 317251a978 MDL-78553 core_communication: Move settings to their own page 2023-08-03 12:36:04 +10:00
Jun Pataleta 1be10f4249 Merge branch 'MDL-77991' of https://github.com/Chocolate-lightning/moodle 2023-08-03 10:23:24 +08:00
Ilya Tregubov 05655afa6b Merge branch 'MDL-78866-master' of https://github.com/danghieu1407/moodle 2023-08-03 09:38:32 +08:00
Ilya Tregubov c5bbb46886 Merge branch 'MDL-78807' of https://github.com/paulholden/moodle 2023-08-03 09:33:04 +08:00
Ilya Tregubov 5fdb8446fd Merge branch 'MDL-78755' of https://github.com/paulholden/moodle 2023-08-03 09:30:28 +08:00
Ilya Tregubov 74dde93b85 Merge branch 'MDL-78742' of https://github.com/paulholden/moodle 2023-08-03 09:23:33 +08:00
Ilya Tregubov 7144dccdd8 Merge branch 'MOODLE_master_MDL-74773' of https://github.com/danielneis/moodle 2023-08-03 09:18:42 +08:00
Mathew May c279443bfb MDL-77991 graderreport_grader: Migrate to core usage 2023-08-03 09:07:18 +08:00
Mathew May aa0bf848fc MDL-77991 gradereport_singleview: Migrate to core search dropdown 2023-08-03 09:07:18 +08:00
Mathew May 69844e76da MDL-77991 gradereport_user: Migrate to core search dropdown 2023-08-03 09:07:18 +08:00
Mathew May 9bb91ce870 MDL-77991 filelib: Allow groups to generate svgs 2023-08-03 09:07:18 +08:00
Mathew May a4b3b0d044 MDL-77991 core: Move tertiary search dropdown component 2023-08-03 09:07:18 +08:00
David Woloszyn 5aea409a87 MDL-78553 behat: Add disable communication helper trait 2023-08-03 10:20:23 +10:00
Daniel Neis Araujo a7a3f585ce MDL-74773 contentbank: add notification when updating and creating 2023-08-02 14:14:45 -03:00
Paul Holden 34ab8329e7 MDL-78755 course: default participant source conditions and sorting.
Ensure the default state of the report source shows only active user
enrolments, and implements sorting for consistency.
2023-08-02 14:49:26 +01:00
Paul Holden e4e7e59d90 MDL-78807 reportbuilder: ensure report base conditions are non-empty. 2023-08-02 13:50:50 +01:00
Paul Holden 501a170cb6 MDL-78879 reportbuilder: allow for negation of category filter.
Add "Equal to" and "Not equal to" operators to the filter class.

AMOS BEGIN
 CPY [subcats,qtype_randomsamatch],[includesubcategories,moodle]
AMOS END
2023-08-02 12:26:54 +01:00
Jun Pataleta f8aa9a6504 Merge branch 'MDL-78117' of https://github.com/paulholden/moodle 2023-08-02 16:24:50 +08:00
Jun Pataleta b2d3f245f2 Merge branch 'MDL-77447-master' of https://github.com/ilyatregubov/moodle 2023-08-02 16:13:19 +08:00
Huong Nguyen 3054d43336 Merge branch '45743-forum-trigger-more-events-master' of https://github.com/DSI-Universite-Rennes2/moodle 2023-08-02 15:05:14 +07:00
Huong Nguyen ddae9c4ae1 Merge branch 'MDL-78815_master' of https://github.com/marxjohnson/moodle 2023-08-02 14:58:23 +07:00
Huong Nguyen 0b3c260e00 Merge branch 'MDL-78823_master' of https://github.com/marxjohnson/moodle 2023-08-02 14:51:46 +07:00
Mark Johnson 1055a2c1c2 MDL-78815 qbank_comment: Delete comments in event observer 2023-08-02 08:34:59 +01:00
Mark Johnson a2c8eed5c8 MDL-78815 qbank_customfields: Delete custom field data in event observer 2023-08-02 08:34:59 +01:00
Mark Johnson 36ab582177 MDL-78815 qbank_tagquestion: Delete tags in event observer 2023-08-02 08:34:59 +01:00
Mark Johnson b7b932a3c1 MDL-78823 core: Add new events when enabling and disabling qbank plugins 2023-08-02 08:34:32 +01:00
Paul Holden ca6731dff7 MDL-78117 comment: use new context entity in system report. 2023-08-02 08:05:50 +01:00
Paul Holden d8df4ad675 MDL-78117 reportbuilder: use context entity in report sources.
Deprecate existing columns, to be replaced by corresponding elements
from the new entity.
2023-08-02 08:05:50 +01:00
Paul Holden beea104246 MDL-78117 reportbuilder: create new context report entity.
Encapsulate context related data in columns to replace similar in
other entities, add new context level filter.
2023-08-02 08:05:50 +01:00
Sara Arjona a6affc9271 Merge branch 'MDL-78460' of https://github.com/paulholden/moodle 2023-08-02 08:51:01 +02:00
Sara Arjona 446dc6c65f Merge branch 'MDL-78708-master' of https://github.com/roland04/moodle 2023-08-02 08:47:15 +02:00
Sara Arjona 5f24cb0b60 Merge branch 'MDL-78289-master' of https://github.com/roland04/moodle 2023-08-02 08:43:26 +02:00
Ilya Tregubov 1f596a5939 Merge branch 'MDL-78101' of https://github.com/Chocolate-lightning/moodle 2023-08-02 14:30:37 +08:00
Sara Arjona 632d500bce Merge branch 'MDL-78430-patch' of https://github.com/ilyatregubov/moodle 2023-08-02 07:40:01 +02:00
Ilya Tregubov 70de576893 Merge branch 'master_MDL-78571' of https://github.com/mattporritt/moodle 2023-08-02 12:11:44 +08:00
Jun Pataleta ce131c354a Merge branch 'MDL-78498-master' of https://github.com/lameze/moodle 2023-08-02 11:23:18 +08:00
Mathew May 5282ddd170 MDL-78101 gradereport_grader: Select all collapsed columns functionality 2023-08-02 10:52:40 +08:00
Ilya Tregubov 3f16a97a2d MDL-78430 core_grades: Support grades categories and outcomes 2023-08-02 10:29:38 +08:00
Sara Arjona c1d805a676 Merge branch 'MDL-78738-master' of https://github.com/andrewnicols/moodle 2023-08-01 16:24:42 +02:00
Mikel Martín 628336f639 MDL-78708 core_courseformat: Fix activity icon link shown without access
In course page activity icon was showing as a link even when the user
does not have access to the activity. This commit fixes this behaviour
checking if activity is visible for the user and showing the icon without
link if not.
2023-08-01 16:03:10 +02:00
Sara Arjona 612b8e0891 Merge branch 'MDL-71421' of https://github.com/paulholden/moodle 2023-08-01 15:17:20 +02:00
Sara Arjona 025e05f980 Merge branch 'MDL-78107' of https://github.com/Chocolate-lightning/moodle 2023-08-01 14:07:58 +02:00
Sara Arjona 5c53122494 Merge branch 'MDL-78575-fix' of https://github.com/paulholden/moodle 2023-08-01 13:59:56 +02:00
Andrew Nicols 8b97071c94 MDL-78738 core_communication: Set avatar from a stored_file
We should always use a stored_file instance to set the avatar, and never
a data uri. Especially where the datauri is from Moodle itself.

This change requires a number of changes in associated locations.

I am not adding this change to any upgrade notes as this is a
master-only feature.

Note: I have removed some tests and will not consider fixing them
because I will be entirely removing that test file in a subsequent issue
(MDL-77917).
2023-08-01 19:50:14 +08:00
Andrew Nicols 0a5c1ea5f9 MDL-78738 core_course: Add helper to get the course image 2023-08-01 19:50:14 +08:00
Andrew Nicols 235d5b9b72 MDL-78738 core_testing: Add helper to run adhoc tasks 2023-08-01 19:50:13 +08:00
Paul Holden 3b6fcd1f5b MDL-78575 mod_lti: remove column alias from inner sub-select.
The `usage` alias is a reserved word in MySQL/MariaDB.
2023-08-01 12:46:18 +01:00
Sara Arjona 84257e4aa3 Merge branch 'MDL-78703' of https://github.com/paulholden/moodle 2023-08-01 13:44:53 +02:00
Paul Holden c1c000aa15 MDL-71421 core: deprecate openssl fallbacks in encryption library.
Since c66dc591 the PHP Sodium library is required, negating the need
for the OpenSSL equivalent. Remove fallbacks where possible, leaving
only the ability to decrypt legacy OpenSSL-encrypted content (with
debugging).
2023-08-01 12:10:36 +01:00
Sara Arjona 3e4157b21f Merge branch 'MDL-78430-master-2' of https://github.com/ilyatregubov/moodle 2023-08-01 13:02:47 +02:00
Sara Arjona 8e6c3c0dcb Merge branch 'MDL-78723-master' of https://github.com/andrewnicols/moodle 2023-08-01 12:07:40 +02:00
Paul Holden 70dff40d77 MDL-78688 admin: define accepted filetype for uploaded preset file. 2023-08-01 10:23:14 +01:00
Paul Holden 24ce2bb86f MDL-78579 mod_glossary: show approval pending count in navigation. 2023-08-01 10:21:44 +01:00
danghieu1407 a5af041c40 MDL-78866 question: question_created trigger pre-saving extra fields 2023-08-01 16:01:31 +07:00
Andrew Nicols 01a1210954 MDL-78289 courseformat: Amend behat tests to reduce test overheads 2023-08-01 09:45:47 +02:00
Mikel Martín 8ff60512fb MDL-78289 core_courseformat: New completion dropdown buttons UI
- Update completion dropdown button styles for students depending on activity
overall completion status.
- Add new behat partial named selector 'core_courseformat > Activity completion'
- Add new behat Feature to test activity completion criteria button or dropdown
for students and teachers.
2023-08-01 09:41:21 +02:00
Simey Lameze 4e754bd337 MDL-78498 behat: add support for private replies
This commit adds support for private replies in the
'the following forum replies exist in course' custom step.
2023-08-01 13:39:52 +08:00
Angelia Dela Cruz ebbe96905a MDL-78498 Behat: Use data generators for forum posts and replies
This commit does few things:
* Replace manual forum posts and replies to use data generator.
* It also changes the code to handle social forums.
* Other behat clean-ups and optimization.

Co-authored-by: Simey Lameze <simey@moodle.com>
2023-08-01 13:39:52 +08:00
Mathew May b2e1121fc0 MDL-77639 gradebook_setup: Create outcomes via dyn form 2023-08-01 11:34:04 +07:00
Dan Marsden 8dbff42716 MDL-78865 mod_scorm: AICC HACP - fix update of total time value. 2023-08-01 14:47:51 +12:00
Andrew Nicols 30f7e50770 Merge branch 'MDL-78575-master' of https://github.com/snake/moodle 2023-08-01 09:38:15 +08:00
Andrew Nicols 37b27a3853 MDL-78632 core: Update upgrade versions 2023-08-01 09:29:34 +08:00
Andrew Nicols 455db24747 Merge branch 'MDL-78632' of https://github.com/marcusboon/moodle 2023-08-01 09:27:10 +08:00
Tomo Tsuyuki eacffa413e MDL-77378 qtype_multianswer: Fix division by zero errors 2023-08-01 11:24:32 +10:00
Michael Aherne 4dffe0f23b MDL-78235 userprofile: Check for defaultdata with isset(). 2023-07-31 19:32:07 +08:00
Sara Arjona d7dfae00a2 Merge branch 'MDL-45452-course_completion_excel_dates' of https://github.com/leonstr/moodle 2023-07-31 12:47:46 +02:00
Paul Holden 124113515e MDL-78858 grade: set types on aggregation form text fields. 2023-07-31 11:27:29 +01:00
Paul Holden 5c3f296138 MDL-71331 course: final removal of non-AJAX activity control method. 2023-07-31 09:06:47 +01:00
Paul Holden 334b6c75a4 MDL-71196 completion: final removal of get_completion_state support. 2023-07-31 09:04:03 +01:00
Jun Pataleta 43553f5f08 Merge branch 'MDL-76338-master' of https://github.com/junpataleta/moodle 2023-07-31 13:38:16 +08:00
Matt Porritt 668057c3eb MDL-50160 Administration: HTTP only cookies default set to on.
This patch removes the UI setting (cookiehttponly) for HTTP only
cookies. For new installs HTTP only cookies will default to on.
For existing sites teh behaviour will stay as set.
The behaviour can be overriden in config.php
2023-07-31 14:09:30 +10:00
Ilya Tregubov aa06409241 Merge branch 'master_MDL-62401' of https://github.com/mattporritt/moodle 2023-07-31 12:00:42 +08:00
Jun Pataleta 2f31f35e06 MDL-76338 contentbank: Add copy content capability lang strings 2023-07-31 11:41:34 +08:00
Andrew Nicols cad1c7d008 MDL-77174 core: Modal z-index calc should ignore hidden items
When an AMD dialogue is opened from a YUI dialogue, the YUI dialogue is
not actually removed from the DOM, but was counted in z-index
calculation.

We need to stop including it otherwise nested AMD => YUI => AMD
dialogues get broken.
2023-07-31 10:57:09 +08:00
Andrew Nicols 56260354b1 MDL-77174 filemanager: Switch from YUI dialogue to utility modal 2023-07-31 10:57:09 +08:00
Andrew Nicols 10838ef878 MDL-77174 gradeform: Switch from YUI dialogue to utility modal 2023-07-31 10:56:23 +08:00
Andrew Nicols 222c43f8eb MDL-77174 mod_quiz: Switch from YUI dialogue to utility modal 2023-07-31 10:56:22 +08:00
Andrew Nicols dbf3bccf99 MDL-77174 core: Add support for button sources to modal utility 2023-07-31 10:56:22 +08:00
Andrew Nicols c6e987f525 MDL-77174 core_payment: Switch to utility modal 2023-07-31 10:56:22 +08:00
Andrew Nicols 715902c9c0 MDL-77174 core: Provide default anchor support to modal utility 2023-07-31 10:56:22 +08:00
Andrew Nicols 96dfb8382e MDL-77174 core: Provide default strings for modal utility 2023-07-31 10:56:22 +08:00
Andrew Nicols d20b272df7 MDL-77174 mod_quiz: Remove usage of moodle-core-nofification-alert 2023-07-31 10:56:21 +08:00
Andrew Nicols 43575489e9 MDL-77174 core: Deprecate moodle-core-notification-confirm 2023-07-31 10:56:21 +08:00
Andrew Nicols d860566a50 MDL-77174 editor_atto: Drop unused dependency 2023-07-31 10:56:21 +08:00
Andrew Nicols 2e706ee5fb MDL-77174 mod_quiz: Update toolbox to drop YUI confirm module 2023-07-31 10:56:21 +08:00
Andrew Nicols 650fb3ba43 MDL-77174 enrol: Update role manager to drop YUI confirm module 2023-07-31 10:56:21 +08:00
Andrew Nicols 95d82058af MDL-77174 course: Update course move to drop YUI confirm usage 2023-07-31 10:56:21 +08:00
Andrew Nicols bee509fb81 MDL-77174 js: Update M.util.show_confirm_dialog to use ESM/AMD
This commit updates the M.util.show_confirm_dialog function to modify
its underlying behaviour to use the core/notification::saveCancelPromise
features.

This will allow us to work towards deprecating
moodle-core-notification-confirm
2023-07-31 10:56:19 +08:00
Andrew Nicols 42d3e7de14 MDL-77174 core: Add getElement to core/normalise 2023-07-31 10:56:04 +08:00
Matt Porritt 04f0448d26 MDL-78571 Media: Allow Vimeo do not track option
Add config option to embed Vimeo links using the "do not track"
Vimeo option. This will block the player from tracking any
session data, including all cookies and analytics.
2023-07-31 12:07:26 +10:00
Matt Porritt 0d0e543007 MDL-78571 Media: Refactor Vimeo media player to use templates.
Use mustache templates for rendering Vimeo embed
iframe code.
2023-07-31 12:05:51 +10:00
Ilya Tregubov 6958389431 Merge branch 'MDL-78043' of https://github.com/Chocolate-lightning/moodle 2023-07-31 08:49:14 +08:00
Daniel Neis Araujo d124df500c MDL-76338 contentbank: copy content in content bank 2023-07-28 17:05:57 -03:00
Juan Leyva 81b4677ddb MDL-78801 tool_mobile: Auto logout settings 2023-07-28 14:25:37 +02:00
Jun Pataleta eaa1ce1830 MDL-78550 core: Ensure spacing between more menu item attributes 2023-07-28 17:46:56 +08:00
Jun Pataleta 668d287235 MDL-78550 grade: Hide empty fillers from the accessibility tree
* And remove the title attribute for the filler as it is unnecessary.
2023-07-28 17:46:56 +08:00
Jun Pataleta ad6d554ac1 MDL-78550 grade: Remove duplicate class for single button 2023-07-28 17:46:56 +08:00
Jun Pataleta 00e69c97ee MDL-78550 grade: Avoid rendering an empty <h2> heading 2023-07-28 16:28:29 +08:00
Jun Pataleta a7a9182262 MDL-78550 grade: Fix HTML validator errors
* Remove invalid "text" attribute in <td> elements
* Use proper id value for grade category checkboxes.
2023-07-28 16:28:29 +08:00
Ilya Tregubov 8eb2d5f836 MDL-78430 core_grades: Add Behat tests. 2023-07-28 16:16:21 +08:00
Mihail Geshoski b5a87c1919 MDL-78430 core_grades: Carry over basic grade item data to advanced form 2023-07-28 16:16:19 +08:00
Jun Pataleta 68a505fddd Merge branch 'MDL-77975-master' of https://github.com/kevpercy/moodle 2023-07-28 16:02:47 +08:00
Marcus Boon c22f82d7d5 MDL-78632 filetypes: Introduce yaml file type 2023-07-28 15:26:34 +10:00
Ilya Tregubov a1d5d1b2f7 weekly release 4.3dev 2023-07-28 10:44:05 +08:00
Ilya Tregubov 4878f53827 NOBUG: Fixed SVG browser compatibility 2023-07-28 10:44:01 +08:00
Mathew May 5e5d3b9f3c MDL-78107 core: Change the manual grade item icon 2023-07-27 16:34:10 +08:00
Jun Pataleta 08a48a9090 Merge branch 'MDL-78283-master' of https://github.com/ferranrecio/moodle 2023-07-27 14:48:15 +08:00
Jun Pataleta 26ba9c7351 Merge branch 'MDL-78282-master' of https://github.com/ferranrecio/moodle 2023-07-27 14:47:14 +08:00
Ilya Tregubov 70174bb754 Merge branch 'MDL-78782-master' of https://github.com/ferranrecio/moodle 2023-07-27 14:47:14 +08:00
Ilya Tregubov 01593b9332 Merge branch 'MDL-46279' of https://github.com/danmarsden/moodle 2023-07-27 14:47:13 +08:00
Ferran Recio a586e952ff MDL-78282 output: new sr_text renderer method
Some output classes require pre-rendered elements. In some cases, those
elements require some screen reader extra texts (especially in buttons).
The st_text method allow the outputs to create those inline tags without
using html_writer. Furthermore, the current screen reader classes are
based on bootstrap, having them isolated in renderer methods allow
themes to implement alternatives accessibility HTML structures.
2023-07-26 15:44:28 +02:00
Ferran Recio 01e0e56665 MDL-78282 core_courseformat: interactive visibility badges 2023-07-26 15:44:28 +02:00
Ferran Recio b2b1915e25 MDL-78282 core_courseformat: add non-ajax cm actions translation 2023-07-26 15:44:28 +02:00
Ferran Recio 965d556b6b MDL-78782 behat: optimize with editing mode step
The current I am on course homepage with editing mode loads twice the
course page. This patch prevents this from happening by going directly
to editmode.php.
2023-07-26 10:44:45 +02:00
Neill Magill 3a06a2f7dd MDL-71909 assignfeedback_editpdf: Do not queue conversions when not on
Before this change conversion tasks would be queued for assignments that
did not have the pdf annotation method enabled.

The change will also prevent queing when the plugin is disabled.
2023-07-26 08:43:39 +01:00
Huong Nguyen 21cfb43408 Merge branch 'MDL-78618' of https://github.com/larsbonczek/moodle 2023-07-26 14:21:31 +07:00
Matt Porritt d0a5e3fb39 MDL-62401 Media: Embed Youtube Videos with nocookie extension
Add config option to embed YouTube links using the youtube-nocookie.com
YouTube domain. This will stop extra YouTube cookies from being added
to the users computer it also stops calls to certain add tracking sites.
2023-07-26 15:57:05 +10:00
Matt Porritt 6d38972cbc MDL-62401 Media: Embed Youtube Videos with nocookie extension
Refactor YouTube media player to use templates.
Use mustache templates for rendering YouTube embed
iframe code.
2023-07-26 15:54:29 +10:00
Jun Pataleta b12e77119e Merge branch 'MDL-78377' of https://github.com/paulholden/moodle 2023-07-26 10:47:41 +08:00
Jun Pataleta d8bfb8ff3c Merge branch 'MDL-70135' of https://github.com/paulholden/moodle 2023-07-26 10:45:55 +08:00
Ilya Tregubov c7529aaee0 Merge branch 'MDL-44190-master' of https://github.com/HuongNV13/moodle 2023-07-26 09:48:18 +08:00
Mark Webster 1a561c23e6 MDL-78492 dml: Better support for auroramysql
Aurora MySQL does not support row format COMPRESSED and falls back
to COMPACT if you try to use it, cuasing column size too large
errors if you try to use it with utf8mb4 collation.
2023-07-25 11:56:50 +01:00
Jun Pataleta 8438a7d03b Merge branch 'MDL-77638-master' of https://github.com/ilyatregubov/moodle 2023-07-25 17:56:59 +08:00
Ilya Tregubov 1d3f4d631d MDL-77638 grade: Create add/edit grade category modal. 2023-07-25 17:05:41 +08:00
Miri Lipson 0a6693ec4f MDL-75047 icons: Define the orientation of the question mark in right-to-left languages. 2023-07-25 10:54:28 +03:00
Alex Yeung 10ec24e455 MDL-78811 check: fix duplicate column contextid warning 2023-07-24 22:34:28 +01:00
Leon Stringer 9888a75991 MDL-78700 filter_tidy: Stop using 'clean'
When libtidy removed option 'drop-font-tags' the docs said to use the
'clean' option instead (see MDL-69951).  However, 'clean' replaces
legacy style information with classes, the corresponding CSS added in
<head>.  With 'show-body-only' (used because we're inserting an HTML
fragment mid-way through <body>) that <head> with its CSS is omitted.
So 'clean' with 'show-body-only' removes legacy style information,
rather than tidying it. Consequently we now drop the 'clean' option.
This means <font> tags are no longer dropped as libtidy currently has
no equivalent to the removed 'drop-font-tags' functionality.
2023-07-24 17:30:14 +01:00
Andrew Nicols f067d6004f MDL-78723 communication_matrix: Address issues with user manager
This commit addresses a number of issues with the Matrix user manager.
These are, unfortunately, tough to break out into smaller commits.

The following issues are addressed:

Matrix usernames should be kept intact in the profile field. Prior to
this change, usernames were mangled and the hostname removed entirely.
Instead the hostname was added back when it is used. This approach is
not suited to a case where a user inserts their own matrix username on a
federated server.

Unit tests should have the minimum of requirements and dependencies.
Prior to this change, unit tests were setting up an entire mock system
which was completely unnecessary. These unit tests should only test the
static methods that they claim to test, not the entire communication
subsystem, matrix API, matrix client, processors, and providers.

Matrix host names should not be curtailed. Prior to this change the
hostname of the matrix server was modified if it contained any .
characters. For example, the following changes were previously made:

| hostname           | before  | after              |
| ------------------ | ------- | ------------------ |
| matrix.example.com | matrix  | matrix.example.com |
| www.example.com    | example | example.com        |

I believe that the original intent was to strip the www from the front,
but this is not documented anywhere that I have found. In any case, the
username should be the completed and fully-qualified username.

Many of the methods were poorly named:
- `set_qualified_matrix_user_id` is actually a userid formatter.
  This has been replaced with `get_formatted_matrix_userid`.
- `set_matrix_home_server` is actually a hostname formatter.
  This has been replaced with `get_formatted_matrix_home_server`.
- `add_user_matrix_id_to_moodle` sets the matrix userid for a moodle
  user, it does not add more than one.
  This has been replaced with `set_matrix_userid_in_moodle`.

The `set_qualified_matrix_user_id` method was silently returning with a
false value if the profile custom field did not exist, but the
`get_matrixid_from_moodle` method was creating the profile custom field
in the same situation. These have been swapped so a set operation will
create the field if it does not exist, but a get operation will not.
2023-07-24 10:35:52 +08:00
Paul Holden e630700fda MDL-78761 enrol: correct enrolment suspended state report filter. 2023-07-21 17:12:32 +01:00
Leon Stringer d2a563e79b MDL-45452 report_completion: Excel date format
When using either of the CSV download links (spreadsheet format or Excel-
compatible format) use an Excel-compatible format for date/times.

Co-Authored-By: Ray Morris <Ray.Morris@teex.tamu.edu>
2023-07-21 15:03:48 +01:00
Huong Nguyen b4cd63746a weekly release 4.3dev 2023-07-21 20:56:24 +07:00
Huong Nguyen fe43dbd421 NOBUG: Fixed SVG browser compatibility 2023-07-21 20:56:23 +07:00
Huong Nguyen 0b5e6c2314 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-07-21 20:56:21 +07:00
Dan Marsden a5ae5e6035 MDL-46279 mod_scorm: Fix updating of scorm values on re-entry to scorm. 2023-07-21 19:45:43 +12:00
Huong Nguyen 4d854e0f90 Merge branch 'MDL-78525-master' of github.com:HuongNV13/moodle 2023-07-21 11:59:10 +08:00
Huong Nguyen 14998e157d MDL-78525 core: Update upgrade.txt for count_words and count_letters 2023-07-21 11:59:10 +08:00
Ilya Tregubov 2e53b399b3 Merge branch 'MDL-76854-subscription_deleted' of https://github.com/leonstr/moodle 2023-07-21 11:59:09 +08:00
Huong Nguyen 9317d00bfb Merge branch 'MDL-78525/master' of https://github.com/skodak/moodle 2023-07-21 11:59:09 +08:00
Ilya Tregubov e55e256fe9 Merge branch 'MDL-75115-master' of https://github.com/meirzamoodle/moodle 2023-07-21 11:59:09 +08:00
Ilya Tregubov 74760c0e8f Merge branch 'MDL-76710-master' of https://github.com/call-learning/moodle 2023-07-21 11:59:08 +08:00
Andrew Nicols 703acdd148 Merge branch 'MDL-78716' of https://github.com/paulholden/moodle 2023-07-21 11:59:08 +08:00
Andrew Nicols ec4c6aa486 Merge branch 'MDL-78715' of https://github.com/paulholden/moodle 2023-07-21 11:59:07 +08:00
Andrew Nicols 56fa3ec14c Merge branch 'MDL-77645' of https://github.com/paulholden/moodle 2023-07-21 11:59:07 +08:00
Andrew Nicols b701a934ef Merge branch 'MDL-78719' of https://github.com/paulholden/moodle 2023-07-21 11:59:07 +08:00
Andrew Nicols 0eaafc713c Merge branch 'MDL-78280-master' of https://github.com/roland04/moodle 2023-07-21 11:59:05 +08:00
Andrew Nicols ae6cd11da9 Merge branch 'MDL-78503' of https://github.com/paulholden/moodle 2023-07-21 11:58:37 +08:00
Andrew Nicols 754868e462 Merge branch 'MDL-78532' of https://github.com/paulholden/moodle 2023-07-21 11:58:36 +08:00
Andrew Nicols de919962ea Merge branch 'MDL-77328-master-fix' of https://github.com/junpataleta/moodle 2023-07-21 11:58:36 +08:00
Andrew Nicols 094f5dbb5b Merge branch 'MDL-77745_master' of https://github.com/marxjohnson/moodle 2023-07-21 11:58:34 +08:00
Andrew Nicols b35160fda6 Merge branch 'MDL-78704-master' of https://github.com/rjnl/moodle 2023-07-21 11:57:16 +08:00
Jun Pataleta 26905eeb93 MDL-77328 question: Declare $qbank as a proper view_component property 2023-07-21 11:57:14 +08:00
Jun Pataleta 73259066c4 MDL-77328 qformat_xml: Avoid dynamic declaration for question_answer
Declare qformat_xml::answerfiles and qformat_xml::feedbackfiles instead
of dynamically declaring answerfiles and feedbackfiles for the
question_answer instance when exporting questions and answers to XML
format.
2023-07-21 11:57:14 +08:00
Jun Pataleta 185c14ad1a MDL-77328 qtype_caclulatedmulti: Use qtype_calculated_answer
The question answers for question type plugins extending
\qtype_calculated now have the type
\qtype_calculated\qtype_calculated_answer. So the answers for test
helper functions make_calculatedmulti_question_singleresponse() and
make_calculatedmulti_question_multiresponse() should also be changed
accordingly.
2023-07-21 11:57:13 +08:00
Jun Pataleta 9119d4513f MDL-77328 qtype_caclulatedsimple: Use qtype_calculated_answer
The question answers for question type plugins extending
\qtype_calculated now have the type
\qtype_calculated\qtype_calculated_answer. So the answers for
make_calculatedsimple_question_sum() should be changed accordingly.
2023-07-21 11:57:13 +08:00
Jun Pataleta 6ec75e40e0 MDL-77328 qtype_calculated: Add upgrade.txt notes
* Question type plugins that extend qtype_calculated should be made
aware of the changes about the new question_answer type
\qtype_calculated\qtype_calculated_answer.
2023-07-21 11:57:13 +08:00
Jun Pataleta fa3395bb8b Merge branch 'MDL-77328-master' of https://github.com/rezaies/moodle 2023-07-21 11:57:12 +08:00
Paul Holden aa4ae8f376 MDL-78742 tool_uploadcourse: configure show activity dates value. 2023-07-20 16:28:36 +01:00
Kevin Percy ead1e95032 MDL-77975 tool_usertours: Added tour for 4.2 grader report changes 2023-07-20 15:55:12 +08:00
Jun Pataleta 8764f03abf MDL-78770 tiny_recordrtc: Use proper window.console.warn() function 2023-07-20 14:22:14 +08:00
Jun Pataleta 4c233cdc51 MDL-78770 atto_recordrtc: Use proper window.console.warn() function 2023-07-20 14:22:01 +08:00
Khoa Nguyen Dang 7c9ecb192b MDL-78749 Accessibility\Quiz: Previous attempt table caption missing 2023-07-20 10:18:06 +07:00
Ilya Tregubov 565dbaa573 MDL-77447 gradereport_singleview: Add grade status icons 2023-07-20 10:55:21 +08:00
Ilya Tregubov 62588d8fb1 MDL-77447 gradereport_user: Add grade status icons. 2023-07-20 10:55:21 +08:00
Ilya Tregubov 5d4a322238 MDL-77447 core_grades: Create grade statuses template. 2023-07-20 10:55:20 +08:00
Ferran Recio 6e1fff1a57 MDL-78283 core_courseformat: group mode dropdown 2023-07-19 17:52:00 +02:00
Ferran Recio b121e998a9 MDL-78283 theme_boost: parent focus css helper 2023-07-19 17:22:35 +02:00
Mikel Martín 530691b1ca MDL-78280 completion: Fix behat for new completion UI
- The following behat step definitions were modified to work correctly both for course page conditions dialog and activity page
condition badges: 'activity_completion_condition_displayed_as', 'overridden_activity_completion_condition_displayed_as'
and 'activity_should_have_the_completion_condition'.
- Because now "Mark as done" manual completion button is not displayed for teachers in course homepage,
some behat steps were also modified.
2023-07-19 16:44:54 +02:00
Mikel Martín e5908a1ce4 MDL-78280 core_courseformat: New completion dropdown UI
- Move completion information to a new output class 'core_courseformat\output\local\content\cm\completion'
- Replace current dropdown with 'core\output\local\dropdown\dialog'
- Modify manual conditions logic in course page. Now 'Mark as done' button will only be displayed to
tracked users (with moodle/course:isincompletionreports capability)
- Add new styles for completion dialog contents
2023-07-19 16:44:54 +02:00
Mikel Martín 96d6b3675f MDL-78280 completion: Add is_manual() method to cm_completion_details 2023-07-19 16:44:54 +02:00
Mikel Martín ef583b2ad3 MDL-78280 pix: Add dot icon 2023-07-19 16:44:54 +02:00
Laurent David 664bc729fe MDL-76710 mod_bigbluebuttonbn: Action URL addons subplugin
* Add action URL extension point
2023-07-19 15:05:09 +02:00
Laurent David dfeedc5dab MDL-76710 mod_bigbluebuttonbn: Subplugin implementation
* Setup the base for extension type of plugins
    * Add basic unit test for extension plugin (callback and classes)
2023-07-19 15:05:09 +02:00
Huong Nguyen 728cdc0284 MDL-44190 backup: Always use the course context for course search 2023-07-19 11:26:55 +07:00
Huong Nguyen 18dca30eca MDL-44190 backup: Current course will be selected by default 2023-07-19 09:17:56 +07:00
AMOS bot f0db3c7a73 Automatically generated installer lang files 2023-07-19 00:11:08 +00:00
Paul Holden 36ab5e5d1a MDL-78532 reportbuilder: external method for retrieving system report. 2023-07-18 12:05:07 +01:00
Paul Holden ad06206508 MDL-78503 webservice: include token last access time in reports. 2023-07-18 09:19:24 +01:00
Andrew Nicols fb1d2f6367 Merge branch 'MDL-78543' of https://github.com/skodak/moodle 2023-07-18 15:42:18 +08:00
Jake Dallimore bba8388306 Merge branch 'MDL-74869-activity-icon-color-map' of https://github.com/Benjamin-unige/moodle 2023-07-18 14:45:56 +08:00
Jun Pataleta 9ad85f7e9b Merge branch 'MDL-78517-master' of https://github.com/sarjona/moodle 2023-07-18 13:15:07 +08:00
Dan Marsden 7f76e85397 MDL-46279 mod_scorm: re-factor database tables. 2023-07-18 16:10:47 +12:00
Shamim Rezaie dedbcaf074 Merge branch 'MDL-78564' of https://github.com/paulholden/moodle 2023-07-17 20:36:53 +10:00
Jake Dallimore a99e8fbdac MDL-78575 mod_lti: use activity icon styling for course tool icons 2023-07-17 09:22:18 +08:00
Jake Dallimore 51cc455525 MDL-78575 mod_lti: Add deletion support to course tools page 2023-07-17 09:22:18 +08:00
Jake Dallimore 5e077e1e46 MDL-78575 mod_lti: add behat coverage of course tools list page 2023-07-17 09:22:18 +08:00
Jake Dallimore 8d455f5adb MDL-78575 mod_lti: add course tool editing form as standalone page
This handles create/edit of course tools. Deletion will be supported via
an action and modal confirm on the coursetools listing page.
2023-07-17 09:22:17 +08:00
Leon Stringer c1ebab394d MDL-76854 tool_monitor: subscription_deleted ctx
Fix course context for subscription_deleted event when deleting rules
with multiple subscriptions.
2023-07-15 08:10:46 +01:00
Paul Holden 0eb34a4725 MDL-78703 behat: fix HTTP GET method capitalization on redirect. 2023-07-15 00:55:15 +01:00
Paul Holden d0d6938271 MDL-78719 tool_dataprivacy: prefetch correct select courses string. 2023-07-14 19:13:05 +01:00
Paul Holden 5fe5f398e2 MDL-78715 payment: prevent action menus flowing under container. 2023-07-14 17:12:51 +01:00
Paul Holden 82d06db348 MDL-78716 course: fix category idnumber updating logic.
Where only the case of the idnumber field was being updated, we
triggered an exception because checking for an exising idnumber
was not excluding the current category (i.e. the one being updated).
2023-07-14 15:11:07 +01:00
Paul Holden 90520abb4f MDL-78460 mod_forum: correctly render timed post label information. 2023-07-14 10:12:43 +01:00
Paul Holden 3fc5b80bc3 MDL-70135 mod_forum: reset formchangechecker when cancelling reply. 2023-07-14 10:08:17 +01:00
Paul Holden 6634a68487 MDL-70135 mod_forum: formchangechecker for inline discussion creation. 2023-07-14 10:08:17 +01:00
Benjamin Abraham c8482f09c6 MDL-74869 theme: Moved activity icon color into variables
Moved colors of the activity-icon-colors map into variables
with default value to make them easy to override.
2023-07-14 09:46:55 +02:00
Petr Skoda c1bb36eadb MDL-78543 admin: fix invalid default email setting with localhost site 2023-07-14 08:47:20 +02:00
Petr Skoda 24c416592c MDL-78543 admin: fix stored file setting default application 2023-07-14 08:47:20 +02:00
Petr Skoda 92446838ab MDL-78543 admin: refactor admin_apply_default_settings() 2023-07-14 08:47:20 +02:00
Petr Skoda 48df84a4a3 MDL-78525 core: fix word and character counting 2023-07-14 08:44:41 +02:00
Sara Arjona 47ba5d207c MDL-78517 completion: Homogenize the module settings
Reuse the code between default course completion settings and
activity completion form to avoid duplicating efforts and missing
features, as happened with the grading forum.
2023-07-14 07:09:04 +02:00
Jake Dallimore a8f496e48e MDL-78575 mod_lti: add course tools page to course
Uses a reportbuilder report to display course tools.
2023-07-14 11:00:29 +08:00
Ilya Tregubov e77452220b weekly release 4.3dev 2023-07-14 09:25:31 +08:00
Sara Arjona 8ecebfcc42 Merge branch 'MDL-76757-fixup' of https://github.com/timhunt/moodle 2023-07-13 21:42:09 +02:00
Tim Hunt 3ea0bdfba6 MDL-76757 delete questions: fix message generation logic
The order was getting scrambled.
2023-07-13 17:10:13 +01:00
Sara Arjona 2e78301afb Merge branch 'MDL-78288-master' of https://github.com/aanabit/moodle 2023-07-13 16:51:37 +02:00
Jun Pataleta 844257a539 Merge branch 'MDL-76046-master' of https://github.com/stevandoMoodle/moodle 2023-07-13 16:51:37 +02:00
Huong Nguyen 9f6e80f696 Merge branch 'MDL-75195-master' of https://github.com/raortegar/moodle 2023-07-13 16:51:04 +02:00
Huong Nguyen 5156669404 Merge branch 'MDL-50272' of https://github.com/paulholden/moodle 2023-07-13 16:51:04 +02:00
Huong Nguyen 256f83cc34 Merge branch 'MDL-76757-master' of https://github.com/danghieu1407/moodle 2023-07-13 16:51:04 +02:00
Andrew Nicols 3ed796bc10 Merge branch 'MDL-75125_master' of https://github.com/marxjohnson/moodle 2023-07-13 16:51:03 +02:00
Ilya Tregubov c2a9b7b11d Merge branch 'mdl-7133-master' of https://github.com/juancs/moodle 2023-07-13 16:49:59 +02:00
Jake Dallimore 66e6111165 Merge branch 'MDL-77912' of https://github.com/timhunt/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols 6d8db08c35 Merge branch 'MDL-78567-master' of https://github.com/stevandoMoodle/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols 19dbec600f Merge branch 'MDL-78157-master' of https://github.com/golenkovm/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols 837f57d218 Merge branch 'MDL-78556-master' of https://github.com/danghieu1407/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols 6c1cabaa3c Merge branch 'MDL-76996' of https://github.com/timhunt/moodle 2023-07-13 16:49:59 +02:00
Andrew Nicols 379a7cfb15 Merge branch 'MDL-78109-master' of https://github.com/sammarshallou/moodle 2023-07-13 16:49:59 +02:00
Ilya Tregubov 09c7cd98f4 Merge branch 'MDL-73213' of https://github.com/pedrojordao/moodle 2023-07-13 16:49:58 +02:00
Andrew Nicols 5d1a115c64 Merge branch 'MDL-78587' of https://github.com/paulholden/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona f01927885f Merge branch 'MDL-78673-master' of https://github.com/andrewnicols/moodle 2023-07-13 16:49:58 +02:00
Andrew Nicols af1af32037 Merge branch 'MDL-77450-master' of https://github.com/andelacruz/moodle 2023-07-13 16:49:58 +02:00
Andrew Nicols 82b4aae101 Merge branch 'MDL-78676-master' of https://github.com/sarjona/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona 675569572d Merge branch 'MDL-78455-master' of https://github.com/andelacruz/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona 79829fb12c Merge branch 'MDL-78642' of https://github.com/paulholden/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona 075377a996 Merge branch 'MDL-78522-master' of https://github.com/ilyatregubov/moodle 2023-07-13 16:49:58 +02:00
Sara Arjona 2c3f4d3ae9 Merge branch 'MDL-78288-master' of https://github.com/aanabit/moodle 2023-07-13 16:49:56 +02:00
Sara Arjona 65d2f9cddb Merge branch '76319-gradebook-add-missing-continue-button-master' of https://github.com/DSI-Universite-Rennes2/moodle 2023-07-13 16:49:28 +02:00
Jake Dallimore f508921418 Merge branch 'MDL-74568-master' of https://github.com/rmady/moodle 2023-07-13 16:49:28 +02:00
Meirza 2eb879360c MDL-77328 qtype_multianswer: Refactor for PHP 8.2 compatibility
This commit addresses compatibility issues in the qtype_multianswer
question type. The following changes were made:

- The usage of the undeclared property $maxmark on subquestions in
  qtype_multianswer was identified as problematic. To resolve this,
  the existing declared property $defaultmark is now being used for
  the same purpose.

By switching to the declared property $defaultmark, compatibility with
PHP 8.2 is ensured and the issue with the undeclared property is
resolved.
2023-07-13 21:03:23 +10:00
Shamim Rezaie 9f00818d00 MDL-77328 qtype_calculated: Refactor for PHP 8.2 compatibility
This commit addresses compatibility issues in the qtype_calculated
question type. The following problems were identified and resolved:

- qtype_calculated was reusing the qtype_numerical_answer class and
  setting two additional properties ($correctanswerlength and
  $correctanswerformat) that were not declared. To resolve this, a new
  class, qtype_calculated_answer, was defined and utilised.
- During grading in qtype_numerical, there were references to an
  undeclared property ($unitisright) used to track calculation details.
  This issue was fixed using a 'replace temp with query' refactoring.

These changes ensure the qtype_calculated question type is compatible
with PHP 8.2 and addresses the identified issues.
2023-07-13 21:03:23 +10:00
Meirza 2b23c8cee2 MDL-77328 qtype_truefalse: Refactor for PHP 8.2 compatibility
This commit addresses the following issues and improvements in the
qtype_truefalse class:

- Added missing class properties:
 - public $truefeedbackformat
 - public $falsefeedbackformat
 - public $showstandardinstruction
- Updated qtype_truefalse_question to include type hinting for better
  IDE support.
2023-07-13 21:03:22 +10:00
Mark Johnson cc1ae8d5b3 MDL-77745 mod_quiz: Confirm display of question version in behat tests 2023-07-13 11:11:43 +01:00
Mark Johnson ab8a4dd8cb MDL-77745 core_question: Show question version in info box 2023-07-13 11:11:43 +01:00
Amaia Anabitarte 13857d4af9 MDL-78288 core_course: Fixing collapse/expand all changed behavior 2023-07-13 09:32:20 +02:00
Mathew May c0bce6f582 MDL-78043 grades: Migrate delete item confirmation to modal 2023-07-13 13:16:12 +08:00
Rajneel Totaram 43a6eaa142 MDL-78704 course: Render unescaped HTML for activity dates 2023-07-13 13:12:38 +12:00
Paul Holden 1125af7857 MDL-78587 course: use tertiary nav selector on participant pages. 2023-07-12 18:26:23 +01:00
Paul Holden 826553d9eb MDL-78587 behat: page instance resolvers for group overview/groupings. 2023-07-12 18:01:34 +01:00
sam marshall 8df2ac4e98 MDL-78109 core_cache: Remove harmful requirelockingwrite/read options
These cache options are not used in core and would cause a performance
cost without any benefit if ever used. Also they don't work properly.
2023-07-12 15:33:15 +01:00
Paul Holden 58963baba4 MDL-77645 course: ensure active enrolments are considered for drawer.
Otherwise the enrolment index page tries to load the course index
drawer, which doesn't exist at this point and triggers exceptions in
the editor module.

Co-authored-by: Tim Volckmann <tim.volckmann@mastersolution.com>
2023-07-12 14:26:17 +01:00
Amaia Anabitarte 841d552942 MDL-78288 core_course: Hide access restrictions textarea till ready 2023-07-12 14:23:17 +02:00
Amaia Anabitarte 6c1471c755 MDL-78288 core_course: Adding a link to edit availability settings
AMOS BEGIN
  CPY [editsettings,moodle],[editsettings,core_availability]
AMOS END
2023-07-12 14:23:17 +02:00
Amaia Anabitarte b9a840f638 MDL-78288 behat: New availability info selectors
- Create a new availability info selectors for section and activity data info regions
- Replace css_element by created selectors in the existing behat tests
2023-07-12 14:22:56 +02:00
Amaia Anabitarte 290e6f4c6f MDL-78288 core_course: Adding filter_shown_headers option to forms 2023-07-12 14:22:56 +02:00
Tim Hunt 931a4cbd56 MDL-76996 question bank: fix errors when qbank_statistics is disabled 2023-07-12 11:46:38 +01:00
Julien Boulen bed5c86df8 MDL-45743 forum: trigger an event when locking/unlocking a discussion 2023-07-12 10:25:01 +02:00
Julien Boulen 8d36ef8dbc MDL-45743 forum: trigger an event when changing subscription mode 2023-07-12 10:25:01 +02:00
Ilya Tregubov 8219595f7e Merge branch 'MDL-72493-master' of https://github.com/mihailges/moodle 2023-07-12 10:05:54 +08:00
Miri Lipson b8f3b85232 MDL-75115 theme_boost: Fix Bootstrap tooltips in RTL mode 2023-07-12 08:58:56 +07:00
Ilya Tregubov dc88bd8c8d Merge branch 'MDL-78216-master-1' of https://github.com/mihailges/moodle 2023-07-12 09:44:21 +08:00
Tim Hunt 744e6f836e MDL-77912 questions: make multi-choice stats calc robust to bad data 2023-07-11 16:57:11 +01:00
raortegar b914f01316 MDL-75195 core: Added supportemail option to install_database.php 2023-07-11 11:13:03 +02:00
danghieu1407 34bc6214dc MDL-78556 tablelib: flexible_table should support caption tag 2023-07-11 13:40:33 +07:00
Darren Cocco 0f5a9e7680 MDL-72493 mod_quiz: Use question cache when starting attempt.
Replaced custom loading of data and then question object
creation using internal question_bank functionality with
question_bank::load_question.

Removed the call $quizobj->load_questions as it is
redundant.
2023-07-11 13:47:50 +08:00
Angelia Dela Cruz 83a73da1a3 MDL-77450 Behat: Behat cleanup and optimisation 2023-07-11 13:22:02 +08:00
Ilya Tregubov f809ea7cb7 Merge branch 'MDL-67852_MASTER_NEW' of https://github.com/aydevworks/moodle 2023-07-11 11:11:02 +08:00
Ilya Tregubov c44ca828af Merge branch 'MDL-77690-master' of https://github.com/junpataleta/moodle 2023-07-11 09:51:18 +08:00
Ilya Tregubov ffef7024dc Merge branch 'MDL-78633-master' of https://github.com/aanabit/moodle 2023-07-11 09:39:21 +08:00
Ilya Tregubov 29591baf30 Merge branch 'MDL-78183-master' of https://github.com/aanabit/moodle 2023-07-11 09:35:04 +08:00
Ilya Tregubov 254fd16dcd Merge branch 'MDL-75359' of https://github.com/paulholden/moodle 2023-07-11 09:29:20 +08:00
Amaia Anabitarte b14669a34a MDL-78633 core_course: Improve tertiary navigation in course completion 2023-07-10 15:07:50 +02:00
Sara Arjona 97ed236dee Merge branch 'MDL-78279-master' of https://github.com/ferranrecio/moodle 2023-07-10 13:37:27 +02:00
Ferran Recio 205cd5a338 MDL-78279 tool_componentlibrary: add dropdown page 2023-07-10 11:41:20 +02:00
Ferran Recio 2fc8a263a8 MDL-78279 output: behats for dropdown components 2023-07-10 11:41:20 +02:00
Ferran Recio 109a97cff3 MDL-78279 output: new status dropdown component
This compoment allow the user to select a status from a user
choice instance. It is rendered as a dropdown menu triggered by
a button.
2023-07-10 11:41:20 +02:00
Ferran Recio 59bda4137d MDL-78279 output: user choice output class
A class to represent a generic user choice. Other output compoments
can use this output to render user choices like selects, modals or
dropdowns.
2023-07-10 11:41:20 +02:00
Ferran Recio e3645f663b MDL-78279 output: new generic dropdown component 2023-07-10 11:41:19 +02:00
Julien Boulen 966f926813 MDL-76319 gradebook: add continue button after csv grades import error 2023-07-10 10:17:48 +02:00
Jake Dallimore 348e347f79 MDL-78575 core_reportbuilder: allow reports to override the zerostate
Allow report implementations to control what is shown when no results
are found for the current report+filters. Allow setting to null to
allow calling code to omit this notice entirely.
2023-07-10 15:55:56 +08:00
danghieu1407 ab4cb28883 MDL-76757 Question bank: Can not delete the question completely 2023-07-10 14:30:01 +07:00
Sara Arjona 2fcdfc17c1 Merge branch 'MDL-78648-master' of https://github.com/rmady/moodle 2023-07-10 07:35:19 +02:00
Sara Arjona e0c1f5059b Merge branch 'MDL-78031-master' of https://github.com/ilyatregubov/moodle 2023-07-10 07:32:41 +02:00
Andrew Nicols dff354bb4f MDL-78673 grade: Switch test to use generators 2023-07-10 11:21:15 +08:00
Andrew Nicols 50944e456c MDL-78673 grade: Switch to behat navigation steps 2023-07-10 11:21:15 +08:00
Andrew Nicols 28d3fa7ece MDL-78673 grade: Address random failure due to toast 2023-07-10 11:21:14 +08:00
Andrew Nicols 2b7daa3b28 MDL-78673 behat: Allow plugins to define their expansion of > 2023-07-10 09:52:46 +08:00
Andrew Nicols 3d5afd6061 Merge branch 'MDL-75810' of https://github.com/paulholden/moodle 2023-07-09 22:23:29 +08:00
Andrew Nicols 0ea62b97f2 Merge branch 'MDL-78184-master' of https://github.com/sarjona/moodle 2023-07-09 22:16:01 +08:00
Andrew Nicols ce863c2d3f Merge branch 'MDL-77180' of https://github.com/paulholden/moodle 2023-07-09 22:13:51 +08:00
Andrew Nicols f7c52739c0 MDL-73239 core_my: Fix coverage 2023-07-09 22:12:10 +08:00
Andrew Nicols c472ba4738 Merge branch 'MDL-73239-master' of https://github.com/rmady/moodle 2023-07-09 22:02:22 +08:00
Andrew Nicols 14029657a7 MDL-76717 question: Coding style fixes 2023-07-09 21:59:13 +08:00
Alex Yeung 73f3bb23be MDL-67852 tool_dataprivacy: Fix security checks 2023-07-09 14:35:20 +01:00
Juan Segarra Montesinos 3a78fb7662 MDL-71133 mod_assign: Grade decimals missing with marking workflow 2023-07-09 08:11:18 +02:00
Andrew Nicols 05a8ac58db Merge branch 'MDL-76717_master' of https://github.com/marxjohnson/moodle 2023-07-08 13:01:47 +08:00
Sara Arjona aaa1520879 MDL-78676 mod_data: Check completion rules properly
The completion_rule_enabled() method was not checking all the fields
and, in some cases, it was returning false (because it was not checking
that "Count of entries" field was enabled).
2023-07-07 18:27:10 +02:00
Paul Holden 20280c0405 MDL-77180 customfield: allow entry of formatted category names.
Change the param type of the category name when editing to allow
for entry of multilang tags, the formatting of which is already
supported when returning category name.

Co-authored-by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
2023-07-07 14:59:44 +01:00
Paul Holden 2ffda63da8 MDL-75359 reportbuilder: fixes for custom/user profile field elements.
Ensures cross-DB compatibility for all types of both custom and user
profile fields, specifically when they're filtered and/or aggregated.

Implement stress testing of both via appropriate report sources.
2023-07-07 14:45:24 +01:00
Jun Pataleta 73e90326d0 Merge branch 'MDL-78316-master' of https://github.com/andrewnicols/moodle 2023-07-07 18:56:07 +08:00
Amaia Anabitarte 0d11cf1bc9 MDL-78183 core_contentbank: Improve error handling 2023-07-07 12:21:24 +02:00
Andrew Nicols 3ff84d3eb7 MDL-78316 core: Improve jsdoc typedef for icons 2023-07-07 16:31:54 +08:00
Andrew Nicols f57af194fb MDL-78316 core: Update async promises
Writing a Promise as:
```
const promise = new Promise(async (resolve, reject) => {
  return await 'foo';
});
```

Is equivalent to an IIFE:
```
const promise = (async () => {
  return await 'foo';
})();
```

A recent change introduced by MDL-74301 picks this up.

This commit addresses this flagged issue.
2023-07-07 16:23:26 +08:00
Andrew Nicols 5b54ac43b1 MDL-78316 core: Move IconSystem init to Factory
This is throwback to times when we understood JS less.

We should not have the factory method for the IconSystem in
core/templates.
2023-07-07 16:13:28 +08:00
Andrew Nicols c0043004e1 MDL-78316 core: Convert IconSystems to ESM 2023-07-07 16:13:27 +08:00
Ilya Tregubov a688a9369f MDL-78522 cohort: Enable tests that were disabled in 73839. 2023-07-07 15:42:30 +08:00
Ilya Tregubov 5f7839f06b MDL-78522 cohort: Fix capability/visibility check. 2023-07-07 15:41:14 +08:00
Sara Arjona abcbeca33d MDL-78184 badges: Improve user flow for connecting backpack 2023-07-07 08:53:43 +02:00
Ilya Tregubov ef93325f27 weekly release 4.3dev 2023-07-07 11:52:14 +08:00
Ilya Tregubov 362f518966 NOBUG: Fixed SVG browser compatibility 2023-07-07 11:52:11 +08:00
Ilya Tregubov c4142e01c8 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-07-07 11:52:11 +08:00
Pedro Jordao 8658b4937f MDL-73213 autocomplete: keep selected value when the state changes.
The selected value of the dropdown was being cleared when the dropdown
was opened, this was causing an error when submitting the form if the
field was required. The main cause was that we were emptying the
select before loading new values, this solution was created because
of an issue where we could not deselect values if the list was
reloaded. To fix this problem, I added an empty option as the first
element of the select only when deselecting a certain item.
2023-07-06 14:52:18 -03:00
Lars Bonczek 898a7571ef MDL-78618 core_course: use UNION in get_nearest_editable_subcategory 2023-07-06 18:51:55 +02:00
Rodrigo Mady 9a5eb76a56 MDL-78648 badges: Fix in unit tests for test_get_user_badge_by_hash 2023-07-06 09:41:03 -03:00
Sara Arjona 1e69127a22 Merge branch 'MDL-78391-master' of https://github.com/HuongNV13/moodle 2023-07-06 11:02:18 +02:00
Huong Nguyen 7add5faa9e MDL-78391 atto_recordrtc: Fix recording issue with Chrome 2023-07-06 15:37:03 +07:00
Huong Nguyen 592e9590d0 MDL-78391 tiny_recordrtc: Fix recording issue with Chrome 2023-07-06 15:33:38 +07:00
Sara Arjona 53266c02c1 Merge branch 'MDL-77375-master-patch' of https://github.com/ilyatregubov/moodle 2023-07-06 10:11:46 +02:00
Misha Golenkov f9778c849d MDL-78379 js: Add missing newline character 2023-07-06 15:55:31 +10:00
Ilya Tregubov 86d1a91fd6 MDL-77375 tool_dataprivacy: Fix menus going floaty. 2023-07-06 13:08:27 +08:00
Jun Pataleta 9c73441c4a Merge branch 'MDL-78391-master' of https://github.com/andrewnicols/moodle 2023-07-06 11:59:04 +08:00
Ilya Tregubov 6773badd97 Merge branch 'MDL-76203' of https://github.com/liorgil/moodle 2023-07-06 11:29:54 +08:00
Jun Pataleta d3767cb9f6 Merge branch 'MDL-78488' of https://github.com/t-schroeder/moodle 2023-07-06 11:17:03 +08:00
Ilya Tregubov 9bdea50803 MDL-78031 gradereport_grader: Always show Aggregation position setting
It seems it was the only advanced setting.
2023-07-06 10:39:41 +08:00
Ilya Tregubov b924f68081 Merge branch 'MDL-69983-master' of https://github.com/davewoloszyn/moodle 2023-07-06 10:25:40 +08:00
Franziska Hübler 0458672a77 MDL-69983 backup: Save async backups in correct area. 2023-07-06 12:12:19 +10:00
Ilya Tregubov 39662f1e32 Merge branch 'MDL-78608' of https://github.com/timhunt/moodle 2023-07-06 09:56:37 +08:00
Jun Pataleta c1de49bd6c Merge branch 'MDL-78484-master' of https://github.com/NashTechOpenUniversity/moodle 2023-07-06 09:41:41 +08:00
Ilya Tregubov 94452ea194 Merge branch 'MDL-77375-master' of https://github.com/rezaies/moodle 2023-07-06 09:19:57 +08:00
Jun Pataleta 14d37a274e Merge branch 'MDL-74893-master-fix_auto_login_guest' of https://github.com/praxisdigital/moodle 2023-07-06 09:14:29 +08:00
Ilya Tregubov 048edee1e2 Merge branch 'MDL-74301-master' of https://github.com/kabalin/moodle 2023-07-06 09:06:31 +08:00
Paul Holden 8049fa2b17 Merge branch 'MDL-78542-master' of https://github.com/junpataleta/moodle 2023-07-05 17:13:20 +01:00
Andrew Nicols acbf2c0c1b Merge branch 'MDL-78644' of https://github.com/paulholden/moodle 2023-07-05 22:10:16 +08:00
Andrew Nicols 545c7e3037 Merge branch 'MDL-77563-master' of https://github.com/rezaies/moodle 2023-07-05 22:06:21 +08:00
Andrew Nicols cee81e21c1 Merge branch 'MDL-77599' of https://github.com/stronk7/moodle 2023-07-05 21:58:47 +08:00
Andrew Nicols 59d844b9cd Merge branch 'MDL-78622' of https://github.com/timhunt/moodle 2023-07-05 21:55:54 +08:00
Rodrigo Mady fcdd5bb53d MDL-78559 mod_chat: Fix chat report loading with TeX filter 2023-07-05 10:54:33 -03:00
Andrew Nicols e9b389f64b Merge branch 'MDL-78637' of https://github.com/paulholden/moodle 2023-07-05 21:53:07 +08:00
Andrew Nicols 7929267880 Merge branch 'MDL-64152-master' of https://github.com/snake/moodle 2023-07-05 21:17:28 +08:00
Paul Holden d9a379a1c3 MDL-78642 mod_assign: typecast portfolio button renderer return.
Internally the button return is nullable, which we need to account
for in the renderer.
2023-07-05 13:51:48 +01:00
Andrew Nicols e1c9921d5d Merge branch 'MDL-78614-master' of https://github.com/noeldemartin/moodle 2023-07-05 20:30:07 +08:00
Huong Nguyen 880fd8a253 Merge branch 'MDL-77055-master' of https://github.com/rmady/moodle 2023-07-05 15:00:37 +07:00
Ilya Tregubov f8a65969a4 Merge branch 'MDL-78485-master' of https://github.com/stevandoMoodle/moodle 2023-07-05 11:51:23 +08:00
Andrew Nicols 2b19f23665 Merge branch 'MDL-78158-master' of https://github.com/andelacruz/moodle 2023-07-05 10:23:32 +08:00
Andrew Nicols 614514cdea Merge branch 'MDL-77873-master' of https://github.com/lucaboesch/moodle 2023-07-05 09:55:13 +08:00
Ilya Tregubov 7ccab6d218 Merge branch 'MDL-48762-master' of https://github.com/sarjona/moodle 2023-07-05 08:55:45 +08:00
Paul Holden 85afb069a0 MDL-78644 files: more fault tolerant resizing of logos/icons.
If we cannot resize the given file (files such as ICO can't be, for
SVG it makes no sense), then we should just return the original file
as is rather than an error.
2023-07-05 00:54:03 +01:00
Luca Bösch 2c8b35dd23 MDL-77873 quiz: style the question number edit elements. 2023-07-04 23:25:16 +02:00
Paul Holden 2974f5aeb6 MDL-50272 repository: deprecate base class get_file_size method. 2023-07-04 16:54:28 +01:00
Andrew Nicols 619f6fc2ca Merge branch 'MDL-73839-master-6' of https://github.com/ilyatregubov/moodle 2023-07-04 22:11:53 +08:00
Sara Arjona 9c51739570 Merge branch 'MDL-40084-master' of https://github.com/phmemmel/moodle 2023-07-04 13:58:41 +02:00
Huong Nguyen 54d470c313 Merge branch 'MDL-77732-master' of https://github.com/lameze/moodle 2023-07-04 17:10:26 +07:00
Stephan Robotta 1468ecf294 MDL-77732 navigation: fix active flag in navigation for custom menus
This is a follow up of MDL-75908 because a Behat tests with the Chrome
driver was failing and it could be traced back to the changes of
MDL-750908. There was no issue with the Firefox driver and
apparently no issue when using the Chrome browser under normal
circumstances.
2023-07-04 17:10:15 +07:00
Stephan Robotta a617b9f6d7 MDL-77732 navigation: fix active flag in navigation for custom menus 2023-07-04 17:09:59 +07:00
Huong Nguyen c2203091f3 Merge branch 'master_MDL77396_Fix' of https://github.com/Dineshdurai/moodle 2023-07-04 16:15:04 +07:00
Huong Nguyen 65c584e9f9 Merge branch 'MDL-78596-coursecard-divider' of https://github.com/leonstr/moodle 2023-07-04 15:27:38 +07:00
Huong Nguyen 1e804cdb6a Merge branch 'MDL-78578-master' of https://github.com/snake/moodle 2023-07-04 15:15:33 +07:00
Huong Nguyen 12393ffa5f Merge branch 'MDL-78617-master' of https://github.com/ilyatregubov/moodle 2023-07-04 15:01:52 +07:00
Sara Arjona d5d59e5c94 Merge branch 'MDL-78174_master' of https://github.com/marxjohnson/moodle 2023-07-04 08:22:52 +02:00
Huong Nguyen 49d6cad6dd Merge branch 'MDL-76853-master' of https://github.com/andrewnicols/moodle 2023-07-04 12:45:49 +07:00
Huong Nguyen a5f2833847 Merge branch 'MDL-78138-master' of https://github.com/lucaboesch/moodle 2023-07-04 12:37:30 +07:00
Stevani Andolo c2be53493d MDL-78485 editor_tiny: Allowed script tag to be added in tinyMCE editor 2023-07-04 13:36:10 +08:00
Andrew Nicols dd48eb3284 Merge branch 'MDL-75324-master' of https://github.com/lameze/moodle 2023-07-04 13:29:53 +08:00
Sara Arjona 81d05b542b MDL-48762 course: Different string if show/hide tasks are enabled
The help message for the Course start/end date will be different
when the show_started_courses_task/hide_ended_courses_task tasks
are enabled, to let add some reference to this feature.
2023-07-04 07:27:03 +02:00
Sara Arjona ff46626da9 MDL-48762 core: Add scheduled tasks to set course visibility
Two new scheduled tasks, show_started_courses_task and
hide_ended_courses_task have been added, to automatically change
the course visibility when the start/end course date match the
current one.
They are disabled by default, to keep the current behaviour.
When admins enable any of them, they are executed once per
day by default (around midnight).

These scheduled tasks are based on the "CUL Course Visibility Update"
third-party plugin created by Tim Gagen and refactored and currently
maintained by Amanda Doughty:
https://moodle.org/plugins/local_culcourse_visibility

Thanks!! :-)
2023-07-04 07:27:03 +02:00
Andrew Nicols 533e71a302 Merge branch 'MDL-76840' of https://github.com/uzimike/moodle 2023-07-04 13:20:51 +08:00
Andrew Nicols 3ab51da3f3 Merge branch 'MDL-77356-master' of https://github.com/davewoloszyn/moodle 2023-07-04 13:14:55 +08:00
Simey Lameze c5e7eb312b MDL-75324 behat: use a proper step to verify completion status 2023-07-04 11:15:10 +08:00
Ilya Tregubov d1100f0a51 Merge branch 'MDL-78188-master' of https://github.com/kevpercy/moodle 2023-07-04 10:36:00 +08:00
AMOS bot a772abd19a Automatically generated installer lang files 2023-07-04 00:11:44 +00:00
Angelia Dela Cruz 09d654b3fe MDL-78158 behat: Behat cleanup and optimisation 2023-07-04 07:01:27 +08:00
Sara Arjona 06e355664e Merge branch 'MDL-78200-master' of https://github.com/aanabit/moodle 2023-07-03 17:43:08 +02:00
Sara Arjona a3452bd17a Merge branch 'MDL-77868' of https://github.com/paulholden/moodle 2023-07-03 17:29:29 +02:00
Sara Arjona 71aba52406 Merge branch 'MDL-76661' of https://github.com/paulholden/moodle 2023-07-03 17:26:15 +02:00
Ruslan Kabalin 572ca40ce7 MDL-74301 eslint: Enable 'reportUnusedDisableDirectives' eslint setting
This will warn on unused /* eslint-disable */ statements.
2023-07-03 15:21:53 +01:00
Ruslan Kabalin 58d8a124ca MDL-74301 eslint: Remove rules included in eslint:recommended
All rules included in "eslint:recommended" set containing matching
values are removed from the list. Recommended set is defined in
node_modules/eslint/conf/eslint-recommended.js
2023-07-03 15:21:53 +01:00
Ruslan Kabalin 61113e0311 MDL-74301 eslint: Remove deprecated rules.
To identify deprecated rules, temporary install sarbbottam/eslint-find-rules, then run
`npx eslint-find-rules -d .eslintrc`, it will return a list of rules
defined in .eslintrc that were deprecated.
2023-07-03 15:21:53 +01:00
Ruslan Kabalin 7d6595e42a MDL-74301 eslint: Refactor jsdoc rules.
Adding 'plugin:promise/recommended' results in 5k+ jsdoc warnings most
of which includes missing return and naming preferences (e.g. 'returns'
over 'return' or 'string' over 'String'). This needs to be audited and
addressed seprately.
2023-07-03 15:21:53 +01:00
Ruslan Kabalin 99897b81ec MDL-74301 eslint: Use 'plugin:promise/recommended'
This enables recommended rules and brings back related rules. Without
reducing level to warn for some of them, this gives numerous (about 88) issues mainly
catch-or-return. Recommended set is defined in
node_modules/eslint-plugin-promise/index.js
2023-07-03 15:21:53 +01:00
Ruslan Kabalin 80a111d25e MDL-74301 eslint: Address issues reported by eslint 2023-07-03 15:21:53 +01:00
Ruslan Kabalin b5bb8704e3 MDL-74301 eslint: Change configuration and use 'eslint:recommended' 2023-07-03 15:21:53 +01:00
Ruslan Kabalin 6ae753406b MDL-74301 eslint: Upgrade eslint and babel
This patch includes changes:
* Upgrade "@babel/core" to latest point release
* Remove plugins already included into current "@babel/preset-env":
  - "@babel/plugin-proposal-class-properties"
  - "@babel/plugin-proposal-json-strings"
  - "@babel/plugin-syntax-dynamic-import"
  - "@babel/plugin-syntax-import-meta"
* Upgrade "eslint" to latest version
* Replace "eslint-plugin-babel" (depreacted in 2019) with "@babel/eslint-parser" and "@babel/eslint-plugin"
2023-07-03 15:21:53 +01:00
Amaia Anabitarte 85e554b2d1 MDL-78200 course: Add group mode information to course page 2023-07-03 15:58:58 +02:00
Eloy Lafuente (stronk7) d9f7fe9c3f MDL-77599 coding-style: Replace forbidden @const tags by @var
@const is not a valid phpdoc tag and @var should be used to
document both classes properties and constants (no matter how
weird that may sound, heh).

Link to (draft right now) PHP-FIG:

https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc-tags.md#518-var

So, with this commit we are just replacing all uses by the correct
@var one. Note that the type is entirely optional, in fact I think
that there isn't much need of it for constants because it's obvious
for both humans and machines which the type is. But, as far as it's
also correct to specify it, we haven't modified that detail.

The only detail modified are the cases where the constant name was
specified in the phpdoc, that's not needed, hence, the names have
been removed from there when present (a couple of cases).
2023-07-03 15:58:16 +02:00
Paul Holden 686b054b78 MDL-78637 webservice: display token info after user performs reset. 2023-07-03 14:26:38 +01:00
Paul Holden d6313c045a MDL-78377 grade: reset page number when filtering by group. 2023-07-03 12:53:02 +01:00
Tim Hunt 0f75a41fbf MDL-78622 quiz: add question query must include contextid
It is logically requried and necessary for the query to use the index
2023-07-03 11:50:42 +01:00
Paul Holden 9cd4040565 MDL-76661 mod_bigbluebuttonbn: fix meeting attendee role comparison. 2023-07-03 11:41:08 +01:00
Mark Johnson f3e3bac918 MDL-78174 core_question: Build tertiary navigation using qbank plugins 2023-07-03 11:29:04 +01:00
Angelia Dela Cruz 9f101a30b2 MDL-78158 Behat: Use data generators to add blocks 2023-07-03 17:41:21 +08:00
Noel De Martin 68712853d9 MDL-78614 behat: Remove trailing quotes 2023-07-03 11:18:09 +02:00
Andrew Nicols 2d56e0df66 MDL-78391 atto_recordrtc: Improve MacOS codec compatability 2023-07-03 16:52:28 +08:00
Andrew Nicols a6e697c8a4 MDL-78391 tiny_recordrtc: Set filename according to container 2023-07-03 16:52:26 +08:00
Andrew Nicols 323f5237de MDL-78391 tiny_recordrtc: Switch to mp4 container for h264
The recommendation at
https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Containers
is to use webm with an mp4 fallback.

General purpose video, preferably in an open format
WebM (ideally with MP4 fallback)
2023-07-03 16:52:07 +08:00
Andrew Nicols bb44b2a1c6 MDL-78391 tiny_recordrtc: Improve codec selection
From my experimentation I have discovered that Safari does not properly
respect the standard MediaRecorder mimetype. Instead of using `codecs=`
it uses `codecs:`.

This change copies the codec array to have the list of possible codecs
include both codecs= and codecs: whilst remaining in order.
2023-07-03 16:50:14 +08:00
Andrew Nicols 5fd2b9d4bd MDL-78391 tiny_recordrtc: Respect codec options
The audio and video plugins were overriding the wrong method, and thus
preventing selection of a relevant codec and breaking playback on some
devices.
2023-07-03 16:50:11 +08:00
Andrew Nicols fab0fa5dfc MDL-76853 editor_tiny: Refactor behat helpers into trait 2023-07-03 09:38:08 +08:00
Andrew Nicols d0214f0796 Merge branch 'MDL-54704-db-ssl' of https://github.com/catalyst/moodle 2023-07-03 09:36:03 +08:00
Lior Gil e464bf3c7d MDL-76203 weblib: Add BDI support to the HTML purifier 2023-07-02 09:05:27 +03:00
Philipp Memmel fc13869f5a MDL-40084 mod_data: Rename and move entries ex-/importer classes
Also:
- Extend test coverage
- Small bug fixes
- Codestyle
2023-07-01 20:42:01 +02:00
Shamim Rezaie c99afc4bff MDL-77563 mod_assign: Improve how grader name is hidden 2023-07-02 01:33:32 +10:00
Shamim Rezaie 8207eaa5d3 MDL-77375 output: Deprecate action_menu::set_constraint() 2023-07-02 00:41:22 +10:00
Shamim Rezaie 316d79d038 MDL-77375 core: Cleanup redundant set_constraint() calls
Also removed the 10rem bottom margin form the quiz editing page. It was
there to make sure that there is enough room for the 'add new question'
dropdown. But it's not needed anymore (hasn't been since long time ago).
2023-07-02 00:41:22 +10:00
Shamim Rezaie 848efb3f13 MDL-77375 core_grades: set boundary of the dropdowns in grade setup page 2023-07-02 00:41:22 +10:00
Shamim Rezaie 91c29c250f MDL-77375 gradereport_singleview: set boundary of the dropdowns 2023-07-02 00:41:22 +10:00
Paul Holden 390d1c9c02 MDL-78564 mod_assign: ensure submission statement is present.
Don't require acceptance of statement, if no such statements exists,
during assignment submission.
2023-06-30 14:19:56 +01:00
Tim Schroeder b42ca2cbbd MDL-78488 question bank: don't load statistics when they are disabled 2023-06-30 11:39:04 +02:00
Jun Pataleta 88e8e0a5ca MDL-78542 mod_url: clicktoopen lang string fix
- Improve the grammatical structure of the lang string.
- Remove the mention of "link", for sighted users, it should already
be obvious that it's a link. For screen reader users, screen readers
already announce links. So it would be confusing for them to hear
something like "Click 'Moodle.org, link' link to open resource"
2023-06-30 17:26:57 +08:00
Jun Pataleta e8b3a7e766 MDL-78542 mod_url: Add a help text for URL resource name field
Add a help text explaining that the URL resource's name field will be
used for the link text. Also add basic guidelines about naming links for
the benefit of screen reader users.
2023-06-30 17:26:44 +08:00
Jun Pataleta 8d8af19af0 MDL-78542 mod_url: Use the module name for the URL resource's link text 2023-06-30 17:26:44 +08:00
Huong Nguyen 65b13ed81b Merge branch 'MDL-78204-master' of https://github.com/roland04/moodle 2023-06-30 16:12:10 +07:00
Huong Nguyen ac3f0f3622 Merge branch 'MDL-76769' of https://github.com/paulholden/moodle 2023-06-30 16:07:12 +07:00
Jun Pataleta bc78914b30 MDL-77690 mod_lesson: Lesson accessibility fixes
* Set the heading levels of lesson pages appropriately to avoid skipped
heading issues.
* Add appropriate labels for tertiary navigation select menus.
2023-06-30 17:00:38 +08:00
Jun Pataleta a587bcc4a2 MDL-77690 core: New activity_header method get_heading_level()
Add a new method for activity_header that determines the heading level
depending on whether the theme displays a heading for the activity
header (usually a h2 heading with the activity name).

E.g. in Boost, the activity name is already being displayed in a
heading. So page headings can be rendered as h2. However, on Classic,
the activity name is being displayed as a h2 heading. So headings need
to be adjusted for the activity pages.
2023-06-30 17:00:33 +08:00
Jun Pataleta ca07598c6f MDL-77690 user: Add sr-only heading for the user profile page 2023-06-30 17:00:03 +08:00
Huong Nguyen 89b41be029 Merge branch 'MDL-78454' of https://github.com/paulholden/moodle 2023-06-30 16:00:02 +07:00
Jun Pataleta 08cb2fea89 Merge branch 'MDL-78068-master' of https://github.com/laurentdavid/moodle 2023-06-30 16:42:43 +08:00
Jake Dallimore a44b66b5fc MDL-64152 library: Fix legacy LTI launches when using reverse proxy
LTI 1.1 uses OAuth 1.0, which requires 'hostname', among other things,
as part of signature verification. When Moodle is run behind a reverse
proxy, $_SERVER['SERVER_NAME'] is an unreliable way to fetch hostname.
It isn't always equal to the external hostname but instead can contain
the local host, meaning the signature verification will fail. This
change replaces the use of $_SERVER vars with $FULLME - which already
takes this into account - to fix the signature verification.

Co-authored-by: Berengar W. Lehr <Berengar.Lehr@uni-jena.de>
2023-06-30 16:41:03 +08:00
Srdjan bb1ecd8ea4 MDL-54704 dml: support for SSL with MySQL / MariaDB and PostgreSQL 2023-06-30 15:41:39 +10:00
Ilya Tregubov a82ccf2b83 MDL-73839 tool_uploadcourse: Temporary disable some tests.
This commit will be reverted in MDL-78522.
2023-06-30 11:57:49 +08:00
Ilya Tregubov fb4304b075 MDL-73839 tool_uploadcourse: Enable cohort enrolment for course upload. 2023-06-30 11:57:49 +08:00
Ilya Tregubov 491a784813 MDL-73839 tool_uploadcourse: Proper enrol instance updates.
We should use update_instance() method instead of direct query.
Fixed validation role method to validate roleids and role names.
Fiexed bug in unit test - course creator role shouldn't be assigned for
self enrolment method.
2023-06-30 11:57:48 +08:00
Stevani Andolo 68e60b9bab MDL-78567 communication_matrix: Fixed plugin version for upgrade 2023-06-30 11:21:17 +08:00
Jun Pataleta f5701a5415 Merge branch 'MDL-77632-master-2' of https://github.com/ilyatregubov/moodle 2023-06-30 10:58:15 +08:00
Ilya Tregubov 21ab60b30b MDL-78617 formslib: Fix element with no name going to sticky footer. 2023-06-30 10:03:37 +08:00
Mihail Geshoski b4cbad8b33 MDL-77632 core_grades: Add rowtitle class to grade category cell 2023-06-30 09:29:00 +08:00
Mihail Geshoski 3643f48e0f MDL-77632 core_grades: Fix row_column_of_table_should_contain() 2023-06-30 09:28:59 +08:00
Ilya Tregubov 65cafd36cc MDL-77632 core_grades: Move select checkboxes to name column. 2023-06-30 09:28:59 +08:00
Shamim Rezaie c235339e02 MDL-77375 tool_dataprivacy: set boundary of the dropdowns 2023-06-30 11:27:32 +10:00
Shamim Rezaie 3210652dee MDL-77375 mod_forum: set boundary of the dropdown
Also removed the unnecessary button role from the <button> element
2023-06-30 11:25:04 +10:00
Shamim Rezaie 23d3191684 MDL-77375 mod_assign: set overflow constraint boundary of the dropdowns 2023-06-30 11:25:04 +10:00
Shamim Rezaie aaadb0d6ef MDL-77375 output: Allow additional options for dropdowns 2023-06-30 11:24:45 +10:00
Shamim Rezaie d30d229e9a MDL-77375 theme: Re-fix the bootstrap scrollbar issue 2023-06-30 11:15:15 +10:00
David Woloszyn 616c6a0809 MDL-77356 communication_matrix: Update avatar if different 2023-06-30 10:38:40 +10:00
David Woloszyn 162c9fdd66 MDL-77356 communication: Update avatar filename and avatar synced 2023-06-30 10:38:40 +10:00
AMOS bot 7c04fac37c Automatically generated installer lang files 2023-06-30 00:08:50 +00:00
Stevani Andolo db76214e5d MDL-76046 core: Fixed secondary navigation on smaller screen 2023-06-30 06:30:47 +08:00
Luca Bösch 46e086fdb6 MDL-78138 theme_boost: Reliably remove TYPE_CATEGORY breadcrumbs. 2023-06-29 21:40:58 +02:00
Rodrigo Mady a75e81e6cf MDL-77055 mod_scorm: Add SCORM options to get_scorms_by_courses WS 2023-06-29 15:16:01 -03:00
Rodrigo Mady da Silva eccbe6606a MDL-73239 core_my: Add Webservice core_my_view_page 2023-06-29 15:06:45 -03:00
Philipp Memmel cf2c91dae2 MDL-40084 mod_data: Add file import support
Co-authored-by: Stefan Hanauska <stefan.hanauska@csg-in.de>
2023-06-29 19:18:15 +02:00
Philipp Memmel e11b3867ae MDL-40084 mod_data: Harden picture conversion 2023-06-29 19:18:15 +02:00
Philipp Memmel 4003751163 MDL-40084 mod_data: Add file export support 2023-06-29 19:18:15 +02:00
Philipp Memmel 1296a2b868 MDL-40084 mod_data: Refactor importing data
Function data_import_csv has been deprecated.
2023-06-29 19:18:14 +02:00
Philipp Memmel bdf02ec088 MDL-40084 mod_data: Refactor exporting data
Functions data_export_csv, data_export_ods, data_get_exportdata have been deprecated.
2023-06-29 19:18:14 +02:00
Philipp Memmel ab09cf2b84 MDL-40084 mod_data: Remove xls export, deprecate data_export_xls 2023-06-29 19:18:14 +02:00
Huong Nguyen 8dbb6183ff weekly release 4.3dev 2023-06-29 22:22:13 +07:00
Huong Nguyen 3af841965b MDL-67529 tool_dataprivacy: Fix Behat failures 2023-06-29 17:32:52 +08:00
Andrew Nicols d8a9692467 Merge branch 'MDL-74570-fix' of https://github.com/sarjona/moodle 2023-06-29 17:32:52 +08:00
Andrew Nicols 86eece196e Merge branch 'MDL-76104-master' of https://github.com/HuongNV13/moodle 2023-06-29 17:32:51 +08:00
Sara Arjona 7ae114dd5f MDL-74570 badges: Remove unnecessary hacks 2023-06-29 17:32:51 +08:00
Andrew Nicols 8d860bbd50 Merge branch 'MDL-78247' of https://github.com/paulholden/moodle 2023-06-29 17:32:51 +08:00
Paul Holden d3f189d6db MDL-76769 reportbuilder: re-use custom field data table alias/joins.
Ensure that when a column/filter on the same custom field is used,
they each share a single join (see also 8f721652).
2023-06-29 08:11:45 +01:00
Andrew Nicols d1effac984 Merge branch 'MDL-78552' of https://github.com/skodak/moodle 2023-06-29 11:34:53 +08:00
Andrew Nicols 65295a344b Merge branch 'MDL-78599-master' of https://github.com/snake/moodle 2023-06-29 11:32:51 +08:00
Andrew Nicols 016c4ecb45 Merge branch 'MDL-78570' of https://github.com/stronk7/moodle 2023-06-29 11:29:16 +08:00
Jun Pataleta a874a4fcdd Merge branch 'MDL-77993' of https://github.com/paulholden/moodle 2023-06-29 11:27:51 +08:00
Jun Pataleta bb59f98c81 Merge branch 'MDL-78432-master' of https://github.com/laurentdavid/moodle 2023-06-29 11:25:53 +08:00
Andrew Nicols 42c7c56c9f Merge branch 'MDL-78018' of https://github.com/paulholden/moodle 2023-06-29 11:01:34 +08:00
Andrew Nicols 461be11d34 Merge branch 'MDL-67529-master' of https://github.com/andrewnicols/moodle 2023-06-29 10:15:44 +08:00
Ilya Tregubov d757e1e1cc Merge branch 'MDL-72622-redis-tls' of https://github.com/catalyst/moodle 2023-06-29 09:50:43 +08:00
Ilya Tregubov c10e47b4be Merge branch 'MDL-77286-master' of https://github.com/lameze/moodle 2023-06-29 09:45:20 +08:00
Ilya Tregubov 65af5bcfdb Merge branch 'MDL-78521-master' of https://github.com/lameze/moodle 2023-06-29 09:34:21 +08:00
Tim Hunt 3534b31745 MDL-78608 question stats: avoid loading data for missing contexts
It turns out that there are plugins which don't (currently)
clean up their question attempts when a context is deleted.
Therefore, we need to make Moodle core robust to that.
2023-06-28 17:16:48 +01:00
Huong Nguyen 74256e9979 Merge branch 'MDL-77679' of https://github.com/mkassaei/moodle 2023-06-28 21:06:59 +07:00
Andrew Nicols e5d0a83285 MDL-67529 tool_dataprivacy: Coding style updates 2023-06-28 21:39:22 +08:00
Mikel Martín 045f8cb50d MDL-78204 course: Use 'showmore' component in course restrictions
- Create new availability template, so it can be reused from both
section/availability and cm/availability mustaches.

- When rendering activity or section restrictions with long or multiline text
display a condensed version (excerpt) and use 'showmore' component to add
showmore/showless behaviour.

Co-authored-by: Ferran Recio <ferran@moodle.com>
2023-06-28 15:08:13 +02:00
Ilya Tregubov ab6dc892e4 Merge branch 'MDL-76656-master' of https://github.com/meirzamoodle/moodle 2023-06-28 18:08:21 +08:00
Jake Dallimore 83d34cd1cc MDL-78599 enrol_lti: fix SQL syntax error in course grade sync 2023-06-28 12:39:03 +08:00
Jake Dallimore 013e6fd32e MDL-78599 enrol_lti: test covering decoupled, course context grade syncs
This covers the case where a course is published and the launch data
doesn't include the 'lineitem' property of the ags claim, meaning the
tool can manage its own line items.
2023-06-28 12:38:54 +08:00
meirzamoodle f69a420be1 MDL-76656 webservice: generated token can only read once
Generated tokens should only read once.
Therefore removing the token column at the table view of the manage tokens page and the user's page.
The token should not be able to search.
2023-06-28 09:27:31 +07:00
Leon Stringer 06a8efde29 MDL-78596 core_course: Remove divider
With courselistshortnames enabled Moodle 3.11 and earlier showed
"Category | Short name" on the first line of course cards (for example
in block_myoverview).  From Moodle 4.0 the category is moved to the last
line making the first line "Short name |".  This change removes that
stray "|".
2023-06-27 17:39:27 +01:00
Dinesh Durai bb57d1a266 MDL-77396 wiki: Fix print without background new 2023-06-27 18:10:12 +05:30
Kiet Chan 65be92f661 MDL-67529 GDPR: Option to filter which courses are included 2023-06-27 18:45:07 +08:00
Simey Lameze efc6255477 MDL-77286 behat: change window size to large to avoid random fails 2023-06-27 16:09:12 +08:00
Laurent David 901fb4f2d0 MDL-78432 mod_label: Process markdown in label name
* Process markdown and other allowed formats (see FORMAT_XXX) in get_label_name
so it does not display it as a litteral string in the course index menu.
2023-06-27 08:09:55 +02:00
Andrew Nicols 827ba96806 Merge branch 'MDL-78459' of https://github.com/paulholden/moodle 2023-06-27 13:14:08 +08:00
Ilya Tregubov 4ab6108c79 Merge branch 'MDL-78443-master' of https://github.com/jleyva/moodle 2023-06-27 11:00:54 +08:00
Jun Pataleta 132cf637f3 Merge branch 'MDL-77637-trimmed' of https://github.com/Chocolate-lightning/moodle 2023-06-27 10:33:34 +08:00
Jake Dallimore 1e6a7b2b63 MDL-78578 enrol_lti: permit launch cache access during launch redirects
This handles things like site policies, which store the current URL,
redirect to the policy agreement, then redirect back the current URL
afterwards. In such cases, we want to redirect back with 'launchid' set
so that we can fetch the id_token from the session cache. This is the
same thing we already do during account binding, so the patch only
makes sure the PAGE->url is properly set before calling require_login.
2023-06-27 10:01:49 +08:00
Mathew May 997134f52f MDL-77637 gradebook_setup: Create gradeitems via dyn form 2023-06-27 09:01:25 +08:00
Andrew Nicols da379dc24b Merge branch 'MDL-74570-master' of https://github.com/rmady/moodle 2023-06-27 08:42:59 +08:00
Srdjan f061599fc9 MDL-72622 core: Support TLS for redis session 2023-06-27 09:49:36 +10:00
Srdjan 38076e5a0d MDL-72622 core: Support TLS for redis cache connections 2023-06-27 09:49:33 +10:00
Rodrigo Mady dcc296403e MDL-74570 core_badges: Fix for Oracle DB compatibility 2023-06-26 13:00:02 -03:00
mkassaei a410223c74 MDL-77679 Drag and drop question type weird behavior 2023-06-26 16:56:56 +01:00
Jun Pataleta 854a22e269 Merge branch 'MDL-76724' of https://github.com/stronk7/moodle 2023-06-26 19:25:54 +08:00
Paul Holden ccafa6e657 MDL-75810 badges: tag support in badge custom report sources. 2023-06-26 09:50:45 +01:00
Mikel Martín fb49de8875 MDL-78204 core: Add new showmore/showless UI component
- Create a new 'showmore' template that receives both collapsed and expanded content.
Initially only the collapsed content will be displayed with a "Show more" button. When it is expanded,
only the expanded content will be displayed with "Show less" button.

- Add 'showmore' component to component library
2023-06-26 09:32:39 +02:00
Mikel Martín 09d9f367b6 MDL-78204 availability: Remove 'showmore' from availability_info
- Remove 'showmore' logic from the base availability_info renderable.
Other components rendering the availability information should handle the showmore/showless behaviour themselves.

- Deprecate JS module and string.

- Move availability_info header generation logic to a new protected function to improve code readability.
2023-06-26 09:32:36 +02:00
Laurent David 84adbb09e4 MDL-78068 mod_h5pactivity: Fix sort the paragraph activity
* Fix sort the paragraph/sequencing activity report in H5P.
2023-06-26 08:27:51 +02:00
Jun Pataleta 2cc54dda28 Merge branch 'MDL-78168-master-final' of https://github.com/andrewnicols/moodle 2023-06-26 11:20:06 +08:00
Simey Lameze b1a2f8dea1 MDL-78521 behat: reload page before asserting content
This commit also reword a Scenario name to make it unique
2023-06-26 11:16:49 +08:00
Huong Nguyen 83579a07c6 MDL-76104 mediaplayer_youtube: Respect container max width 2023-06-26 09:39:09 +07:00
Huong Nguyen 660d714e71 MDL-76104 mediaplugin: Make media plugin behave properly in Modal dialog 2023-06-26 09:39:09 +07:00
Huong Nguyen f4801ce455 MDL-76104 usertours: Support the Moodle filters 2023-06-26 09:39:08 +07:00
Petr Skoda 3c25ccdcd1 MDL-78552 core: tidy up MDL_PERF constants
* all constans usable in ABORT_AFTER_CONFIG should be always defined
* MDL_PERFDB and $PERF->logwrites not used after legacy log removal
* MDL_PERF_TEST should be documented in codebase
* deprecated warnings in shutdowb manager
2023-06-25 08:39:09 +02:00
Eloy Lafuente (stronk7) 17bfc2ab01 MDL-78570 behat: Document the removal of the skip-passed option 2023-06-24 19:58:06 +02:00
Eloy Lafuente (stronk7) dc0869fc12 MDL-78570 behat: Remove the skip-passed legacy option
This option (--skip-passed) was implemented because of some bugs in the initial
versions of Behat 3 with the --rerun option.

After Behat 3.2.0 those bugs were fixed and we switched back to use
the upstream --rerun option, abandoning --skip-passed.

More yet, this option wasn't ever documented much, neither in docs or cli.

So it's time to remove it, one less thing to maintain for nothing.

Note that this commit is a 99.99% revert of the original one that was
applied to the moodle-behat-extension (now in core):

https://github.com/moodlehq/moodle-behat-extension/commit/c4b25158d212509b
2023-06-24 19:28:51 +02:00
Andrew Nicols 54f2722a7b Merge branch 'MDL-78523-master' of https://github.com/safatshahin/moodle 2023-06-24 23:39:37 +08:00
Andrew Nicols b49b76c41c Merge branch 'MDL-78237-master' of https://github.com/davewoloszyn/moodle 2023-06-24 23:21:21 +08:00
Andrew Nicols 2798fe960a Merge branch 'MDL-78519' of https://github.com/paulholden/moodle 2023-06-24 23:20:04 +08:00
Andrew Nicols 8be9cc3867 Merge branch 'MDL-76673-master' of https://github.com/meirzamoodle/moodle 2023-06-24 22:41:52 +08:00
Andrew Nicols a8a67f4df1 Merge branch 'MDL-78243' of https://github.com/paulholden/moodle 2023-06-24 22:28:49 +08:00
Andrew Nicols 076d48670d Merge branch 'MDL-78544-master' of https://github.com/snake/moodle 2023-06-24 22:26:16 +08:00
Andrew Nicols 8e436dcce7 MDL-74570 badges: Correct coding style violation 2023-06-24 22:24:45 +08:00
Andrew Nicols bd3a28eb2b Merge branch 'MDL-74570-master' of https://github.com/rmady/moodle 2023-06-24 22:20:35 +08:00
Andrew Nicols 1fee974ed0 Merge branch 'MDL-77152-master' of https://github.com/sh-csg/moodle 2023-06-24 22:17:33 +08:00
Andrew Nicols 91e2e5c532 Merge branch 'MDL-78172' of https://github.com/paulholden/moodle 2023-06-24 21:58:48 +08:00
Andrew Nicols ee9144cadb MDL-78192 external: Fix typo in constant name 2023-06-24 21:57:04 +08:00
Andrew Nicols 90b1734bf9 Merge branch 'MDL-78192' of https://github.com/skodak/moodle 2023-06-24 21:54:52 +08:00
Eloy Lafuente (stronk7) 8b052d0870 MDL-76724 environment: Moodle 4.3 requirements
Note that there aren't changes since Moodle 4.2
so this is a complete copy of the information
for that version.
2023-06-24 12:29:46 +02:00
Stefan Hanauska d23ad2c39a MDL-77152 files: Ensure trailing/leading slash 2023-06-24 10:32:05 +02:00
Andrew Nicols d66f81d2e1 MDL-78168 mod_assign: Deprecate assign_files::preprocess 2023-06-24 13:33:01 +08:00
Andrew Nicols adddcf394f MDL-78168 mod_assign: Stop storing properties dynamically
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.

In these cases, mod_assign was treating other unrelated objects as its
personal object store. These have been updated to not require this.
2023-06-24 13:33:00 +08:00
Paul Holden 8a842b9cbd MDL-78247 libraries: upgrade to version 4.15.0 of OpenSpout. 2023-06-23 14:28:48 +01:00
Mark Johnson 327c11d6a0 MDL-76717 qbank_usage: Add support for usage by version 2023-06-23 11:28:29 +01:00
Petr Skoda 16729b7f02 MDL-78192 external: allow nullable non-scalar params and results 2023-06-23 11:12:08 +02:00
Sara Arjona 3cd84747cb weekly release 4.3dev 2023-06-23 08:59:59 +02:00
Sara Arjona e06755fcad NOBUG: Fixed file access permissions 2023-06-23 08:59:58 +02:00
Sara Arjona 752326a31c NOBUG: Fixed SVG browser compatibility 2023-06-23 08:59:51 +02:00
Mark Johnson c714f2b082 MDL-76717 qbank_history: Show usage column 2023-06-22 16:40:36 +01:00
Mark Johnson e6bf0b0f9b MDL-76717 qbank_usage: Fix usage count query for random questions 2023-06-22 16:40:36 +01:00
Andrew Nicols 776abf1fd6 MDL-77793 core: Bump version for device theme removal 2023-06-22 14:29:42 +02:00
Andrew Nicols 17c6bfa257 Merge branch 'MDL-78274' of https://github.com/Chocolate-lightning/moodle 2023-06-22 14:29:42 +02:00
Andrew Nicols 260f4ac4f9 Merge branch 'MDL-77636-master' of https://github.com/mihailges/moodle 2023-06-22 14:29:42 +02:00
Andrew Nicols 004924d52f Merge branch 'MDL-77260' of https://github.com/paulholden/moodle 2023-06-22 14:29:42 +02:00
Andrew Nicols 31cfe5aaff Merge branch 'MDL-77877' of https://github.com/paulholden/moodle 2023-06-22 14:29:42 +02:00
Andrew Nicols 165bb391f0 MDL-78212 core: Add note that drivers extending mysqli also support compression 2023-06-22 14:29:41 +02:00
Andrew Nicols 28b2c57c82 Merge branch 'MDL-78212-MYSQLI_CLIENT_COMPRESS' of https://github.com/catalyst/moodle 2023-06-22 14:29:41 +02:00
Andrew Nicols c40cf46b22 Merge branch 'MDL-78004_master' of https://github.com/mwehr/moodle 2023-06-22 14:29:41 +02:00
Ilya Tregubov 3baa6045af Merge branch 'MDL-78434-master' of https://github.com/sammarshallou/moodle 2023-06-22 14:29:41 +02:00
Andrew Nicols 09505be547 Merge branch '77986-master-backup-trim-search-fields' of https://github.com/DSI-Universite-Rennes2/moodle 2023-06-22 14:29:41 +02:00
Andrew Nicols f7f01fe2ab Merge branch 'MDL-78273' of https://github.com/Chocolate-lightning/moodle 2023-06-22 14:29:41 +02:00
Andrew Nicols ca6edf6f3c Merge branch 'MDL-77813-master' of https://github.com/laurentdavid/moodle 2023-06-22 14:29:40 +02:00
Ilya Tregubov b2dce5d60c Merge branch 'MDL-76629' of https://github.com/liorgil/moodle 2023-06-22 14:29:40 +02:00
Andrew Nicols d4bee79ce1 Merge branch 'MDL-78071' of https://github.com/paulholden/moodle 2023-06-22 14:29:40 +02:00
Andrew Nicols 7092b99512 Merge branch 'MDL-78541/master' of https://github.com/skodak/moodle 2023-06-22 14:29:40 +02:00
Andrew Nicols 0dfcb91ca2 Merge branch 'MDL-78350' of https://github.com/paulholden/moodle 2023-06-22 14:29:40 +02:00
Andrew Nicols 914073453f Merge branch 'MDL-68067' of https://github.com/Chocolate-lightning/moodle 2023-06-22 14:29:40 +02:00
Andrew Nicols 6c6c795230 Merge branch 'MDL-78056-master' of https://github.com/laurentdavid/moodle 2023-06-22 14:29:40 +02:00
Andrew Nicols f7eddfa583 Merge branch 'MDL-78263-master' of https://github.com/jleyva/moodle 2023-06-22 14:29:40 +02:00
Andrew Nicols bd8b6e011c Merge branch 'MDL-78435' of https://github.com/paulholden/moodle 2023-06-22 14:29:39 +02:00
Andrew Nicols 1a59347351 Merge branch 'MDL-76917-master' of https://github.com/HuongNV13/moodle 2023-06-22 14:29:39 +02:00
Andrew Nicols b9cc9d4034 Merge branch 'MDL-76953' of https://github.com/paulholden/moodle 2023-06-22 14:29:39 +02:00
Andrew Nicols 79f27a853e Merge branch 'MDL-78252' of https://github.com/paulholden/moodle 2023-06-22 14:29:39 +02:00
Andrew Nicols bf72c0de9d Merge branch 'MDL-75913-master' of https://github.com/davewoloszyn/moodle 2023-06-22 14:29:39 +02:00
Andrew Nicols 276bf5acbc Merge branch 'MDL-77793-master' of https://github.com/davewoloszyn/moodle 2023-06-22 14:29:39 +02:00
Andrew Nicols 944129a57f Merge branch 'MDL-78477' of https://github.com/AnupamaSarjoshi/moodle 2023-06-22 14:29:38 +02:00
Andrew Nicols 3e1d6d61a9 Merge branch 'MDL-78159-master' of https://github.com/meirzamoodle/moodle 2023-06-22 14:29:38 +02:00
Andrew Nicols 5f41e5fdc7 Merge branch 'MDL-77865_Master' of https://github.com/tuanngocnguyen/moodle 2023-06-22 14:29:38 +02:00
Andrew Nicols 4149de88c2 Merge branch 'MDL-78164-master' of https://github.com/meirzamoodle/moodle 2023-06-22 14:29:38 +02:00
Mathew May dd589d0fef MDL-78274: scss: Modify how the focus is set on modals 2023-06-22 13:28:20 +08:00
hieuvu 0b7ac9ffb1 MDL-78484 formslib: Move enable checkbox display before the date picker 2023-06-22 09:56:14 +07:00
Jake Dallimore 60b086635c MDL-78544 forms: fix string to number comparison bug in duration element
Prior to PHP 8, 0 == "", but now no more. We should use empty instead.
See: https://www.php.net/manual/en/migration80.incompatible.php
2023-06-22 10:54:46 +08:00
Safat 42f704ac11 MDL-78523 communication_matrix: Behat coverage for matrix safe disable 2023-06-22 12:19:44 +10:00
Safat d785ff6f57 MDL-78523 core_communication: Safe disable of communication plugins 2023-06-22 12:19:44 +10:00
Paul Holden ecf47ff23b MDL-78350 reportbuilder: parse javascript before rendering template. 2023-06-21 17:33:40 +01:00
Paul Holden 40cc1e53c2 MDL-78350 output: parse returned dynamic tab javascript when loading.
Ensure we don't create nested <script> tags when rendering templates,
which triggers console errors since 1ef815cd.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-06-21 17:25:34 +01:00
Petr Skoda c70a460978 MDL-78541 admin: ignore headings in admin_apply_default_settings()
This is a workaround for plugins that do not have
unique setting names.
2023-06-21 15:46:14 +02:00
Sara Arjona 5f1ed26c75 Merge branch 'MDL-76635-master' of https://github.com/lameze/moodle 2023-06-21 14:02:11 +02:00
Sara Arjona 5039f6980c Merge branch 'MDL-63120_Badges_cron_task_fails-master' of https://github.com/mebis-lp/moodle 2023-06-21 11:41:51 +02:00
Jun Pataleta cb4b3d54ee Merge branch 'MDL-76704-master' of https://github.com/safatshahin/moodle 2023-06-21 17:20:54 +08:00
Ilya Tregubov 81c8850462 Merge branch 'MDL-77591-master' of https://github.com/justusdieckmann/moodle 2023-06-21 16:57:49 +08:00
Sara Arjona 8c944b217f Merge branch 'MDL-78201-master' of https://github.com/aanabit/moodle 2023-06-21 10:56:33 +02:00
Meirza 97ff68fd6b MDL-78159 lib: Added missing properties for core libraries
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-06-21 15:39:53 +07:00
Meirza 337bc1554a MDL-78164 lib: Added class properties that are not declared in grade
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-06-21 14:41:35 +07:00
Andrew Nicols 4eb5c0d707 Merge branch 'MDL-77634-master' of https://github.com/ilyatregubov/moodle 2023-06-21 15:19:54 +08:00
Andrew Nicols acc91736d1 Merge branch 'MDL-78274' of https://github.com/Chocolate-lightning/moodle 2023-06-21 15:14:16 +08:00
Mathew May 6394056c90 MDL-78274: gradereport_grader: Vertically center feedback modal 2023-06-21 14:51:26 +08:00
Mathew May 0fb1152345 MDL-78274 modal: Enable modals to be vertically centered 2023-06-21 14:51:26 +08:00
Paul Holden ed23ce7c77 MDL-77260 tool_monitor: group and sort list of components.
AMOS BEGIN
 CPY [coresubsystem,report_eventlist],[coresubsystem,tool_monitor]
AMOS END
2023-06-21 07:34:02 +01:00
Ilya Tregubov 7aa0fd916c Merge branch 'MDL-76174' of https://github.com/larsbonczek/moodle 2023-06-21 14:26:16 +08:00
Paul Holden ecff15e2e6 MDL-78252 libraries: upgrade to version 0.10.0 of PHP-ML. 2023-06-21 07:24:04 +01:00
Ilya Tregubov 807bfe69ae MDL-77634 gradereport_singleview: Sticky footer for singleview
Moving Save button, pagination, next and previous link as well as
perpage selector to sticky footer.
2023-06-21 12:59:03 +08:00
Safat f7b2f36218 MDL-76704 core_course: Add settings to control selected provider 2023-06-21 14:46:32 +10:00
Safat 3f48306385 MDL-76704 core_communication: Default setting for communication provider 2023-06-21 14:46:32 +10:00
Andrew Nicols 50093090f6 Merge branch 'MDL-78163-master' of https://github.com/meirzamoodle/moodle 2023-06-21 11:57:48 +08:00
Simey Lameze 9382d66b4a MDL-76635 comment: render the delete icon in the right place
Special thanks to Andrew Lyons.
2023-06-21 11:27:41 +08:00
Andrew Nicols dddb7dcb70 Merge branch 'MDL-78160-master' of https://github.com/meirzamoodle/moodle 2023-06-21 10:20:59 +08:00
Rodrigo Mady da Silva 4b26d1f784 MDL-74570 core_badges: Add webservice core_badges_get_user_by_hash 2023-06-20 21:14:17 -03:00
Srdjan 9fcba75de4 MDL-78212 dml: Added MYSQLI_CLIENT_COMPRESS option for mysqli
Config dboptions key 'clientcompress'.
Decreases traffic between the application server and the database host.
2023-06-21 10:07:17 +10:00
Justus Dieckmann a7d5328c31 MDL-77591 mod_assign: Fix feedback zip import for group submissions
Import now checks whether assignment is an group submission and
matches group ids instead of user ids in that case.

Additionally check for original unchanged files to not import in
group files instead of user files.
2023-06-20 20:20:35 +02:00
Anupama Sarjoshi 07d2f485b8 MDL-78477 qbank_history: Fix and improve UI for edit menu delete option
Changes done to fix the warnings thrown in the history view when the
last version of a question is deleted and improved UI to display the
message and a Continue button, to navigate back to the Question bank.
2023-06-20 17:24:50 +01:00
Lars Bonczek 7d09932365 MDL-76174 core_course: get_nearest_editable_subcategory performance fix 2023-06-20 14:42:17 +02:00
Paul Holden c720c21aca MDL-78454 files: add contenthash column/filter to file report entity. 2023-06-20 08:51:32 +01:00
Ilya Tregubov 346548e21a Merge branch 'MDL-78259-htmlpurify-media-tags' of https://github.com/DSI-Universite-Rennes2/moodle 2023-06-20 14:35:21 +08:00
Ilya Tregubov 9ee779cf0f Merge branch 'MDL-77525/master' of https://github.com/skodak/moodle 2023-06-20 13:03:20 +08:00
Kevin Percy 4be3ad97aa MDL-78188 core_grades: Add sticky footer to export grades page 2023-06-20 12:21:31 +08:00
Simey Lameze d79788245b MDL-76635 behat: improve submission comments test 2023-06-20 10:59:03 +08:00
Mathew May e027a0ef03 MDL-78273 gradereport: Feedback modal styling 2023-06-20 10:34:05 +08:00
eWallah 6f2d186c56 MDL-68067 tool_mobile: Mobile tool link does not have a class attribute. 2023-06-20 10:24:56 +08:00
Huong Nguyen d5b9be35dd MDL-76917 Libraries: Upgrade Ogv.js Playback Technology to 1.0.0 2023-06-20 09:18:19 +07:00
Huong Nguyen 6abfc0a519 MDL-76917 Libraries: Upgrade ogv.js to 1.8.9 2023-06-20 09:18:19 +07:00
Huong Nguyen f1ecd6a940 MDL-76917 Libraries: Upgrade YouTube Playback Technology to 3.0.0 2023-06-20 09:18:19 +07:00
Huong Nguyen 0bb9a7826d MDL-76917 Libraries: Upgrade VideoJS to 8.3.0 2023-06-20 09:18:19 +07:00
Jun Pataleta 6132904e80 Merge branch 'MDL-74021-master' of https://github.com/andelacruz/moodle 2023-06-20 10:13:34 +08:00
Paul Holden 7a1cdb4ea9 MDL-78519 gradeimport_xml: fix require paths for import form. 2023-06-19 16:58:18 +01:00
Jun Pataleta 8e71a1af8e Merge branch 'MDL-78369' of https://github.com/AnupamaSarjoshi/moodle 2023-06-19 23:17:01 +08:00
Jun Pataleta dd3997b2fb Merge branch 'MDL-70187' of https://github.com/paulholden/moodle 2023-06-19 23:04:37 +08:00
Mihail Geshoski 9c8e40206d MDL-78216 gradereport_grader: Fix overlapping caused by sticky cells 2023-06-19 22:19:35 +08:00
Paul Holden 05ee8a20a6 MDL-78071 cohort: disable report actions for managed cohorts. 2023-06-19 15:01:14 +01:00
Meirza 81a5016ec7 MDL-78160 lib: Added class properties that are not declared in dml
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.

At the test_transaction_with_events() I changed $this->_called into $called local var,
since the $called is used inside the anonymous function I added the third param as
a variable passed by reference so the last assert can get the newest value.
2023-06-19 19:56:07 +07:00
Paul Holden 3af9bdfa7e MDL-78459 tool_mobile: use site context in mobile manifest file.
Prevents debugging notices when the site shortname is formatted in
the response data.
2023-06-19 13:00:45 +01:00
Lior Gil f92437428e MDL-76629 core_table: add sticky column option 2023-06-19 12:46:29 +03:00
Angelia Dela Cruz fb9745ab0b MDL-74021 behat: Page behat generators use UI
Replace steps that manually add page instances via the UI and use
Behat generators. This improves the speed of Behat test runs.

Co-authored-by: Simey Lameze <simey@moodle.com>
2023-06-19 17:03:02 +08:00
David Woloszyn 802ff3e2e3 MDL-75913 behat: Use alternatives to Atto in tests 2023-06-19 16:35:46 +10:00
David Woloszyn 32316df646 MDL-75913 behat: Switch to TinyMCE editor iframe 2023-06-19 16:35:46 +10:00
David Woloszyn a183677a87 MDL-75913 behat: Private files data generator 2023-06-19 16:35:46 +10:00
Andrew Nicols fcdfc74abd MDL-75913 behat: Add support for file uploads in page generators 2023-06-19 16:35:46 +10:00
Andrew Nicols baa32f6569 MDL-75913 behat: Add support for file uploads in generators 2023-06-19 16:35:46 +10:00
David Woloszyn 0662dfadbe MDL-77793 lib: Removed uses of deprecated functions for themes 2023-06-19 16:32:51 +10:00
David Woloszyn 49ee428dca MDL-77793 lib: Deprecated device specific theme functions 2023-06-19 16:32:51 +10:00
David Woloszyn b20503c0ff MDL-77793 lang: Deprecating strings associated with update to theme page 2023-06-19 16:32:14 +10:00
David Woloszyn b63ca109f3 MDL-77793 core_theme: Device selections removed from theme selector 2023-06-19 16:32:14 +10:00
Anders Rasmussen 0c188eefc8 MDL-74893 authentication: Fix auto-login guest
Fixed auto-login as guest, when Guest login button is hidden
2023-06-19 07:52:03 +02:00
Ilya Tregubov da1ccba20c Merge branch 'MDL-78199-master' of https://github.com/roland04/moodle 2023-06-19 12:50:28 +08:00
Laurent David d5dc0a8eb1 MDL-77813 core_xapi: Add delete states webservice
* Add new core_xapi_delete_states Webservices in pair with the "Multiple
document DELETE" action from xAPI specification.
2023-06-19 06:23:53 +02:00
Laurent David 2144bdf06c MDL-78056 mod_h5pactivity: Fix incorrect attempt report
* Fix interpretation of the results on the attempt report whenever case
sensitive option is enabled.
2023-06-19 06:10:29 +02:00
Paul Holden 246e5ff95c MDL-77868 mod_bigbluebuttonbn: default config for welcome editable.
The property was added to the config options in c3f4123b, however no
default value was provided, meaning if it was ever unset then a PHP
type error would be triggered on the null return.
2023-06-18 19:19:42 +01:00
Petr Skoda de9c69cf3c MDL-77525 filter: add filtering stages 2023-06-17 16:43:58 +02:00
Paul Holden 436a279dec MDL-76953 mod: deprecate libxml library method wrappers.
The `libxml_disable_entity_loader` method is deprecated since PHP8.0,
which is our minimum required version so we no longer need to support
calls to it using the current wrappers.
2023-06-16 19:15:24 +01:00
Paul Holden 39d0643340 MDL-77877 group: hide form fields dependent on group visibility. 2023-06-16 18:53:31 +01:00
Paul Holden 70e5ff196a MDL-78435 mod_assign: ensure due date is always after start date. 2023-06-16 18:41:45 +01:00
Paul Holden e8ae9680bc MDL-75810 reportbuilder: entity method for returning tag SQL joins. 2023-06-16 18:21:24 +01:00
Paul Holden 697be4eaa3 MDL-75810 badges: allow tags to be specified in test data generator. 2023-06-16 16:06:09 +01:00
Mikel Martín b1ad6666ce MDL-78199 course: Remove unused SCSS 2023-06-16 12:40:09 +02:00
Mikel Martín 0cacc7afb8 MDL-78199 course: Move activity plugintype to a tooltip 2023-06-16 12:40:09 +02:00
Mikel Martín 905ccf34fc MDL-78199 behat: Fix hover over element step definition 2023-06-16 12:40:09 +02:00
Mikel Martín 50bf102a81 MDL-78199 course: Move activity completion to a dropdown
- Add new dropdown to display completion
- Fix completion behat steps with selectors that were not specific enough
- Update behat step that now needs to open completion requirements dropdown before
2023-06-16 12:40:09 +02:00
Mikel Martín d5aa5b7b07 MDL-78199 course: Add styles for activity card elements
- Reduce activity icon size: Until MDL-78284 arrives, current activityiconcontainer should be reduced to fit the new UI
- Reduce activity actions button size
- Add styles for activity altconent
- Add styles for activity descriptions and text and media content.
- Add styles to show images inside altcontent with rounded borders.
- Add styles for activity dates
- Add styles for activity visibility
- Add styles for restrictions
- Add styles for activity badge
2023-06-16 12:39:50 +02:00
Mikel Martín 80b0b3e608 MDL-78199 course: New activity cards layout
- Refactor activity card templates to use a grid layout.
- Remove 'description-inner' related classes and styles.
- Add small comments to SCSS for future better understanding.
- Add independent renderable for course module icon
2023-06-16 12:29:10 +02:00
Andrew Nicols 1b1a15a308 weekly release 4.3dev 2023-06-16 12:04:12 +08:00
Andrew Nicols 92e5955eb7 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-06-16 12:04:07 +08:00
Angelia Dela Cruz 89e0885660 MDL-78455 Behat: Behat cleanup and optimisation for blog/tests/behat 2023-06-16 09:06:07 +08:00
Amaia Anabitarte 3ae96a0496 MDL-78201 core_course: Prepare group mode state actions 2023-06-16 00:52:18 +02:00
Juan Leyva bf6ef82fa0 MDL-78263 airnotifier: keep notification name as part of the payload 2023-06-15 17:27:36 +02:00
Sara Arjona 750d1c1130 Merge branch 'MDL-78165-master' of https://github.com/andrewnicols/moodle 2023-06-15 10:16:57 +02:00
Andrew Nicols 3a9f55dcf7 MDL-78165 mod_bigbluebuttonbn: Fetch cron status using API 2023-06-15 16:01:15 +08:00
Angelia Dela Cruz 1325ddac92 MDL-78455 Behat: Add Behat for adding, editing and deleting blog entries 2023-06-15 15:25:36 +08:00
Nathan Nguyen 37838804d8 MDL-77865 qtype_ddwtos: fix incorrect inplace class 2023-06-15 14:59:10 +10:00
Ilya Tregubov 7bcd4973e0 Merge branch 'MDL-70152-master-fix' of https://github.com/ilyatregubov/moodle 2023-06-15 12:12:59 +08:00
Andrew Nicols 540aeec2c8 Merge branch 'MDL-78310-master' of https://github.com/aanabit/moodle 2023-06-15 12:03:35 +08:00
Andrew Nicols 04b1e6469c Merge branch 'MDL-77224' of https://github.com/paulholden/moodle 2023-06-15 12:02:11 +08:00
Simey Lameze ce93aa7e4f MDL-70152 behat: reply to post using data generator 2023-06-15 12:01:39 +08:00
Jun Pataleta 5088fba999 Merge branch 'MDL-78333' of https://github.com/paulholden/moodle 2023-06-15 11:59:53 +08:00
Andrew Nicols af757274a1 Merge branch 'MDL-78341-progress-bar-style' of https://github.com/brendanheywood/moodle 2023-06-15 11:53:06 +08:00
Jake Dallimore cff9ba572e Merge branch 'MDL-78475' of https://github.com/paulholden/moodle 2023-06-15 11:48:58 +08:00
Jun Pataleta 620371e7d3 Merge branch 'MDL-73325-master' of https://github.com/ntdat1904/datnguyen_moodle 2023-06-15 11:31:22 +08:00
Andrew Nicols 407498a2a2 Merge branch 'MDL-78066-master' of https://github.com/snake/moodle 2023-06-15 11:26:08 +08:00
Andrew Nicols 6b3d97e615 Merge branch 'MDL-78461' of https://github.com/paulholden/moodle 2023-06-15 11:23:05 +08:00
Andrew Nicols a00177fd8f Merge branch 'MDL-78385' of https://github.com/paulholden/moodle 2023-06-15 11:06:58 +08:00
Andrew Nicols 9d9fbe4da0 Merge branch 'MDL-78187-master' of https://github.com/meirzamoodle/moodle 2023-06-15 11:01:56 +08:00
Andrew Nicols 4d15a4ee32 Merge branch 'MDL-69231-master' of https://github.com/lameze/moodle 2023-06-15 10:58:56 +08:00
Ilya Tregubov 3705832400 Merge branch 'MDL-77542' of https://github.com/paulholden/moodle 2023-06-15 10:36:12 +08:00
Ilya Tregubov 6eaf187d35 Merge branch 'MDL-76733-master' of https://github.com/andrewnicols/moodle 2023-06-15 10:22:26 +08:00
Andrew Nicols 81ddbd5963 Merge branch 'MDL-78165-master' of https://github.com/meirzamoodle/moodle 2023-06-15 09:59:32 +08:00
Andrew Nicols 4412db94f1 Merge branch 'MDL-78478-master' of https://github.com/dasistwas/moodle 2023-06-15 09:55:50 +08:00
Jake Dallimore b42e47fb4a MDL-78066 enrol_lti: fix deep linking error in multiple grade items case
If an activity, like workshop or forum, has multiple grade items,
declarative binding of the grade item (line item) isn't supported.
Instead of throwing an exception, handle the case more elegantly
and just omit the 'add to gradebook' option for these activities.
2023-06-15 09:38:43 +08:00
Jake Dallimore 8da6304e0e MDL-78066 enrol_lti: test showing multi-grade-items failure
This test demonstrates the failure of the repository to properly fetch
published resources which are compatible with declarative line item
binding.
2023-06-15 09:38:31 +08:00
Andrew Nicols 19c98d0d6e MDL-76733 mod_assign: Remove JS requirement for time-based tests
Converting these tests to use an onlinetext submission and drop the JS
requirement means that they are much less susceptible to runtime issues,
and not susceptible to those caused by JS at all.
2023-06-15 09:32:36 +08:00
Andrew Nicols 9b5d081a48 MDL-76733 mod_assign: Address random failure
This random failure was happening because of the time required to render
and interact with the file picker which sometimes exceeded 2 seconds,
depending on the speed of the machine running the tests.

Converting these tests to use an onlinetext submission and drop the JS
requirement means that they are much less susceptible to runtime issues,
and not susceptible to those caused by JS at all.
2023-06-15 09:28:17 +08:00
Ilya Tregubov 8debfd63ba Merge branch 'MDL-78207-master' of https://github.com/sarjona/moodle 2023-06-15 09:21:11 +08:00
Ilya Tregubov 7c6df520c1 Merge branch 'MDL-78102-master' of https://github.com/sarjona/moodle 2023-06-15 09:03:14 +08:00
AMOS bot 3f2d90e6ca Automatically generated installer lang files 2023-06-15 00:16:30 +00:00
Jun Pataleta b5931eaf4f Merge branch 'MDL-78306-master' of https://github.com/andrewnicols/moodle 2023-06-15 00:05:15 +08:00
Sara Arjona 8d050aa330 Merge branch 'MDL-69653' of https://github.com/paulholden/moodle 2023-06-14 17:49:49 +02:00
Paul Holden c21a4aebeb MDL-69653 cache: final removal of deprecated lock methods. 2023-06-14 16:19:57 +01:00
meirzamoodle c68ea5d057 MDL-78187 Libraries: Upgrade ADODB to 5.22.5 2023-06-14 22:04:58 +07:00
Sara Arjona 72ef87bda1 Merge branch 'MDL-78055' of https://github.com/paulholden/moodle 2023-06-14 16:54:47 +02:00
Sara Arjona 74ead812ba Merge branch 'MDL-74824' of https://github.com/paulholden/moodle 2023-06-14 16:51:00 +02:00
Sara Arjona f748a9da10 Merge branch 'MDL-76733-master' of https://github.com/andrewnicols/moodle 2023-06-14 16:22:09 +02:00
Andrew Nicols 9ce8a9e637 MDL-78306 core: Correct modal jsdoc 2023-06-14 21:52:55 +08:00
Andrew Nicols af604082df MDL-78306 core: Migrate core/config to ESM 2023-06-14 21:52:55 +08:00
Andrew Nicols 80780f755a MDL-78306 core: Convert modal_backdrop to ESM 2023-06-14 21:52:55 +08:00
Andrew Nicols a571b7c8bf MDL-78306 core: Convert modal_events to ESM 2023-06-14 21:52:55 +08:00
Andrew Nicols c6c871e2ce MDL-78306 core: Convert modal_factory to ESM 2023-06-14 21:52:54 +08:00
Juan Leyva 72f269a05b MDL-78443 course: Missing require for course_request 2023-06-14 15:45:09 +02:00
Andrew Nicols ecf49b2a19 MDL-78306 mod_quiz: Convert AMD modals to ESM 2023-06-14 21:41:50 +08:00
Andrew Nicols c8a7a11230 MDL-78306 message: Convert notification_processor_settings modal to ESM 2023-06-14 21:41:50 +08:00
Andrew Nicols 406623116c MDL-78306 core: Convert calendar modals to ESM 2023-06-14 21:41:50 +08:00
Andrew Nicols 48c5f01497 MDL-78306 calendar: Remove unused dependencies 2023-06-14 21:41:50 +08:00
Andrew Nicols 57558cb17f MDL-78306 tool_dataprivacy: Convert data request modal to ESM 2023-06-14 21:41:49 +08:00
Andrew Nicols 77b4d0236f MDL-78306 core: Provide helper method to register modals classes 2023-06-14 21:41:49 +08:00
Andrew Nicols fcb6fdf393 MDL-78306 core: Convert core/modal to ESM 2023-06-14 21:41:49 +08:00
Andrew Nicols a9e8eed4b0 MDL-78306 core: Allow use of .finally() 2023-06-14 21:41:48 +08:00
Meirza 8b63d21a50 MDL-78165 lib: Added class properties that are not declared in classes
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-06-14 20:17:55 +07:00
David Bogner f80adab439 MDL-78478 forms: Fix repeated elements in dynamic forms 2023-06-14 15:13:54 +02:00
Paul Holden ef659d0584 MDL-78055 themes: account for undefined extrascsscallback config.
Where a theme didn't define this property, it would raise debugging
deprecation warnings in PHP8.1.
2023-06-14 13:51:07 +01:00
Paul Holden e3583a2302 MDL-78385 course: fix non-AJAX activity indentation URL parameter. 2023-06-14 12:58:13 +01:00
Sara Arjona 4c32213446 Merge branch 'MDL-71325' of https://github.com/paulholden/moodle 2023-06-14 13:41:28 +02:00
Paul Holden a45f9d5076 MDL-78475 communication: earlier install check for rendering links. 2023-06-14 12:34:21 +01:00
Sara Arjona 4cf2730823 Merge branch 'MDL-78253' of https://github.com/paulholden/moodle 2023-06-14 13:32:28 +02:00
Sara Arjona 25eaa1ed03 Merge branch 'MDL-76715-master' of https://github.com/aanabit/moodle 2023-06-14 13:18:15 +02:00
Sara Arjona a184dbde57 Merge branch 'MDL-64648-master_enrol_manual_expirynotify_default_in_enrol_instance' of https://github.com/vtos/moodle 2023-06-14 13:08:13 +02:00
Jun Pataleta b1f0a24f98 Merge branch 'MDL-78466-master' of https://github.com/andrewnicols/moodle 2023-06-14 16:03:23 +08:00
Jake Dallimore 2f0585f4b5 Merge branch 'MDL-78144-master' of https://github.com/meirzamoodle/moodle 2023-06-14 14:16:04 +08:00
Ilya Tregubov 9611669cae Merge branch 'MDL-70152-master' of https://github.com/andelacruz/moodle 2023-06-14 13:24:06 +08:00
Jun Pataleta 41efec8312 Merge branch 'MDL-76445-master-patch' of https://github.com/ilyatregubov/moodle 2023-06-14 12:18:24 +08:00
Andrew Nicols 5138f02dd3 MDL-78466 cache: Add new result_found helper
This helper is intended to prevent recurrences of this issue by moving
the guess-work to something well tested.
2023-06-14 11:58:12 +08:00
Meirza d6c26f6390 MDL-78144 libraries: Added #[AllowDynamicProperties] to ltiprovider
To prevent the PHP 8.2 warning about Dynamic Properties' deprecation,
the #[\AllowDynamicProperties] attributes was added.
2023-06-14 10:28:03 +07:00
Ilya Tregubov ae88b72a31 Merge branch 'MDL-78328-master' of https://github.com/andrewnicols/moodle 2023-06-14 11:11:30 +08:00
Meirza a4ee6ca99e MDL-78163 lib: Added class properties that are not declared in form
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-06-14 09:52:46 +07:00
Jun Pataleta 0dd37eaa54 Merge branch 'MDL-78313-blocks-performance' of https://github.com/brendanheywood/moodle 2023-06-14 10:15:44 +08:00
Andrew Nicols 5c6ebcd5f5 MDL-78466 cache: Perform strict test on static cache values
If a statically accelerated cache returns an empty array then the value
was still fetched from the non-static cache store.

The check of the `$result` should be strictly checked against `false`,
which is the value used if no value was found.
2023-06-14 09:28:53 +08:00
Ilya Tregubov df6641a489 MDL-76445 gradereport_singleview: Fix Behat test
When you unenrol a user, the notification blocks some tertiary
navigation links.
2023-06-14 08:57:43 +08:00
Brendan Heywood c653fe20bd MDL-78341 tool_httpsreplace: Make progress order deterministic 2023-06-14 09:09:43 +10:00
Brendan Heywood 73ed05ecf2 MDL-78341 core: Improve the progress bar style 2023-06-14 09:09:43 +10:00
Paul Holden 9245bfcdaf MDL-78243 libraries: upgrade to version 6.8.0 of PHPMailer. 2023-06-13 20:15:32 +01:00
Paul Holden c5d655973e MDL-78461 core: fix base plugininfo class reference to root directory. 2023-06-13 14:03:41 +01:00
vtos 5be5813ca1 MDL-64648 enrol_manual: fixed default setting of 'expirynotify'
When creating a course, a manual enrolment instance is added by default. The instance settings should inherit the values of those
for the manual enrolment plugin and properly calculate its extra settings. The 'expirynotify' setting wasn't inherited correctly
in case it had 'Enroller + Enrolled' value.
A functional test was added to test the behaviour of settings inheritance.
2023-06-13 13:25:47 +02:00
Sara Arjona da16718e8b MDL-78207 course: Add tests to cover activitybadge feature 2023-06-13 12:09:58 +02:00
Sara Arjona af164ce9c7 MDL-78207 resource: Move file type to activity badge
One of the resource settings, the file type, has been moved to the
activity badge near the activity name.
The rest of the information will be displayed using the afterlink
feature.

However, for now, the activity page still displays all the information
together (that's why resource_get_optional_details() supports now one
new parameter, $showtype, to define whether the file type should be
displayed or not).
2023-06-13 12:09:58 +02:00
Sara Arjona 987ceb1b69 MDL-78207 forum: Move unread messages to activity badge 2023-06-13 12:09:58 +02:00
Sara Arjona 6db715f5c3 MDL-78207 course: Add new module badges feature
The new activity card design proposed for Moodle 4.3 differentiates badge
information from other HTML content (displayed using the afterlink feature).
This commit adds a new activitybadge class that can be extended by any
module to display any content in a badge near the activity name. These
are the main features:
- The badge content is always plain text (no HTML).
- The badge style can be set (by default is initialized with badge-none,
but it can be set by any module).
- An optional URL to redirect the user when the badge is clicked.
- An optional ID to add the element in case the module wants to add some
JS to the badge events.
- Optionally, any other extra HTML attributes to the badge element (for
example, data attributes).
2023-06-13 12:09:58 +02:00
Sara Arjona b6849bd973 MDL-78207 course: Move afterlink at the end of the card 2023-06-13 11:26:08 +02:00
Sara Arjona 3878c85440 MDL-78102 badges: Check empty backpack email/password
For backpack connection using OBv2.0, email and password can't be
blank.
This patch adds some extra checks to validate this and displays an
error to the users before trying to connect to the backpack.
Besides, the error displayed when any error is returned by the
backpack (like invalid credentials), has also been improved, to
make it clearer for the users.
2023-06-13 11:21:13 +02:00
Amaia Anabitarte cb50c71245 MDL-76715 mod_data: Remove data_records when the last field is deleted 2023-06-13 10:52:56 +02:00
sam marshall b154e3cd33 MDL-78434 Lib: PHP 8.1 incompatible code relating to LDAP\Connection 2023-06-13 09:46:49 +01:00
Brendan Heywood 38be84b2cf MDL-78313 admin: Improve performance of manage blocks page
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-06-13 17:49:29 +10:00
Ilya Tregubov 621b090ec6 Merge branch 'MDL-76445-master-2' of https://github.com/mihailges/moodle 2023-06-13 15:43:07 +08:00
Mihail Geshoski c95c632764 MDL-76445 gradereport_singleview: Deprecate load_users()
Replaces current usages of
\gradereport_singleview\local\screen::load_users() with
get_gradable_users() and deprecates load_users(). The only
remaining calls of this method are unit test related.
2023-06-13 15:06:53 +08:00
Mihail Geshoski 41ec352b36 MDL-76445 gradereport_singleview: Deprecate initial zero state view
Deprecates the \gradereport_singleview\local\screen\select class which
is used to generate the initial view to select the singleview item type
and the strings used by the related mustache template.
This view is no longer used as we do not provide direct links to it
anymore.
2023-06-13 15:06:53 +08:00
Mihail Geshoski 26f4584200 MDL-76445 gradereport_singleview: Usability fixes 2023-06-13 15:06:53 +08:00
Mihail Geshoski 6e7ded8feb MDL-76445 gradereport_user: Usability fixes 2023-06-13 15:06:52 +08:00
Mihail Geshoski 620f6322d9 MDL-76445 grade: Helper that returns all gradable users in a course 2023-06-13 15:06:52 +08:00
Jake Dallimore d8e7c9d3fe Merge branch 'MDL-73052-master' of https://github.com/sarjona/moodle 2023-06-13 14:44:25 +08:00
Jun Pataleta ab384ef813 Merge branch 'MDL-78175-master' of https://github.com/ferranrecio/moodle 2023-06-13 13:43:48 +08:00
michaelkotlyar 9eb1e4d7c0 MDL-76840 mod_assign: Account for extension when calculating time left. 2023-06-13 15:31:50 +12:00
Andrew Nicols 4aa3e00712 MDL-78297 core: Bump version to update cache config
The missing version bump caused cache configuration to not be updated,
and the static acceleration cache size was therefore not updated. The
result here was that the static acceleration cache was constantly
emptied leading to an increased page load time.
2023-06-13 11:04:25 +08:00
Amaia Anabitarte f80b1b070b MDL-78310 mod_resource: Change 'Show type' setting default value
Changing 'Show type' admin setting default value to 'Yes'
2023-06-12 17:39:16 +02:00
Mark Johnson c3697235c1 MDL-76717 quiz: Fix behat exception
Include class for DriverException thrown when trying to add a question without Javascript enabled.
2023-06-12 16:01:34 +01:00
Jun Pataleta 6d850d2ddc Merge branch 'MDL-74263-master' of https://github.com/jleyva/moodle 2023-06-12 20:37:55 +08:00
Anupama Sarjoshi fa12b179e8 MDL-78369 Multiple choice: Increase Choice and feedback boxes size 2023-06-12 11:46:23 +01:00
Jun Pataleta c500ce8b42 Merge branch 'MDL-75937-master' of https://github.com/stevandoMoodle/moodle 2023-06-12 16:10:20 +08:00
Stevani Andolo b7f41aac8b MDL-75937 admin: Fixed config data display inconsistency 2023-06-12 15:37:12 +08:00
Jake Dallimore 6d4945aed5 Merge branch 'MDL-78167-master' of https://github.com/meirzamoodle/moodle 2023-06-12 15:06:17 +08:00
Andrew Nicols 1f5f716818 Merge branch 'MDL-78166-master' of https://github.com/meirzamoodle/moodle 2023-06-12 12:25:58 +08:00
Andrew Nicols 6d706408f2 Merge branch 'MDL-78355' of https://github.com/paulholden/moodle 2023-06-12 10:26:34 +08:00
Andrew Nicols a677a02d71 Merge branch 'MDL-78297-master' of https://github.com/MartinGauk/moodle 2023-06-12 10:17:13 +08:00
Paul Holden 3a90d4c837 MDL-77224 mod_h5pactivity: clean up attempt data on activity deletion. 2023-06-11 18:37:03 +01:00
Paul Holden 5ae1b4e5f3 MDL-77993 mod_lesson: ensure report action menu always present. 2023-06-11 18:35:03 +01:00
Andrew Nicols fe827375f3 MDL-74824 core: Do not treat Stringable objects as arrays
Co-authored-by: Paul Holden <paulh@moodle.com>
2023-06-11 17:40:55 +01:00
Paul Holden d508cdf111 MDL-74824 user: fix custom change password URL in login notification. 2023-06-11 17:40:54 +01:00
Paul Holden 4c11da246e MDL-78018 mod_assign: format group name in grading table. 2023-06-11 15:02:24 +01:00
Paul Holden 7953ded152 MDL-77542 mod_assign: remove duplicate grade heading from grader.
It's already part of the subsequent rendered form.
2023-06-11 15:01:23 +01:00
Paul Holden c18df79c4f MDL-78172 mod_forum: ensure group names are correctly formatted. 2023-06-11 15:00:16 +01:00
Damian Hippisley faa41cd791 MDL-73325 core_badges: Add tags field to BadgeClass 2023-06-09 13:41:07 +01:00
Paul Holden c88d6ad8c3 MDL-70187 user: final removal of deprecated 39/311 methods. 2023-06-09 12:02:45 +01:00
Ilya Tregubov 71c36d2de1 weekly release 4.3dev 2023-06-09 13:14:19 +08:00
Sara Arjona 86edd3d142 Merge branch 'MDL-78415-master-enfix' of https://github.com/vmdef/moodle 2023-06-08 20:33:02 +02:00
Víctor Déniz 9bb5581f4b MDL-78415 lang: Fix typo in Behat tests 2023-06-08 18:46:52 +01:00
Víctor Déniz 7e3b1b1450 MDL-78415 lang: Fix Behat tests regressions after merging en_fix strings 2023-06-08 11:40:13 +01:00
Víctor Déniz 48c161543d MDL-78415 lang: Add parameter to reopencolumn string 2023-06-08 11:38:49 +01:00
Helen Foster 06c5a6c883 MDL-78415 lang: Import fixed English strings (en_fix) 2023-06-08 09:59:04 +01:00
David Woloszyn 5b9a452263 MDL-78237 editor_tiny: Prevent navbar obscuring modal content 2023-06-08 17:14:23 +10:00
David Woloszyn 1e6dcdc3d4 MDL-78237 css: Make navbar height available for non sass-use 2023-06-08 15:52:42 +10:00
Sara Arjona 06bead8e8c Merge branch 'MDL-77946' of https://github.com/paulholden/moodle 2023-06-08 06:56:46 +02:00
Sara Arjona 253b66ec81 Merge branch 'MDL-78308' of https://github.com/paulholden/moodle 2023-06-08 06:48:27 +02:00
Andrew Nicols 9f5d56b7c3 Merge branch 'MDL-75696_master' of https://github.com/marxjohnson/moodle 2023-06-08 12:30:49 +08:00
Andrew Nicols d11668405f Merge branch 'MDL-77357-master' of https://github.com/safatshahin/moodle 2023-06-08 12:27:10 +08:00
Safat 7e91f77541 MDL-77357 communication_matrix: Add plugin savepoint 2023-06-08 14:18:25 +10:00
Andrew Nicols 8538341bc8 Merge branch 'MDL-78364' of https://github.com/paulholden/moodle 2023-06-08 12:17:03 +08:00
Andrew Nicols 3daea485f3 Merge branch 'MDL-78008' of https://github.com/timhunt/moodle 2023-06-08 12:09:07 +08:00
Andrew Nicols b610b9adbe Merge branch 'MDL-77933-master' of https://github.com/snake/moodle 2023-06-08 12:02:58 +08:00
Andrew Nicols ce6658d2c8 MDL-76838 core: Add unit test for invalid unicode sequences 2023-06-08 11:59:10 +08:00
Andrew Nicols 7de0cb32d1 Merge branch 'MDL-76838' of https://github.com/paulholden/moodle 2023-06-08 11:54:05 +08:00
Jun Pataleta d1295a8734 Merge branch 'MDL-75898-master' of https://github.com/matthewhilton/moodle 2023-06-08 11:43:18 +08:00
Andrew Nicols f31d8f688e Merge branch 'MDL-78026' of https://github.com/paulholden/moodle 2023-06-08 11:35:57 +08:00
Andrew Nicols 46ba6e83f8 Merge branch 'MDL-77264' of https://github.com/paulholden/moodle 2023-06-08 11:31:51 +08:00
Andrew Nicols 212e27c5ac Merge branch 'MDL-76821-master' of https://github.com/snake/moodle 2023-06-08 11:28:55 +08:00
Jake Dallimore 6f54ece655 MDL-77933 enrol_lti: return site name and logo during registration
Instead of the Moodle icon and the 'moodle' lang string, return the
site fullname and compact logo during dynamic registration.
2023-06-08 11:28:26 +08:00
Andrew Nicols 7cff32e8fb Merge branch 'MDL-77635-master-2' of https://github.com/ilyatregubov/moodle 2023-06-08 11:26:07 +08:00
Andrew Nicols 346d508950 Merge branch 'MDL-77799-master' of https://github.com/sammarshallou/moodle 2023-06-08 11:20:26 +08:00
Andrew Nicols d61f233c88 Merge branch 'MDL-77814-master' of https://github.com/ferranrecio/moodle 2023-06-08 11:07:40 +08:00
Ilya Tregubov 44bd656a98 MDL-77635 core_grades: Use sticky footer on import grades page 2023-06-08 11:06:28 +08:00
Ilya Tregubov 4838f8e916 MDL-77635 formslib: Allow using a sticky footer in QuickForms 2023-06-08 11:05:46 +08:00
Andrew Nicols b38ef87454 Merge branch 'MDL-78408-master' of https://github.com/snake/moodle 2023-06-08 11:05:03 +08:00
Jun Pataleta 78c71f408a Merge branch 'MDL-78036' of https://github.com/stronk7/moodle 2023-06-08 11:03:39 +08:00
Andrew Nicols 11a075eb61 Merge branch 'wip_MDL-78400_master' of https://github.com/gjb2048/moodle 2023-06-08 10:51:07 +08:00
Andrew Nicols 15c15030d6 Merge branch 'MDL-76406-master' of https://github.com/safatshahin/moodle 2023-06-08 10:36:54 +08:00
Jun Pataleta f46cc228a5 Merge branch 'MDL-76842-master' of https://github.com/snake/moodle 2023-06-08 10:34:46 +08:00
Jun Pataleta 7aee844d05 Merge branch 'MDL-78431-master' of https://github.com/andrewnicols/moodle 2023-06-08 10:28:31 +08:00
Jake Dallimore c25857a73f MDL-76842 auth_lti: remove redundant conditional logic and cast 2023-06-08 10:27:19 +08:00
Jake Dallimore 22b0565ef1 MDL-76842 enrol_lti: fix user record updates in user_repository
Only call user_update_user when the relevant user data has changed,
preventing unnecessary user_updated events. This also removes the
line setting timemodified on the user since user_update_user already
handles this.
2023-06-08 10:27:16 +08:00
Stevani Andolo fdb80ffc40 MDL-78215 core: Added support unit test 2023-06-08 09:36:00 +08:00
Stevani Andolo 429c403c3f MDL-78215 core: support checking if 0.0.0.0 is in subnet 2023-06-08 09:36:00 +08:00
Jake Dallimore b1e550a229 MDL-76842 enrol_lti: test confirming the erroneous user_updated events
This test will fail until the fix - only updating users when data has
changed - is put in place in the following commit.
2023-06-08 09:29:56 +08:00
Jake Dallimore d9fbe7c866 MDL-76842 auth_lti: don't update the user unless data has changed
When receiving data from the LTI launch, or service call, only update
the user record when we know something has changed. This prevents the
creation of many \core\event\user_updated events.
2023-06-08 09:29:56 +08:00
Jake Dallimore 3208e7f182 MDL-76842 auth_lti: don't update the user after membership creation
This isn't required and generates excess events. The only thing update
does, other than update the user fields, is to update the picture, but
in this case, that's unset in membership-based auths anyway, so it's
entirely safe to remove this.
2023-06-08 09:29:56 +08:00
Jake Dallimore dd507afe4b MDL-76842 auth_lti: test confirming the erroneous user_updated events
This test will fail until the fix - only updating users when data has
changed - is put in place in the following commit.
2023-06-08 09:29:56 +08:00
Jun Pataleta 0a36466d9f Merge branch 'MDL-69530' of https://github.com/paulholden/moodle 2023-06-07 23:26:52 +08:00
Jun Pataleta 58e76214e4 Merge branch 'MDL-78378-master' of https://github.com/sarjona/moodle 2023-06-07 23:24:41 +08:00
Jun Pataleta 0dce9fe077 Merge branch 'MDL-76745_master' of https://github.com/marxjohnson/moodle 2023-06-07 22:54:27 +08:00
Andrew Nicols da418eb16b MDL-78431 core: Abort after config for source maps 2023-06-07 21:07:25 +08:00
Sara Arjona 357ad39138 Merge branch 'MDL-78322' of https://github.com/paulholden/moodle 2023-06-07 12:42:57 +02:00
Sara Arjona e7cb93d877 Merge branch 'MDL-78352' of https://github.com/paulholden/moodle 2023-06-07 12:41:06 +02:00
Sara Arjona d91a9d5117 Merge branch 'MDL-71183' of https://github.com/paulholden/moodle 2023-06-07 12:38:46 +02:00
Martin Gauk 695c74ac60 MDL-78297 core: Less cache lookups in deprecated capabilities feature
Avoid use of $cache->has.
2023-06-07 12:36:00 +02:00
Sara Arjona c00b8f7c87 Merge branch 'MDL-78047-master' of https://github.com/stevandoMoodle/moodle 2023-06-07 18:08:47 +08:00
Sara Arjona 1279060f15 Merge branch 'MDL-78010-master' of https://github.com/ferranrecio/moodle 2023-06-07 18:08:47 +08:00
Sara Arjona bf8154427e Merge branch 'MDL-78143-master' of https://github.com/meirzamoodle/moodle 2023-06-07 18:08:46 +08:00
Sara Arjona 08b59c42f1 Merge branch 'MDL-78147-master' of https://github.com/meirzamoodle/moodle 2023-06-07 18:08:46 +08:00
sam marshall 6f48fe50a2 MDL-77799 webservice_rest: unhandled exception should go in server log 2023-06-07 10:02:41 +01:00
Jake Dallimore df95eace29 MDL-78408 core: fix restoration of anchor to wantsurl during login 2023-06-07 14:13:57 +08:00
Stevani Andolo c27237a998 MDL-78047 core_courseformat: Wrapping added to text and media activity 2023-06-07 12:11:22 +08:00
Paul Holden 0c69ff1dd1 MDL-77193 mnet: correct sorting of access control table. 2023-06-07 09:53:01 +08:00
Meirza 1c2a86c335 MDL-78147 h5p: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-06-07 05:16:57 +07:00
Ferran Recio 4a3f21fee8 MDL-78010 mod_label: improve upgrade performance 2023-06-06 21:31:23 +02:00
Meirza 74c851c5a7 MDL-78143 lib: Added class properties in html purifier
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-06-06 21:47:35 +07:00
Petr Skoda e931e8029e MDL-76683 core_group: fix template 2023-06-06 14:04:19 +00:00
Andrew Nicols 053afd697e Merge branch 'MDL-77357-master' of https://github.com/safatshahin/moodle 2023-06-06 21:57:05 +08:00
Paul Holden e60c45b610 MDL-78355 xapi: correct coverage notation for delete state test. 2023-06-06 12:04:07 +01:00
Paul Holden 3bc3a5b660 MDL-69530 h5p: remove storage class editor filearea constant. 2023-06-06 12:03:15 +01:00
Eloy Lafuente (stronk7) 10e3afc5d8 MDL-78036 behat: Move all links from old docs to new counterparts 2023-06-06 12:38:01 +02:00
Sara Arjona 1d2e8bcc33 Merge branch 'MDL-76936' of https://github.com/HirotoKagotani/moodle 2023-06-06 11:22:08 +02:00
Safat 17e4523382 MDL-77357 communication_matrix: Test fix for course banner notification 2023-06-06 17:08:51 +10:00
Andrew Nicols 74813d9f37 Merge branch 'MDL-77357-master' of https://github.com/safatshahin/moodle 2023-06-06 11:19:42 +08:00
Paul Holden 8ed7c78ecf MDL-78364 reportbuilder: earlier calculation of schedule recipients. 2023-06-05 16:22:28 +01:00
Gareth Barnard 5eed922987 MDL-78400 JavaScript: Building JS puts build files in src dir on Win. 2023-06-05 14:55:47 +01:00
Juan Leyva f74ce531ba MDL-74263 enrol_guest: Add WebService support for mobile app 2023-06-02 19:03:48 +02:00
Mark Johnson 0fd25d1edd MDL-75125 core_question: Deprecate old action column classes
Final removal in Moodle 4.7 MDL-78090
2023-06-02 11:42:02 +01:00
Mark Johnson 327f23be0c MDL-75125 mod_quiz: Use custom columns for question bank actions
We no longer support action columns in the core question bank,
but the "add from question bank" view still needs to display a
couple of actions, so this implements them as custom columns.
2023-06-02 11:42:00 +01:00
Mark Johnson 359bb7e31a MDL-75125 qbank: Convert qbank plugins to new actions API 2023-06-02 11:15:40 +01:00
Safat Shahin be1bc85028 MDL-75125 core_question: Add action as a feature
This commit will implement question bank actions as a feature.
Previously, it used to implement columns and actions together in one
feature.
With this change it will have actions a different feature which will
allow
developers to implement actions in an easier way.

The existing "action column" API will be deprecated in a separate
commit.

Co-authored-by: Mark Johnson <mark.johnson@catalyst-eu.net>
2023-06-02 11:14:23 +01:00
Sara Arjona d3f363541b MDL-73052 page: Fix page description when it has only an image
This is as regression of MDL-72413, when description was moved to a
standard module API.
In some cases, when description has only images, it's was not
displayed.
2023-06-02 08:20:17 +02:00
Sara Arjona 7499e96a33 MDL-78378 survey: Display default introduction when description is empty
This is a regression when the activity pages were redessigned in Moodle
4.0. The default introduction should be displayed when the activity
description is empty.
2023-06-02 08:19:08 +02:00
Simey Lameze 2367bc9ff6 MDL-69231 behat: remaining work for role capability generator
This commit does few things:
* Unify data generators usage to role short name.
* Replace remaining manual steps to use the new data generator.
* Also replaced other manual steps to set config to use data generators.
* Tidy up of some tests, aligning pipes and splitting one line steps into multiple lines.
* Fixes tests to have one Given/When/Then per scenario.
2023-06-02 12:47:27 +08:00
Andrew Nicols aa2fc4048e MDL-69231 behat: Update tests to use new generator 2023-06-02 12:47:27 +08:00
Andrew Nicols 1a4303c9bc MDL-69231 tests: Add role capability setting generator 2023-06-02 12:47:27 +08:00
Andrew Nicols 8c9282f5d6 MDL-69231 tests: Improve existing role generator
Support definition of context levels and permissions.
2023-06-02 12:47:27 +08:00
Safat 091d9d2d86 MDL-76406 core: Add environment check for versions not supporting 8.2 2023-06-02 12:01:56 +10:00
Ilya Tregubov 84bb5725f8 weekly release 4.3dev 2023-06-02 09:55:29 +08:00
Ilya Tregubov 8fd201d781 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-06-02 09:55:26 +08:00
Rodrigo Mady da Silva 407856338c MDL-74568 mod_chat: Add Webservice mod_chat_view_sessions 2023-06-01 18:16:21 -03:00
Mark Johnson 09cf1b8818 MDL-76745 cache: Implement cache_loader_with_locking in cache_disabled
If a plugin attempts to do something that would lock coursemodinfo cache
during install (such as creating a course module), this currently fails
as check_lock_state is not implemented in cache_disabled. Adding the
cache_loader_with_locking interface ensures that all lock methods are
implemented.
2023-06-01 15:03:01 +01:00
Andrew Nicols ef6be3c400 Merge branch 'MDL-77749-unset-config-duration' of https://github.com/brendanheywood/moodle 2023-06-01 13:00:55 +02:00
Andrew Nicols 81dc04b435 Merge branch 'MDL-77564' of https://github.com/timhunt/moodle 2023-06-01 13:00:54 +02:00
Jun Pataleta 71216a0b1d Merge branch 'MDL-78092-master' of https://github.com/sammarshallou/moodle 2023-06-01 11:36:44 +08:00
Ilya Tregubov 9d6e83274a Merge branch 'MDL-78317-master' of https://github.com/andrewnicols/moodle 2023-06-01 11:17:31 +08:00
Andrew Nicols 74c7959f22 Merge branch 'master' of git.in.moodle.com:moodle/integration; branch 'MDL-78383' of https://github.com/jrchamp/moodle 2023-06-01 11:12:10 +08:00
Andrew Nicols d60ce4c575 Merge branch 'MDL-78146-master' of https://github.com/meirzamoodle/moodle 2023-06-01 11:01:34 +08:00
Andrew Nicols a1e6cc6747 Merge branch 'MDL-76397-master' of https://github.com/stevandoMoodle/moodle 2023-06-01 10:57:14 +08:00
Andrew Nicols 08dab39234 Merge branch 'MDL-78327' of https://github.com/timhunt/moodle 2023-06-01 10:52:22 +08:00
Ilya Tregubov 8ab87b3fc4 Merge branch 'MDL-78196-master' of https://github.com/jleyva/moodle 2023-06-01 10:39:30 +08:00
Andrew Nicols 8d1a2c960a MDL-78019 core: Whitespace fixes 2023-06-01 10:20:06 +08:00
Andrew Nicols e60843f355 Merge branch 'MDL-78019' of https://github.com/AnupamaSarjoshi/moodle 2023-06-01 10:14:18 +08:00
Ilya Tregubov 59cd47c02f Merge branch 'MDL-62859' of https://github.com/paulholden/moodle 2023-06-01 10:12:14 +08:00
Andrew Nicols 64dbf7c1f2 Merge branch 'MDL-78142-master' of https://github.com/meirzamoodle/moodle 2023-06-01 09:51:22 +08:00
Ilya Tregubov d0012c7e3f Merge branch 'MDL-77259' of https://github.com/paulholden/moodle 2023-06-01 09:29:12 +08:00
Ilya Tregubov e453be7198 Merge branch 'MDL-75961-master' of https://github.com/lameze/moodle 2023-06-01 09:07:27 +08:00
Ilya Tregubov f245db464f Merge branch 'MDL-71067' of https://github.com/paulholden/moodle 2023-06-01 08:55:36 +08:00
AMOS bot 331781c504 Automatically generated installer lang files 2023-06-01 00:11:09 +00:00
mkassaei cc880cabf5 MDL-77564 Quiz display options: Hide or show the grade information
Allow settings to show Max marks and Marks, Max marks only, or hide the grade information completely.
2023-05-31 17:15:29 +01:00
Sara Arjona 9d158408ae Merge branch 'MDL-76693-master' of https://github.com/roland04/moodle 2023-05-31 17:08:50 +02:00
Safat 5fc1dedeae MDL-77357 communication_matrix: Implement dynamic form fields 2023-06-01 00:42:53 +10:00
Safat 982938fa04 MDL-77357 core_course: Api call for dynamic form fields 2023-06-01 00:39:03 +10:00
Safat 04b7c496f0 MDL-77357 core_communication: Add api for provider form fields 2023-06-01 00:39:03 +10:00
Simey Lameze 89b0b04333 MDL-77547 behat: run recalculate task before checking values 2023-05-31 15:04:54 +02:00
Sara Arjona ca1996a013 Merge branch 'MDL-77547-master' of https://github.com/andelacruz/moodle 2023-05-31 12:51:13 +02:00
Sara Arjona db4a3d9455 Merge branch 'MDL-77907-master' of https://github.com/andelacruz/moodle 2023-05-31 12:17:59 +02:00
Sara Arjona 6a27e5f8a7 Merge branch 'MDL-78145-master' of https://github.com/meirzamoodle/moodle 2023-05-31 12:09:17 +02:00
Sara Arjona f0dd54e7fd Merge branch 'MDL-78148-master' of https://github.com/ferranrecio/moodle 2023-05-31 11:42:07 +02:00
Tim Hunt ddd1ce66fd MDL-78327 question stats: store same timestamp for all question stats 2023-05-31 10:41:34 +01:00
Sara Arjona 1cbd91fe47 Merge branch 'MDL-73648' of https://github.com/paulholden/moodle 2023-05-31 11:38:04 +02:00
Ilya Tregubov b85df60331 Merge branch 'MDL-77654-master' of https://github.com/HuongNV13/moodle 2023-05-31 14:28:38 +08:00
Ilya Tregubov accddabca3 Merge branch 'MDL-77168-master' of https://github.com/andrewnicols/moodle 2023-05-31 10:22:02 +08:00
Jonathan Champ e32cf94b9b MDL-78383 cache: Remove unused class property configlockmappings 2023-05-30 19:46:03 -04:00
Ilya Tregubov 9bc2c51e4a Merge branch 'MDL-73138' of https://github.com/paulholden/moodle 2023-05-30 12:53:47 +08:00
Ilya Tregubov 88f0bd7675 Merge branch 'MDL-77723' of https://github.com/paulholden/moodle 2023-05-30 12:43:53 +08:00
AMOS bot fb770828cc Automatically generated installer lang files 2023-05-30 00:10:43 +00:00
Jun Pataleta 3dfd0b73fe Merge branch 'MDL-78314-master' of https://github.com/lucaboesch/moodle 2023-05-29 17:35:26 +08:00
Jun Pataleta c0bca499df Merge branch 'MDL-78266-master' of https://github.com/andrewnicols/moodle 2023-05-29 17:16:03 +08:00
Mikel Martín ab66e73a5b MDL-76693 core_course: Fix activity chooser summary overlap
In activity chooser modal, there is an overlap issue in the information "sub-page".
Changing some classes in the layout solves the problem.
2023-05-29 09:43:39 +02:00
Ferran Recio 0eaaf40f10 MDL-78175 output: new paragraph renderer method
Many main php files still uses html_writer('p...) to render a simple
paragraphs below or under other elements like forms. In many cases those
texts could be part of a template but there are may scenarios were
creating a full template for a simple paragraph is too much. However,
the html_writer is too limiting as plugins cannot provide their own
implementation. This new method in the renderer is a good in between
solution.
2023-05-29 09:26:04 +02:00
Ferran Recio 0ad8fd077c MDL-78175 course: move role renaming to participants 2023-05-29 09:25:18 +02:00
Ferran Recio 268e82b005 MDL-77814 core_xapi: add itemid check to state store
The xAPI state standard allow any type of activity ID, not only
integers. However, the default state store uses itemid to identify the
component instance so the activity id is limited to numerics. The store
base calls should use string as activityid as this is how xAPI specs
describe it. However, if a plugin want to use non numeric activity ids
it must implement it's own state store.
2023-05-29 08:57:24 +02:00
Ferran Recio c07bbf8d76 MDL-78148 core_courseformat: reduce the use of uniqid in templates 2023-05-29 08:38:40 +02:00
Jun Pataleta fb3ab6ae94 Merge branch 'MDL-77532' of https://github.com/paulholden/moodle 2023-05-29 11:09:49 +08:00
Jun Pataleta 42f930ecf0 Merge branch 'MDL-76471' of https://github.com/paulholden/moodle 2023-05-29 11:08:13 +08:00
Angelia Dela Cruz c95ef35b60 MDL-70152 behat: Forum behat generators use UI
Behat cleanup and optimisation
2023-05-29 10:32:20 +08:00
Angelia Dela Cruz 640db57c0e MDL-70152 behat: Forum behat generators use UI
Replace steps that manually add forum and forum post instances
via the UI and use Behat generators. This improves the speed of
Behat test runs.
2023-05-29 10:32:12 +08:00
Andrew Nicols 505940f91e MDL-70152 forum: Create behat data generator
* Convert track_read_posts.feature to use activity and discussion
data generators as exmaple.

Co-authored-by: Jun Pataleta <jun@moodle.com>
2023-05-29 10:32:11 +08:00
Huong Nguyen 8c03232b02 MDL-77654 Libraries: Upgrade ogv.js tech plugin for VideoJS to 0.2.1 2023-05-29 09:30:07 +07:00
Meirza 6be248016f MDL-76673 atto: Check color contrast only on elements that have text
If the content in Atto is wrapped by an element with only a background color, without text color,
the accessibility checker will use the parent text-color as the foreground color, which is owned by form-control,
it becomes a problem if the wrapped element background using #34274f and the parent text-color is #495057 then
the low contrast as a result.

To avoid such a situation, the patch will only calculate color contrast if only the element has text,
so it will give results per element if the accessibility checker is unsatisfied.
2023-05-27 13:56:18 +07:00
Meirza ff22a6e221 MDL-76673 tiny: Check color contrast only on elements that have text
If the content in Tiny is wrapped by an element with only a background color, without text color,
the accessibility checker will use the parent text-color as the foreground color, which is owned by form-control,
it becomes a problem if the wrapped element background using #34274f and the parent text-color is #495057 then
the low contrast as a result.

To avoid such a situation, the patch will only calculate color contrast if only the element has text,
so it will give results per element if the accessibility checker is unsatisfied.

The patch also changes the selected element from 'body > *' to 'body *',
so it will return all elements (parents and children) in the content instead of parents only.

And minor modifications on the warning_content.mustache to fix the numbering format.
2023-05-27 13:56:18 +07:00
Meirza 4c2d560fc7 MDL-78146 lib: Added missing class properties in phpmailer
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-27 11:25:38 +07:00
Meirza 928b300bc7 MDL-78145 lib: Added missing class properties in pear
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-27 11:11:12 +07:00
Meirza 0d54d69c22 MDL-78142 lib: Added class properties that are not declared in bennu
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-27 09:49:39 +07:00
Meirza ccac845f11 MDL-78166 lib: Added missing class properties in portfolio
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.

Removing the existing $id property at portfolio_format_leap2a_writer, because
the $id only needed inside the __construct().
2023-05-27 09:28:03 +07:00
Meirza b7008d33ea MDL-78167 lib: Added missing class properties in tests
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.

Adding @runTestsInSeparateProcesses and removing setUp() and tearDown() at the
component_test.php, so the test will run in a separate process making sure that
whatever changes happen to the in-memory version of the component class in its thread,
therefore does not impact other tests and makes it more safe.
2023-05-27 09:24:59 +07:00
Anupama Sarjoshi b4b9248b78 MDL-78019 core: Logs to record user file deleted from draft area 2023-05-26 17:45:36 +01:00
Eloy Lafuente (stronk7) 16e101ff72 MDL-78036 behat: Fix php81 deprecation warning 2023-05-26 18:04:11 +02:00
Luca Bösch eecbead7d9 MDL-78314 quiz: style button fieldset in "Manually grade question". 2023-05-26 15:09:43 +02:00
Paul Holden cace650f26 MDL-71325 grade: final removal of deprecated category external method. 2023-05-26 13:48:57 +01:00
Paul Holden 8c7158e224 MDL-71067 phpunit: final removal of deprecated 311 coverage properties. 2023-05-26 13:40:35 +01:00
Paul Holden 9990a740bf MDL-78352 webservice: use default user context page heading. 2023-05-26 12:25:38 +01:00
Wehr Mario fbe936cef7 MDL-78004 cache: Fix deprecated null value in Redis connect 2023-05-26 13:25:19 +02:00
Paul Holden 12bc873b26 MDL-73648 badges: add Behat generator class for creating badges. 2023-05-26 12:19:14 +01:00
Paul Holden 7ee4e2afa0 MDL-73138 group: remove double encoding of group/role names. 2023-05-26 10:25:33 +01:00
Paul Holden 5cc7311717 MDL-73138 user: avoid double encoding participant filter values. 2023-05-26 10:25:33 +01:00
Sara Arjona 4ed782dd03 weekly release 4.3dev 2023-05-26 09:28:35 +02:00
Sara Arjona cb5ce03aae Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-05-26 09:28:25 +02:00
Andrew Nicols 0f25d9360d Merge branch 'MDL-77252-master-fix' of https://github.com/davewoloszyn/moodle 2023-05-26 11:12:44 +08:00
David Woloszyn 81414b527a MDL-77252 course: Fixed failing communication room status test 2023-05-26 11:55:23 +10:00
Jun Pataleta e1d1cf8bfe Merge branch 'MDL-78346-master' of https://github.com/andrewnicols/moodle 2023-05-25 16:22:55 +08:00
Andrew Nicols cc193bd7a6 MDL-78346 tool_langimport: Print any notifications before redirect 2023-05-25 14:54:35 +08:00
Andrew Nicols 18dc795907 MDL-78266 core: Simplify string fetching/storing/retrieval
Rather than storing strings by an ID, we instead store them by the
string placeholder value.

This means that:
- we can fetch them by placeholder (e.g. `[[_s144]]`) rather than by
  index
- we can lazily clean them on fetch
- we only clean them once, rather than on every insertion.
2023-05-25 13:42:15 +08:00
Andrew Nicols a438e2c72d MDL-78266 core: Simplify string treatment in core/templates
The old handling was extremely convoluted, and likely inefficient.

It's much clearer to use a regex with named groups and loop through in a
standard way.
2023-05-25 13:42:08 +08:00
Andrew Nicols 1ef815cd97 MDL-78266 core: Break apart core/templates
This commit breaks apart the responsibilities of the core/templates
module to separate out the different constituent parts. Broadly speaking
these are:
- core/local/templates/loader - responsible for fetching, and caching,
  of templates
- core/local/templates/renderer - A Moodle wrapper around the Mustache
  engine
2023-05-25 13:42:00 +08:00
Andrew Nicols 16dee82ce5 MDL-78266 core: Migrate core/templates to esm 2023-05-25 12:09:46 +08:00
Andrew Nicols e82aed72e6 Merge branch 'MDL-78012' of https://github.com/paulholden/moodle 2023-05-25 12:02:55 +08:00
Jun Pataleta c1c6234aea Merge branch 'MDL-78339' of https://github.com/paulholden/moodle 2023-05-25 12:01:15 +08:00
Jun Pataleta d1de2ba1a4 Merge branch 'MDL-76065-master' of https://github.com/lameze/moodle 2023-05-25 11:56:54 +08:00
Jun Pataleta fe69b61828 Merge branch 'MDL-78169-master' of https://github.com/andrewnicols/moodle 2023-05-25 11:50:22 +08:00
Jun Pataleta 428e604344 Merge branch 'MDL-78320' of https://github.com/paulholden/moodle 2023-05-25 11:48:42 +08:00
Jun Pataleta b67930a29c Merge branch 'MDL-78346-master' of https://github.com/andrewnicols/moodle 2023-05-25 11:43:37 +08:00
Jun Pataleta 881b51c8e2 Merge branch 'MDL-77159-master' of https://github.com/andrewnicols/moodle 2023-05-25 11:39:52 +08:00
Andrew Nicols 68122a9d89 MDL-78346 tool_langimport: Redirect after action to prevent resubmission 2023-05-25 11:14:14 +08:00
Andrew Nicols ad7a5030f1 MDL-78346 tool_langimport: Prevent uninstallation of invalid targets 2023-05-25 11:14:14 +08:00
Andrew Nicols d895574c9a Merge branch 'MDL-77252-master' of https://github.com/davewoloszyn/moodle 2023-05-25 10:49:30 +08:00
Andrew Nicols 1cd51db6a1 Merge branch 'MDL-77341-master' of https://github.com/meirzamoodle/moodle 2023-05-25 10:44:50 +08:00
Andrew Nicols 5c183a99e7 Merge branch 'MDL-78307-master' of https://github.com/dpalou/moodle 2023-05-25 10:42:19 +08:00
Andrew Nicols b50d41b085 Merge branch 'MDL-63759-master' of https://github.com/srobotta/moodle 2023-05-25 10:37:03 +08:00
Andrew Nicols e6e753024c Merge branch 'MDL-78332' of https://github.com/skodak/moodle 2023-05-25 10:03:22 +08:00
Andrew Nicols e702298612 Merge branch 'MDL-77995' of https://github.com/paulholden/moodle 2023-05-25 09:49:11 +08:00
Petr Skoda 8a9e5aeb7a MDL-78332 core: fix hook discovery and use is_subclass_of()
And order hooks in admin UI - core first.
2023-05-24 19:53:18 +02:00
Paul Holden ca95bee259 MDL-78333 mod_assign: final removal of deprecated log format methods. 2023-05-24 16:41:55 +01:00
Paul Holden b2dd8a3cbd MDL-78320 quiz_overview: format group names in overview report. 2023-05-24 16:19:29 +01:00
Andrew Nicols d8a7039f92 Merge branch 'MDL-77983-master' of https://github.com/rjnl/moodle 2023-05-24 21:14:41 +08:00
Andrew Nicols c730b8735f MDL-77159 tool_langimport: Replace YUI module with ESM 2023-05-24 20:40:14 +08:00
Petr Skoda 0dcb5c4281 MDL-78332 core: remove unnecessary hooks reset method 2023-05-24 14:35:59 +02:00
Jun Pataleta ac0767cac4 Merge branch 'MDL-77353_Master' of https://github.com/catalyst/moodle-MDL-76126 2023-05-24 20:18:59 +08:00
= a076a80dec MDL-63120 core_badges: Avoid multiple joins in sql statement 2023-05-24 13:37:59 +02:00
Dani Palou 53eb03bcc6 MDL-78307 quiz: Fix URL passed to secure_window.init_close_button 2023-05-24 13:10:50 +02:00
Dani Palou a5a33b8d4a MDL-78307 quiz: Fix contexturl passed to attempt_overdue message 2023-05-24 13:10:50 +02:00
Paul Holden 373c163f74 MDL-78339 webservice: correctly namespace external API. 2023-05-24 09:36:23 +01:00
Andrew Nicols 03d70834c9 Merge branch 'MDL-73464-master' of https://github.com/Chocolate-lightning/moodle 2023-05-24 14:56:47 +08:00
Stephan Robotta 95f5e32f99 MDL-63759 iplookup: use OSM if Google is not used, use accuracy radius 2023-05-24 08:40:34 +02:00
Andrew Nicols cb3ea26ae6 Merge branch 'MDL-78016' of https://github.com/stronk7/moodle 2023-05-24 14:32:56 +08:00
David Mudrák b407af725f MDL-73464 book: Scroll to chapter top when navigating through the book
When navigating to the next / previous chapter, the chapter should be
the page element that gets the user's attention and focus. Its title
should be displayed at the prominent top page area without the need to
scroll to it all the time.
2023-05-24 14:32:45 +08:00
Jun Pataleta d78de537ff Merge branch 'MDL-78005-master' of https://github.com/davewoloszyn/moodle 2023-05-24 12:06:52 +08:00
Jun Pataleta 6ee1bac7d8 Merge branch 'MDL-78132-master' of https://github.com/sarjona/moodle 2023-05-24 12:04:58 +08:00
Nathan Nguyen 1452caac93 MDL-77353 core: examples of new user function usage 2023-05-24 13:05:13 +10:00
Nathan Nguyen f897ecd627 MDL-77353 core_user: new functions
New functions:
    * `core_user::get_profile_picture` for retrieving user picture.
    * `core_user::get_profile_url` for retrieving profile url.
    * `core_user::get_fullname` for retrieving user full name.

Note: the context is not used as this stage. It will be used by "User Disguises" plugin, which will be implemented later.
2023-05-24 13:05:02 +10:00
Simey Lameze 42a01d20e3 MDL-75961 behat: review and enhance mod_imscp tests
This commit makes the following improvements to mod_imscp tests:
* Removes unnecessary @javascript and @_file_upload tags from non-JS tests.
* Removes user/enrol data generation from tests that can be performed as admin.
* Removes "I log out" and other unnecessary steps.
2023-05-24 10:27:41 +08:00
Angelia Dela Cruz deb4e69f74 MDL-75961 behat: IMSCP behat generators use UI
Replace steps that manually add IMSCP instances via the UI and use
Behat generators. This improves the speed of the Behat test runs.
2023-05-24 10:01:17 +08:00
Sara Arjona 8705d4e478 Merge branch 'MDL-78176' of https://github.com/AnupamaSarjoshi/moodle 2023-05-23 17:45:47 +02:00
Sara Arjona 53bd6aaaf8 Merge branch 'MDL-75640' of https://github.com/paulholden/moodle 2023-05-23 17:41:06 +02:00
Sara Arjona 1df51b02f8 Merge branch 'MDL-78242' of https://github.com/paulholden/moodle 2023-05-23 17:36:50 +02:00
Jun Pataleta b5c0d804f1 Merge branch 'MDL-75512-master' of https://github.com/ilyatregubov/moodle 2023-05-23 20:16:44 +08:00
Andrew Nicols 67ba0d3e83 MDL-74954 core: Detect changes to hook overrides 2023-05-23 16:03:37 +08:00
Jun Pataleta 6823da53f1 Merge branch 'MDL-76688/master' of https://github.com/skodak/moodle 2023-05-23 15:22:19 +08:00
Angelia Dela Cruz 898a6b7c1a MDL-77547 Behat: Coverage to check for bad multichoice questions 2023-05-23 15:14:18 +08:00
Sara Arjona e7ec8da607 MDL-78132 badges: deprecate functions and strings
When the logic to get the correct apiBase has been moved to the
backpack, some strings and methods have been marked as deprecated.
2023-05-23 08:47:10 +02:00
Andrew Nicols 03e4afdb39 MDL-78132 badges: move apiBase consumption to backpack
The logic to create the issuer has been moved to the backpack form
in order to improve the workflow and update the apiBase with the
proper value comming from the badgeconnect.json manifest file.

So, as part of this change in the workflow, the following changes
has been also implemented (to make the UI easier for users):

- The "Open Badges" oAuth issuer button has been removed from the
"OAuth Services" admin page. As they are created/updated when a backpack
is saved, this button is not required anymore.
- The "OAuth2 services" and "Backpack API URL" parameters have been
removed from the Manage backpacks form, because they are created on
the fly each time the backpack is saved.
2023-05-23 08:46:39 +02:00
Simey Lameze d9cccadcf2 MDL-76065 behat: Review and enhance mod_lti Behat tests
In this commit, the following improvements were made to the mod_lti Behat tests:

* Replaced manual steps with data generators to set completion.
* Eliminated unnecessary user and course enrolments data generation as some tests can be performed as an admin.
* Removed the @javascript tag from non-JS tests.
* Updated the LTI data generator to generate an internal Moodle URL in the toolurl field, enabling the use of XML files.
2023-05-23 12:11:48 +08:00
Angelia Dela Cruz dca69e002a MDL-76065 behat: LTI behat generators use UI
Replace steps that manually add LTI instances via the UI and use
Behat generators. This improves the speed of the Behat test runs.
2023-05-23 12:11:48 +08:00
Stevani Andolo bba2bf5ee6 MDL-76397 lib: Moodle customizations. 2023-05-23 11:14:06 +08:00
Stevani Andolo ae0ea56f25 MDL-76397 lib: xhprof upgraded to 2.3.9 2023-05-23 11:14:06 +08:00
Andrew Nicols 97300ca692 MDL-76733 mod_assign: Tidy up availability behat tests
This feature had lots of small issues and it made sense to fix it whilst
investigating a query:

* most of the steps do not require JavaScript
* it uses the UI to set an admin setting, for every scenario:
** only 3-4 of the scenarios actually test that setting
** it is very slow to do it his way when we have a generator step we can use
* we create two assignments in the Background, but each test only uses one of them
* we create the assignments in the Background with a generator, but
  update them to modify various settings in each Scenario using the UI
  when we should just create one assignment for each test and set it up
  correctly for that Scenario
2023-05-23 10:53:44 +08:00
Andrew Nicols 7e35c70376 Merge branch 'MDL-78170' of https://github.com/paulholden/moodle 2023-05-23 10:27:28 +08:00
Andrew Nicols 4a2dabc2ad Merge branch 'MDL-78087-master' of https://github.com/sarjona/moodle 2023-05-23 10:25:48 +08:00
AMOS bot dbfb0032f9 Automatically generated installer lang files 2023-05-23 00:10:32 +00:00
Paul Holden 3bfb7f759a MDL-76838 backup: remove invalid utf8 code sequences writing XML.
The surrogate blocks FFFE and FFFF are non-characters, specifically
disallowed in the character range for XML documents.
2023-05-22 21:04:02 +01:00
Paul Holden 283f48f14c MDL-78322 tool_cohortroles: don't assign roles to deleted users. 2023-05-22 20:14:31 +01:00
Tim Hunt a3043c3933 MDL-78008 qtype_multianswer: random guess score with missing subqs
Sometimes, due to other bugs, subquestions can get lost, so the code
needs to be robust to this.
2023-05-22 17:01:21 +01:00
Sara Arjona fabdff8fbd Merge branch 'MDL-78211' of https://github.com/paulholden/moodle 2023-05-22 17:41:37 +02:00
Sara Arjona 35f3790599 Merge branch 'MDL-78226' of https://github.com/paulholden/moodle 2023-05-22 17:29:16 +02:00
Sara Arjona bccd225c39 MDL-75963 tiny: Bump version to expected number
There was as an error with the previous version number:
"Version (2023031400) cannot be before 20230424 (YYYYMMDD)".
2023-05-22 16:36:01 +02:00
Andrew Nicols 656433d530 MDL-78328 mod_forum: Deprecate forum_print_discussion_header 2023-05-22 22:00:21 +08:00
Andrew Nicols dea64fa266 MDL-62859 block_online_users: Rewrite visibility changer as ESM 2023-05-22 13:51:39 +01:00
Andrew Nicols 82d7635d52 MDL-62859 block_timeline: Rewrite view navigation as ESM 2023-05-22 13:51:39 +01:00
Paul Holden c5d1f72dca MDL-62859 javascript: replace user preference calls with new methods. 2023-05-22 13:51:39 +01:00
Paul Holden 10b6f979c5 MDL-62859 user: export methods for manipulating user preferences in JS. 2023-05-22 13:51:37 +01:00
Andrew Nicols ea64a11963 MDL-74954 core: Remove failing deprecated hook test for now
This test cannot be made to work while there are no hooks to test.

When we add our first hooks, we can add these tests back and provide a
fake implementation for them in an isolated test run.
2023-05-22 20:04:23 +08:00
Andrew Nicols 91dc4b6501 Merge branch 'MDL-74954-master' of https://github.com/skodak/moodle 2023-05-22 20:03:13 +08:00
Petr Skoda d57acd957c MDL-74954 core: remove failing hooks test for now 2023-05-22 13:21:53 +02:00
Sara Arjona aebc13a62d Merge branch 'MDL-75963-master' of https://github.com/meirzamoodle/moodle 2023-05-22 12:15:58 +02:00
Sara Arjona fa8c3be540 Merge branch 'MDL-78225' of https://github.com/paulholden/moodle 2023-05-22 12:04:07 +02:00
sam marshall a2af6bd669 MDL-78092 Cache: Modinfo locking with Redis store does not work
The feature added in 4.1 to lock the modinfo cache does not work when
using Redis, because:

* The API to acquire a cache lock is confusing, and the code did not
  check that it successfully acquired a lock before going on to build
  the cache anyway.

* Unlike the other types of cache lock, the Redis store did not retry
  the lock for a timeout period before giving up and failing.

This change fixes both points.
2023-05-22 10:43:14 +01:00
Jun Pataleta 4233e9e61e Merge branch 'MDL-78157-master' of https://github.com/andrewnicols/moodle 2023-05-22 15:29:41 +08:00
Andrew Nicols 9b174fd3cc MDL-78157 js: Be more careful about inserting missing module names
It is perfectly legitimate to create and/or use a method named `define`
in JS outside of RequireJS.

Unfortunately our requirejs.php wrapper is dumb and does not understand
this.

In the long term we need to stop doing this at all. We really should be
able to already, but every time I try to something prevents it.

In the interim, this change adds a secondary check to see if there is an
existing define which _does_ have the right name in it already.
2023-05-22 14:40:41 +08:00
Jun Pataleta 21b6a7c615 Merge branch 'MDL-78323-master' of https://github.com/andrewnicols/moodle 2023-05-22 14:28:35 +08:00
Andrew Nicols 0aaea71650 MDL-78323 gradereport_grader: Fix jsdoc syntax 2023-05-22 09:23:27 +08:00
Meirza e95540d9ff MDL-77341 mnet: Added missing class properties
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-20 21:37:01 +07:00
Andrew Nicols 07a1dc04f8 MDL-74954 core: Add hook discovery feature 2023-05-20 11:03:46 +02:00
Petr Skoda 99a7a7c782 MDL-74954 core: add Hooks based on PSR-14 2023-05-20 11:03:46 +02:00
AMOS bot bf481ff790 Automatically generated installer lang files 2023-05-20 00:13:59 +00:00
Paul Holden 695fa397f2 MDL-77532 cohort: include custom fields in cohort report entity. 2023-05-19 18:11:50 +01:00
Paul Holden 5961c2d9cd MDL-76471 enrol: report filter on enrolment instance custom name. 2023-05-19 17:39:55 +01:00
Paul Holden a3c5606fd2 MDL-75640 completion: report entity column for completion criteria. 2023-05-19 17:27:50 +01:00
Eloy Lafuente (stronk7) ff8a9478b2 MDL-78016 dml: Add Oracle support for OFFSET ... FETCH clauses
Since Oracle 12, these statements (providing the same than the
well-known LIMIT clauses in MySQL and PostgreSQL) are available,

Just let's switch to use them, removing the old complex ROWNUM
based queries needed before to provide limits support.
2023-05-19 17:47:57 +02:00
Anupama Sarjoshi 73d29dc1ce MDL-78176 Question: Fix D&D onto image and D&D markers theme issue 2023-05-19 16:16:36 +01:00
Jun Pataleta 2e1c6fd43e weekly release 4.3dev 2023-05-19 21:13:46 +08:00
Jun Pataleta c5ab4c9474 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-05-19 21:13:43 +08:00
Eloy Lafuente (stronk7) af9cf5f00c Merge branch 'MDL-77576' of https://github.com/stronk7/moodle 2023-05-19 11:20:31 +02:00
Eloy Lafuente (stronk7) b171f57cd5 MDL-77576 matrix: Bump version to today
All master versions need to be > than the previous
release (4.2) versions. To avoid overlapping to happen.
2023-05-19 11:20:29 +02:00
Jun Pataleta 2ec6022d9c Merge branch 'MDL-77733-master-fix' of https://github.com/lameze/moodle 2023-05-19 11:40:16 +08:00
Eloy Lafuente (stronk7) 3ee151f674 Merge branch 'MDL-76900-fix' of https://github.com/paulholden/moodle 2023-05-19 11:40:16 +08:00
Jun Pataleta 4420901074 Merge branch 'MDL-78116-master' of https://github.com/andrewnicols/moodle 2023-05-19 11:40:15 +08:00
Andrew Nicols a176e8b63a Merge branch 'MDL-77451-master' of https://github.com/rezaies/moodle 2023-05-19 11:40:15 +08:00
Jun Pataleta e5a6de0d49 Merge branch 'MDL-78135' of https://github.com/paulholden/moodle 2023-05-19 11:40:15 +08:00
Andrew Nicols dc01f7df8d Merge branch 'MDL-78260' of https://github.com/timhunt/moodle 2023-05-19 11:40:14 +08:00
Andrew Nicols 1c62909d2e Merge branch 'MDL-78151' of https://github.com/paulholden/moodle 2023-05-19 11:40:14 +08:00
Andrew Nicols e177eff0f8 Merge branch 'MDL-77733-master' of https://github.com/lameze/moodle 2023-05-19 11:40:14 +08:00
Andrew Nicols 88b5313950 MDL-78317 behat: Remove finally deprecated methods
These methods are all very old and well out of the deprecation
timeframe. These are all ready for final removal per policy.
2023-05-19 10:57:42 +08:00
Andrew Nicols 1c9e122df7 MDL-77733 behat: Remove extraneous no-axe option
There is no need for no-axe if we make axe a boolean value. We already
have automatic support for negated boolean flags.
2023-05-19 10:32:53 +08:00
Mark Johnson bdc75b3015 MDL-75696 quiz: Fix restoring pre-4.0 quizzes with random questions
Restoring multiple quizzes from a pre-4.0 backup was broken when
the quizzes shared a random question. This is because after the
first quiz created a set reference in place of the random question,
it deleted the question record so it was not there for the second
quiz to use. This change tracks the IDs of random questions so
they can be deleted at the end.
2023-05-18 15:53:36 +01:00
Mark Johnson a47ebb50b3 MDL-75696 quiz: Set default value for includingsubcategories on restore 2023-05-18 15:53:36 +01:00
Mark Johnson b6b48be55d MDL-75696 backup: Fix backup version checks
Several version checks were incorrectly using
restore_controller::info::moodle_release instead of moodle_version as a
version number. This replaces all of those checks with a common pair of
methods to make the checks clearer and more maintainable.
2023-05-18 15:53:35 +01:00
Paul Holden 3894fa9460 MDL-76900 roles: improve Oracle support for entity description column.
Specifically during column grouping/aggregation, we need to avoid CLOB
datatype inconsistencies (ORA-00932).
2023-05-18 11:37:37 +01:00
Paul Holden 0f134c563d MDL-78308 output: better parsing of custom menu item configuration.
Previously certain values would cause deprecation notices in PHP8.1.
2023-05-18 10:19:22 +01:00
David Woloszyn da81f260f0 MDL-78005 editor_tiny: Declared vars to supress error logging 2023-05-18 12:57:56 +10:00
Jun Pataleta 5fd0a514af Merge branch 'master_MDL-78048' of https://github.com/mattporritt/moodle 2023-05-18 10:16:11 +08:00
Ilya Tregubov 63290dc925 Merge branch 'MDL-76900' of https://github.com/paulholden/moodle 2023-05-18 09:22:15 +08:00
Julien Boulen 5a6ea11dda MDL-77986 backup: trim extra white spaces on search forms 2023-05-17 16:29:38 +02:00
Mihail Geshoski f13e567644 MDL-77636 gradereport_user: Sticky footer in the grade user report 2023-05-17 22:03:41 +08:00
Paul Holden 19e05f0e34 MDL-71183 course: final removal of deprecated 311 renderer method. 2023-05-17 11:38:20 +01:00
Tim Hunt 9be598a77f MDL-78260 quiz stats: fix View details for random questions 2023-05-17 09:09:13 +01:00
Rajneel Totaram 4def049e4f MDL-77983 core_user: Avoid passing nulls to base64_decode 2023-05-17 19:40:29 +12:00
Ilya Tregubov dfc0b2a2fd Merge branch 'MDL-77700' of https://github.com/paulholden/moodle 2023-05-17 15:14:22 +08:00
Ilya Tregubov 1ff7767b70 Merge branch 'MDL-78152' of https://github.com/paulholden/moodle 2023-05-17 15:06:45 +08:00
Paul Holden f500b2d878 MDL-76900 course: add enrolment/role entities to participants source.
Deprecate columns/filters from current enrolment entity, to be
replaced by corresponding elements from each of the new entities.
2023-05-17 08:02:44 +01:00
Paul Holden 8f7bff9789 MDL-76900 reportbuilder: allow for deprecation of entity elements.
Don't allow deprecated columns/filters to be added to new custom
reports. Where they already exist, emit deprecation debugging.
2023-05-17 08:02:06 +01:00
Sara Arjona 36de54c1f8 Merge branch 'MDL-77350-master' of https://github.com/meirzamoodle/moodle 2023-05-17 08:27:26 +02:00
Ilya Tregubov 8a45a67bab Merge branch 'MDL-75372-url_blocked' of https://github.com/catalyst/moodle 2023-05-17 11:44:25 +08:00
David Woloszyn 5bad9bd064 MDL-77252 course: Show notification depending on room status 2023-05-17 10:22:24 +10:00
AMOS bot 58941e316e Automatically generated installer lang files 2023-05-17 00:11:04 +00:00
David Woloszyn d38cc920c5 MDL-77252 core_communication: Get room status and notifications 2023-05-17 10:06:11 +10:00
Matt Porritt 9fa50d04d6 MDL-78048 Site Registration: Course Dates
Course date registration data reports correctly.

MDL-77306 added a count of how many courses there are
without start and end dates. However, all courses have
a start date, it is only the end date that is optional.
This patch fixes the data collection and makes the lang
string describing it clearer.
2023-05-17 09:01:10 +10:00
Paul Holden b5e1330d72 MDL-78253 libraries: upgrade to version 2.3.7 of FPDI. 2023-05-16 17:40:55 +01:00
Paul Holden 46d12cfa11 MDL-78012 badges: final removal of deprecated 311 backpack methods. 2023-05-16 14:58:10 +01:00
Jun Pataleta a00b25b068 Merge branch 'MDL-77439-master' of https://github.com/junpataleta/moodle 2023-05-16 20:38:40 +08:00
Peter Mayer cdc66a5ff4 MDL-77439 lib_filebrowser: Splitup query to speedup get_courses 2023-05-16 20:36:50 +08:00
Jun Pataleta 8e3f98f833 Merge branch 'MDL-77218-master-behat-fix' of https://github.com/lameze/moodle 2023-05-16 19:50:40 +08:00
Simey Lameze 2f53549697 MDL-77218 behat: use correct label to click the button 2023-05-16 18:18:22 +08:00
Paul Holden 543dcf3e9c MDL-78026 group: format retrieved group names from external methods. 2023-05-16 10:09:55 +01:00
Paul Holden 7ff0ef4a11 MDL-77264 grade: define fallback name of abstract export event. 2023-05-16 09:54:28 +01:00
Paul Holden fe0b0135b2 MDL-77259 tool_monitor: use core component API for event list.
The previous method of hardcoded filepaths, specifically for events
belonging to core, meant that any events belongs to core subsystems
were omitted (core_customfield, core_h5p, core_payment, etc).
2023-05-16 09:50:11 +01:00
Ilya Tregubov 5388970860 Merge branch 'MDL-77218-master' of https://github.com/danghieu1407/moodle 2023-05-16 15:59:53 +08:00
Ilya Tregubov f33518a3f8 Merge branch 'MDL-77797-latex-headers' of https://github.com/brendanheywood/moodle 2023-05-16 15:22:51 +08:00
Jake Dallimore c5ac5bcfd5 Merge branch 'mdl-76270-master' of https://github.com/matthewhilton/moodle 2023-05-16 13:27:48 +08:00
Angelia Dela Cruz 46abdaa7ab MDL-77907 Behat: Coverage for duplicating competency framework 2023-05-16 12:50:53 +08:00
Andrew Nicols a2579a59de Merge branch 'MDL-75404-master_toolbrickfieldlinkinnewwindow' of https://github.com/brickfield/moodle 2023-05-16 12:22:32 +08:00
Jake Dallimore 9b64511c86 Merge branch 'MDL-77930-master' of https://github.com/rjnl/moodle 2023-05-16 10:49:28 +08:00
Jake Dallimore cdbacb9adc Merge branch 'MDL-78120-master' of https://github.com/lucaboesch/moodle 2023-05-16 10:44:30 +08:00
Jun Pataleta 88495c2f4b Merge branch 'MDL-75576' of https://github.com/timhunt/moodle 2023-05-16 10:02:13 +08:00
Ilya Tregubov 38230b57e4 Merge branch 'MDL-77840-master' of https://github.com/davewoloszyn/moodle 2023-05-16 09:46:05 +08:00
Meirza 53eecdfef1 MDL-77350 tag: Added class properties that are not declared 2023-05-16 01:03:01 +07:00
Meirza 760a8c426e MDL-77350 competency: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 01:03:01 +07:00
Meirza 4937a1fd1c MDL-77350 favourites: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.

// Removed test_add_malformed_favourite()
PHPUnit version >= 9.5 no longer converts PHP deprecations to exceptions by default.
To comply with PHP 8.2, which will deprecate the dynamic properties,
we need to remove test_add_malformed_favourite()
because the test will raise a warning for dynamic property deprecations.
2023-05-16 01:03:01 +07:00
Meirza 684343eee7 MDL-77350 auth: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 01:03:01 +07:00
Meirza 47fd891039 MDL-77350 availability: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 01:03:01 +07:00
Meirza 3895529b74 MDL-77350 badges: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 01:03:01 +07:00
Meirza 078055a51f MDL-77350 blocks: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:20 +07:00
Meirza 2fb9f3ab02 MDL-77350 blog: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:20 +07:00
Meirza 691d80fdae MDL-77350 cache: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:20 +07:00
Meirza 00bea84ed6 MDL-77350 calendar: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:20 +07:00
Meirza 0d3a840154 MDL-77350 comment: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 7bd302f1f6 MDL-77350 completion: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 07a281efff MDL-77350 course: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 66858f7f6c MDL-77350 enrol: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza d9e9f7a863 MDL-77350 filter: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 48ca849f73 MDL-77350 media: Added missing class properties
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 99368d4173 MDL-77350 message: Added missing class properties
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 0fcba75ea7 MDL-77350 mod_h5pactivity: Added missing class properties
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 0cfa082328 MDL-77350 portfolio: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 6856a84f17 MDL-77350 rating: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 94bda23532 MDL-77350 report: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza f0aa52f75e MDL-77350 search: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Meirza 4fbb4f552f MDL-77350 webservice: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Julien Boulen ea1253efa7 MDL-78259 weblib: purify audio/video tags as inline elements 2023-05-15 17:21:19 +02:00
Andrew Nicols 2410a1538a Merge branch 'MDL-77432-master' of https://github.com/lucaboesch/moodle 2023-05-15 22:12:09 +08:00
Andrew Nicols 99e8362272 Merge branch 'MDL-78149' of https://github.com/paulholden/moodle 2023-05-15 22:05:52 +08:00
Andrew Nicols f35db64f81 Merge branch 'MDL-78140' of https://github.com/paulholden/moodle 2023-05-15 22:00:45 +08:00
Andrew Nicols c25b54d12e Merge branch 'MDL-77144-master' of https://github.com/davewoloszyn/moodle 2023-05-15 21:59:24 +08:00
Andrew Nicols 08b1be026a Merge branch 'MDL-77667' of https://github.com/paulholden/moodle 2023-05-15 21:41:59 +08:00
Paul Holden 5404200d9d MDL-76900 enrol: new enrolment method and role report entities.
The new entities encapsulate related data for easier re-use across
reports, and are also intended to replace similar columns/filters
from the current enrolment entity.
2023-05-15 14:12:31 +01:00
Paul Holden 69a888cec3 MDL-78242 roles: consistently check course contact config. 2023-05-15 12:57:35 +01:00
Tim Hunt 60dbaa0065 MDL-75576 quiz/question statistics: don't expire by time
Previously, a set of calculated quiz statistics would only 'last' for
15 minutes. Then they would be considered invalid and not used.

Now, computed statistics are kept indefinitely. Instead, when a new
batch of values are computed for a particular set of settings, older numbers
for the same settings are deleted first. Therefore,
question_stats_cleanup_task is no more.
2023-05-15 10:01:27 +01:00
Tim Hunt 7994f1c985 MDL-75576 quiz statistics: don't time-limit the use of cached values
This should have been done as part of  MDL-74762, but was missed.
2023-05-15 09:59:34 +01:00
Tim Hunt 174e2ae3b5 MDL-75576 quiz statistics: don't compute when a user views the qbank
Previously, when a user viewed the question bank, if the quiz statistics
had not already been calculated, we would try to compute them there an then.
This could be very, very slow, leading to session lock problems.

Now, we never try to compute the statistics on the fly. Instead, we rely
on the existing \quiz_statistics\task\recalculate scheduled task to do it.
2023-05-15 09:59:34 +01:00
Tim Hunt 056db339d6 MDL-75576 question bank: bulk-load statistics for all questions at once
There is a new method on the column class, for the column to declare any
statistics it requires. The question then efficiently loads all those
statistics in one go, and makes them available as the columns are
rendererd, or do any subsequent processing.
2023-05-15 09:59:34 +01:00
Tim Hunt a919335213 MDL-75576 qbank_statistics: remove copy-pasted PHPdoc comments
These methods are already correctly documented on the base class.
2023-05-15 09:59:33 +01:00
Luca Bösch b5a730cf9a MDL-78120 login: handle empty wantsurl on login with alternateloginurl. 2023-05-15 10:21:43 +02:00
Paul Holden 4a10e36ae4 MDL-77995 javascript: more precise path matching building JS. 2023-05-15 09:05:38 +01:00
Paul Holden 2881840cca MDL-77723 user: ensure identity refers to a valid custom profile field. 2023-05-15 09:03:28 +01:00
Andrew Nicols 9d8e8d5c5c Merge branch 'MDL-78156' of https://github.com/stronk7/moodle 2023-05-15 12:28:36 +08:00
Andrew Nicols e657e342d4 Merge branch 'MDL-77576-master-mvp' of https://github.com/safatshahin/moodle 2023-05-15 12:16:14 +08:00
Jun Pataleta b8b9216ee5 Merge branch 'MDL-76903-master' of https://github.com/laurentdavid/moodle 2023-05-15 12:06:14 +08:00
Andrew Nicols d9fb5152f7 Merge branch 'MDL-78125-master' of https://github.com/junpataleta/moodle 2023-05-15 11:52:44 +08:00
Ilya Tregubov 95a0ba16da MDL-75512 core_grades: Add sticky footer to setup page. 2023-05-15 10:50:17 +08:00
Jun Pataleta df496e57d6 MDL-78125 qtype_multianswer: Convert popover trigger to link
According to Boostrap Popovers documentation for popovers triggered
on focus:
"For proper cross-browser and cross-platform behavior, you must use the
<a> tag, not the <button> tag, and you also must include a tabindex
attribute."
2023-05-12 22:46:45 +08:00
Luca Bösch f4e390fcf7 MDL-77432 mod_assign: Confirm submission page standard and not incourse 2023-05-12 09:25:18 +02:00
Andrew Nicols 6a417a3632 MDL-77168 backup: Switch from YUI to confirmation modal 2023-05-12 15:21:20 +08:00
Andrew Nicols 2078efeca9 MDL-77168 core: Allow core/utility alerts to submit forms 2023-05-12 15:21:20 +08:00
Andrew Nicols 53577b678c MDL-78169 core: Immediate deprecation of htmllize_file_tree
This should have been done back in 2010 as part of MDL-22950. It has not
been called in that time, and is entirely untested and untestable.
2023-05-12 15:17:47 +08:00
Ilya Tregubov 063ffc8073 weekly release 4.3dev 2023-05-12 08:56:37 +08:00
Ilya Tregubov 9cc3491de6 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-05-12 08:56:35 +08:00
Cameron Ball 94cf5b1fd3 MDL-75898 assignfeedback_editpdf: Improve page count mismatch logic
MDL-45580 introduced the readonlypages filearea, and when loading
page images for an attempt, the code would check if the pages existed
, creating them if not. The code inside this block also contained
a guard clause for the case where no readonly pages existed - which
is a situation that should not happen. Whenever readonly pages are
requested, they should exist.

MDL-66626 introduced a situation where page counts not matching would
also retrigger page generation. However this led to a situation where
the guard clause could be entered when requesting readonly pages.

This patch refactors the guard clause, and improves the logic to
regenerate pages.
2023-05-12 08:53:38 +10:00
Cameron Ball a243d46620 MDL-75898 assignfeedback_editpdf: Don't poll readonly pages
When requesting the readonly version of pages (which contain
teacher annotations), they should always be available - the
PHP side even throws an exception when they're not. This
means we don't need to worry about polling document converters
from the JS side and can just return the pages immediately.
2023-05-12 08:53:38 +10:00
Cameron Ball f95892766b MDL-75898 assignfeedback_editpdf: Add randomness to PDF annotations
The behat step "I draw on the pdf" creates the exact same line every
time it is called. This can cause issues in a situation like the following:

- Student uploads PDF
- Teacher annotates page 1
- Student edits submission, adding another PDF
- Teacher annotates page 1 again
- When the student looks at their annotated PDF it appears the same as
  before they added the second PDF (i.e., they don't see extra pages for
  the second PDF)

Exactly why this happens isn't clear, and in practice this probably never
happens because the chances of drawing the exact same line twice are almost
0. However, when testing the functionality added in MDL-45580 it was causing
issues.
2023-05-12 08:53:37 +10:00
Paul Holden 802b638b6c MDL-78226 contentbank: verify presence of bank heading element. 2023-05-11 23:15:29 +01:00
Paul Holden af42f88c42 MDL-78225 output: add sesskey for post requests only in renderables. 2023-05-11 22:46:18 +01:00
Meirza 6772c9b8e8 MDL-75963 filter: Added code highlighter filter
If enabled, the filter will convert text wrapped by language-* style class
into a well-styled block of code.
The filter uses PrismJS, and it also used by the TinyMCE editor to
highlight the code sample plugin.
2023-05-11 23:05:00 +07:00
Laurent David e489ae2492 MDL-76903 mod_book: Fix activity completion
* Check only visibles pages to set completion status.
* Make sure we have consistent completion value in API and on the view page.
2023-05-11 11:47:18 +02:00
Paul Holden a06b8d978b MDL-78140 analytics: improve context restrictions manager test.
This test apparently fails sporadically on Oracle, without obvious
causes. The failure however was hard to interpret, and the test
itself made a lot of assumptions about the system re. naming of
categories/courses. This could be prone to errors, so improve that.
2023-05-11 09:39:39 +01:00
Sara Arjona 5372f54440 MDL-78087 h5p: Fix TimeLine display bug
When the H5P third-party library was upgraded to moodle-1.23, the calls to
libraryToString(xxx, true) where replaced with libraryToFolderName().
We missed this, which was doing the H5P Timeline activities weren't
displayed properly.

Thanks Joseph for raising this and preparing a patch! Well done!

Co-authored: Joseph Rézeau
2023-05-11 10:19:45 +02:00
Paul Holden ebcc7e58ce MDL-77946 access: fix category sort order of capability contexts. 2023-05-11 08:33:22 +01:00
Jun Pataleta 6a404783d2 Merge branch 'MDL-76344-master-fix' of https://github.com/stevandoMoodle/moodle 2023-05-11 14:34:50 +08:00
Safat 019f74f8b6 MDL-77576 core_communication: Implement privacy api 2023-05-11 13:35:17 +10:00
Safat ab3c78e873 MDL-77576 core_user: Update room membership on user update
This commit implements the communication api updates
when a user is updated. It handles the room membership
when a user is suspended and deleted.

Originally implemented as MDL-76703.

Co-authored-by: David Woloszyn <david.woloszyn@moodle.com>
Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-11 13:35:16 +10:00
David Woloszyn 86ab66e60a MDL-77576 core_enrol: Implement communication api
This commit implementes the communication api for
enrolment changes for a user, or enrolment method
and triggers the communication api update.

Originally implemented MDL-76703.

Co-authored-by: David Woloszyn <david.woloszyn@moodle.com>
Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-11 13:35:16 +10:00
Safat ad5c10016a MDL-77576 core_course: Implement communication api
This commit implements the core communication api in the
core course to create or update matrix roomand its members
according to course settings. This commit will add the
communicaiton room in the course so that users can access
communication room from course.

Originally implemented as MDL-76702, MDL-76705 and MDL-76703.

Co-Authored-By: David Woloszyn <david.woloszyn@moodle.com>
Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-11 13:35:16 +10:00
Safat 9a060a6d8d MDL-77576 communication_matrix: Create Matrix plugin
This commit will implement a matrix communication plugin
to integrate matrix services with core communication.

Originally implemented as MDL-76701, MDL-76702, MDL-77357,
MDL-76705, MDL-77473 and  MDL-76708.

Co-Authored-By: Stevani Andolo <stevani.andolo@moodle.com>
Co-Authored-By: David Woloszyn <david.woloszyn@moodle.com>
Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-11 13:35:16 +10:00
Safat ca1e5d0beb MDL-77576 core_communication: Add core communication api
This commit will implement the base api for core
communication. This will include the room creation,
room membership, room access url and all associated
api and related interfaces.

Originally implemented as MDL-76702, MDL-76703 and MDL-76705.

Co-Authored-By: David Woloszyn <david.woloszyn@moodle.com>
Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-11 13:35:16 +10:00
Jake Dallimore 01cea25154 Merge branch 'MDL-75552-master' of https://github.com/sarjona/moodle 2023-05-11 11:23:14 +08:00
Stevani Andolo d3c2698b83 MDL-76344 course: Fixed course image 'non image file' layout 2023-05-11 11:12:41 +08:00
David Woloszyn f3f816ced9 MDL-77144 core_grades: fix headings in grade area
Previous to this, heading logic was performed in print_grade_page_head.
With the deprecation of the showtitle param, it makes sense now to
explicitly set the heading when the function is called. This prevents
duplicated text between the heading and teriary dropdown. This patch
also fixes unnecessary text that was concatenated onto headings.
2023-05-11 10:09:09 +10:00
David Woloszyn d81da7aba1 MDL-77144 core_grades: deprecated showtitle in print_grade_page_head 2023-05-11 09:55:17 +10:00
Sara Arjona c785f8312c Merge branch 'MDL-78040' of https://github.com/paulholden/moodle 2023-05-10 19:45:08 +02:00
Paul Holden 69a3863ce3 MDL-78211 contentbank: fix context option when formatting categories. 2023-05-10 17:38:53 +01:00
Paul Holden 081969ee7f MDL-78151 core: account for timezone differences in intl extension.
Recent additions to timezones from the IANA TZDB are not necessarily
reflected in those used by the intl extension and/or ICU zones:

 * America/Ciudad_Juarez
 * America/Nuuk
 * Europe/Kyiv
 * Pacific/Kanton

Create mapping to allow these zones to be used without errors.
2023-05-10 17:12:10 +01:00
Juan Leyva e13a2ff501 MDL-78196 user: Fix files used space check 2023-05-10 17:16:18 +02:00
Paul Holden 280ed5b62f MDL-77667 contentbank: display course fullnames in context navigation. 2023-05-10 16:05:17 +01:00
LTS 44cb3349b2 MDL-75404 tool_brickfield: Allow link open in new window with warning 2023-05-10 11:14:56 +00:00
Sara Arjona 7fc14069ea Merge branch 'MDL-77614' of https://github.com/paulholden/moodle 2023-05-10 12:54:34 +02:00
Andrew Nicols 7032e363bf Merge branch 'MDL-77592-master' of https://github.com/golenkovm/moodle 2023-05-10 13:03:11 +08:00
Andrew Nicols 267606dc42 Merge branch 'MDL-78034' of https://github.com/paulholden/moodle 2023-05-10 12:59:46 +08:00
Andrew Nicols dd7f6a313d Merge branch 'MDL-74898-master' of https://github.com/marinaglancy/moodle 2023-05-10 12:24:41 +08:00
Ilya Tregubov 954e523be8 Merge branch 'MDL-75623-master' of https://github.com/sh-csg/moodle 2023-05-10 11:42:56 +08:00
Jun Pataleta ad82a95633 Merge branch 'MDL-78065-master' of https://github.com/HuongNV13/moodle 2023-05-09 22:42:42 +08:00
Paul Holden dafc92b454 MDL-78170 rating: consistently calculate average rating aggregation.
Ensure it's always cast by the database as a float, to avoid loss of
precision.
2023-05-09 15:39:00 +01:00
Paul Holden 52937b39c8 MDL-78149 mod_data: ensure group selector is always present. 2023-05-09 12:03:43 +01:00
Paul Holden 1d66c4cbfb MDL-78152 mod_book: set permissions required for page editing. 2023-05-09 11:51:38 +01:00
Jun Pataleta d0782dadd3 Merge branch 'MDL-78093' of https://github.com/paulholden/moodle 2023-05-09 17:25:57 +08:00
Jake Dallimore 4b0a4dfcb2 Merge branch 'MDL-77872-master' of https://github.com/lucaboesch/moodle 2023-05-09 15:27:45 +08:00
Andrew Nicols bd214de282 MDL-75552 badges: move apiBase consumption to backpack
The apiBase in .well-known/badgeconnect.json was ignored and it was
causing some failures when connecting or sending badges to an
external backpack.
For OBv2.1, it has been changed to always use the apiBase defined
in the badgeconnect.json backpack provider.
2023-05-09 08:50:42 +02:00
Shamim Rezaie 6de23902cd MDL-77451 gradereport: stress handling for multiple clicks 2023-05-09 16:28:51 +10:00
Rajneel Totaram f74f702c88 MDL-77930 accesslib: php81 deprecation warnings on missing plugins 2023-05-09 17:44:15 +12:00
Srdjan fefc97a6ad MDL-75372 core: log blocked urls in check_request 2023-05-09 14:11:50 +10:00
Srdjan 5813741877 MDL-75372 core: url_blocked event
Triggered with check_securityhelper_blocklist(). The event is
also emitting a debugging() message.
2023-05-09 14:11:50 +10:00
Ilya Tregubov 4670bbb564 Merge branch 'MDL-71413' of https://github.com/paulholden/moodle 2023-05-09 11:30:24 +08:00
Eloy Lafuente (stronk7) e12c760a12 MDL-78156 groups: Make groups_get_user_groups() order deterministic
Right now the order of the groups returned by groups_get_user_groups()
is not fixed and, every DB, can return them in any order. While 99%
of times the order will be the creation one, depending of the RDBMS
decisions, they can be returned in any order.

This is specially noticeable with Oracle, but can affect to any DB.

And that makes some tests (expecting a given order) to fail.

This commit fixes the problem by making the order of the groups
deterministic, because that's the way we use to fix these problems.

Alternative is to relax the tests so only values are asserted by
using assertEqualsCanonicalizing().
2023-05-08 18:18:54 +02:00
Petr Skoda 406738005e MDL-76688 filter_text: prevent LaTeX3 syntax 2023-05-08 10:12:37 +02:00
Ilya Tregubov 500ef7ccf2 Merge branch 'MDL-70189' of https://github.com/paulholden/moodle 2023-05-08 12:49:21 +08:00
AMOS bot 534dac4b9a Automatically generated installer lang files 2023-05-07 00:07:32 +00:00
Paul Holden d85eb0a061 MDL-78135 completion: include required criteria library in test. 2023-05-05 16:43:42 +01:00
Jake Dallimore a34d5ee92b MDL-76821 enrol_lti: prevent legacy launches via upgraded enrolment
If the enrolment instance (the 'published resource') has been upgraded
from LTI 1.1/2.0 to LTI 1.3 (i.e. a new instance was not created),
prevent legacy launches which may occur from old resource links. Only
LTI Advantage launches should be permitted through the method.
2023-05-05 17:07:21 +08:00
Jake Dallimore faa3878abb MDL-76821 enrol_lti: fix bug in repo causing return of legacy lti users
If the enrolment method is updated from an LTI 1.1/2.0 tool to an LTI
1.3 tool, it may have associated enrol_lti_users records not having
ltideploymentid values. These are legacy users and must not be returned
by the repository, which deals only with LTI 1.3 LTI users.
2023-05-05 17:07:12 +08:00
Safat e703bdeb0a MDL-77576 core: Add testsuite for communication
Add testsuite for core communication to runn all
the tests for that subsystem.

Originally implemented as MDL-76702.

Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-05 14:42:45 +10:00
Safat 37539dca0c MDL-77576 core: Add password unmask required field
The password unmask field will have the ability to
be a required field while used the required class.

Originally implemented as MDL-76701.

Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-05 14:42:43 +10:00
Huong Nguyen ec5663f1a4 MDL-77576 core: Register a new communication plugin-type
A new communication plugin type added to core to implement
the communication provider features.

Original implemented as MDL-76699

Co-Authored-By: Huong Nguyen <huongnv13@gmail.com>
2023-05-05 14:41:30 +10:00
Huong Nguyen 163b4134df MDL-77576 core: Register new communication sub-system
Create a new subsystem for communication and create
associated experimental settings to safely use the
new subsystem.

Originally implemented as MDL-76699.

Co-Authored-By: Huong Nguyen <huongnv13@gmail.com>
2023-05-05 14:41:28 +10:00
Jun Pataleta 87edadbb0c Merge branch 'MDL-76344-master' of https://github.com/stevandoMoodle/moodle 2023-05-05 10:35:16 +08:00
Luca Bösch 86aaab4329 MDL-77872 quiz: quiz editing page less narrow. 2023-05-04 15:36:43 +02:00
Paul Holden 2b6d7d300a MDL-71413 user: final removal of deprecated profile field methods. 2023-05-04 14:16:05 +01:00
Paul Holden 029474c319 MDL-70189 lang: final removal of deprecated 311 strings. 2023-05-04 14:15:35 +01:00
Sara Arjona 5d320dd7d1 weekly release 4.3dev 2023-05-04 12:42:39 +02:00
Paul Holden ea404b8e37 MDL-77700 blog: add comment author data to custom report source.
The ability to report on blog comments was added in 27ebde57, however
it lacked the option to report on the user who added the comment(s).

AMOS BEGIN
 CPY [author,core_notes],[author,core_blog]
AMOS END
2023-05-04 09:12:50 +01:00
Eloy Lafuente (stronk7) e1919e6793 MDL-78116 core: Run tests against Windows on GHA
Signed-off-by: Andrew Nicols <andrew@nicols.co.uk>
2023-05-04 15:39:24 +08:00
Andrew Nicols 3b7ef3d287 Merge branch 'MDL-78054-master' of https://github.com/dpalou/moodle 2023-05-04 12:04:42 +08:00
Stevani Andolo a78738c855 MDL-76344 course: Fixed course image 'non image file' layout 2023-05-04 10:26:06 +08:00
Jake Dallimore 3abb8c4a28 Merge branch 'MDL-78002' of https://github.com/stronk7/moodle 2023-05-04 10:07:07 +08:00
Ilya Tregubov 7a0880a737 Merge branch 'MDL-78094-master' of https://github.com/snake/moodle 2023-05-04 08:53:27 +08:00
Paul Holden ca77f51f2c MDL-78040 block_glossary_random: switch to block test generator.
Random failures after manually adding block instances (specifically
on slow/Oracle systems) can be entirely avoided by using the block
test generator for scenarios that are not specifically concerned with
manually adding blocks.
2023-05-03 16:42:55 +01:00
Sara Arjona 025690347d Merge branch 'MDL-77781-master' of https://github.com/sarjona/moodle 2023-05-03 16:04:53 +02:00
Jun Pataleta aa011d149e Merge branch 'MDL-77398' of https://github.com/paulholden/moodle 2023-05-03 20:36:39 +08:00
Laurent David 4a91802a44 MDL-77781 core_completion: Completion view must be deleted too
When resetting a course, completion view entries should also be
deleted

Co-authored-by: Georg Moser <georg@moser.link>
2023-05-03 14:27:54 +02:00
Jake Dallimore 4bcb6a19bf Merge branch 'MDL-77384' of https://github.com/paulholden/moodle 2023-05-03 16:51:58 +08:00
Jake Dallimore 78a4999ddf Merge branch 'MDL-78023' of https://github.com/paulholden/moodle 2023-05-03 16:15:29 +08:00
Sara Arjona 60143dff4f Merge branch 'MDL-77312' of https://github.com/paulholden/moodle 2023-05-03 09:59:12 +02:00
Sara Arjona 29301517d4 Merge branch 'MDL-78049-master' of https://github.com/PhMemmel/moodle 2023-05-03 09:45:12 +02:00
Ilya Tregubov b054baacb6 Merge branch 'MDL-77320' of https://github.com/paulholden/moodle 2023-05-03 15:36:08 +08:00
Sara Arjona 5222c27bb5 Merge branch 'MDL-78057' of https://github.com/danmarsden/moodle 2023-05-03 09:22:34 +02:00
Sara Arjona c03e4cadf3 Merge branch 'MDL-76971' of https://github.com/paulholden/moodle 2023-05-03 09:18:18 +02:00
Sara Arjona ed2708bfa9 Merge branch 'MDL-78006' of https://github.com/paulholden/moodle 2023-05-03 09:04:30 +02:00
Ilya Tregubov 47b977bc30 Merge branch 'MDL-77810' of https://github.com/paulholden/moodle 2023-05-03 13:07:58 +08:00
Ilya Tregubov 3f47d59035 Merge branch 'MDL-77987' of https://github.com/AnupamaSarjoshi/moodle 2023-05-03 12:39:47 +08:00
Jake Dallimore d2b655cbf2 Merge branch 'MDL-78052-master' of https://github.com/sarjona/moodle 2023-05-03 12:06:33 +08:00
Ilya Tregubov 9d4a20d140 Merge branch 'MDL-77546-master' of https://github.com/mihailges/moodle 2023-05-03 10:56:41 +08:00
Jun Pataleta 429a1b644f Merge branch 'MDL-77394' of https://github.com/paulholden/moodle 2023-05-03 10:31:12 +08:00
Jun Pataleta 7787a32f65 Merge branch 'MDL-78038' of https://github.com/paulholden/moodle 2023-05-03 10:25:47 +08:00
Ilya Tregubov cedadb7c03 Merge branch 'MDL-77936' of https://github.com/paulholden/moodle 2023-05-03 10:07:06 +08:00
Jun Pataleta 8cfaae5e84 Merge branch 'MDL-78011' of https://github.com/paulholden/moodle 2023-05-03 09:58:22 +08:00
Jake Dallimore bdee325701 MDL-78094 webservice_soap: fix use of core_external in locallib 2023-05-03 09:41:50 +08:00
Ilya Tregubov ed6e15c67f Merge branch 'MDL-76835-master' of https://github.com/aya-saad1/moodle 2023-05-03 09:29:06 +08:00
David Woloszyn c713e970a6 MDL-77840 enrol_lti: Avoid passing nulls to base64_encode 2023-05-03 09:32:18 +10:00
Paul Holden 9aac3ac605 MDL-78093 gradereport_grader: handle modal retrieval promise failures. 2023-05-02 16:17:11 +01:00
Paul Holden 9aa23e4aff MDL-78093 grade: standardize additional external parameter type. 2023-05-02 16:17:11 +01:00
Sara Arjona 29102c91b9 Merge branch 'MDL-77858' of https://github.com/paulholden/moodle 2023-05-02 16:49:43 +02:00
Sara Arjona 537e5bf5e4 Merge branch 'MDL-77791_master' of https://github.com/dvdcastro/moodle 2023-05-02 12:03:48 +02:00
Jun Pataleta 7a9235a7bb Merge branch 'MDL-76857-master' of https://github.com/sarjona/moodle 2023-05-02 15:45:19 +08:00
David Woloszyn 80203e3be1 MDL-77840 lti: Avoid passing nulls to base64_encode 2023-05-02 13:46:41 +10:00
David Woloszyn e364489007 MDL-77840 backup: Avoid passing nulls to base64_encode 2023-05-02 13:46:41 +10:00
David Woloszyn b318ce307d MDL-77840 mnet: Avoid passing nulls to base64_encode 2023-05-02 13:46:41 +10:00
Ilya Tregubov a7c42e69f4 Merge branch 'MDL-78025' of https://github.com/timhunt/moodle 2023-05-02 11:42:45 +08:00
Huong Nguyen 3ac2f99ca3 MDL-78065 tiny_link: Fix cannot create link for selection text 2023-05-02 10:23:07 +07:00
Eloy Lafuente (stronk7) e4eb21e0ea MDL-78002 phpunit: Ensure that all uses of psr streams are closed
While the uses here were not causing too much problem with PHPUnit
execution in any OS, better have them explicitly closed to better
serve as reference for other, future uses anywhere in codebase.

Always that a stream is used, better we close it as soon as possible,
not relying on destructors, gc and friends.
2023-04-29 23:05:06 +02:00
Eloy Lafuente (stronk7) 2b61e95a69 MDL-78002 moodlenet: Always close the request stream explicitly
And do it as soon as it's not needed any more. Else, only
_destruct() / shutdown / gc will, and that can be problematic
if many streams are open, or, under some environments like
Windows that consider the stream underlying files still busy,
because they have not been closed.
2023-04-29 20:33:57 +02:00
Dan Marsden 3d95fe0bc3 MDL-78057 core_user: Use correct class for context check. 2023-04-28 13:15:56 +12:00
Paul Holden 626a5ddda7 MDL-77810 gradereport_summary: show localised plugin name in report. 2023-04-27 15:19:21 +01:00
Dani Palou 84812c0642 MDL-78054 airnotifier: Fix data encrypted several times 2023-04-27 14:44:43 +02:00
Ilya Tregubov 5252124e35 weekly on-sync release 4.3dev 2023-04-27 19:28:59 +08:00
Sara Arjona 83203eef6f MDL-78052 lib: Set Moodle files after Font Awesome upgrade 2023-04-27 13:11:58 +02:00
Sara Arjona 46190f1b05 MDL-78052 theme: Update FontAwesome to 6.4.0
This version also fixes a regression in 6.3.0 where a number of
icons weren't centered properly in their viewboxes.
2023-04-27 12:52:01 +02:00
Sara Arjona d61dc39a0a MDL-76857 filter_displayh5p: Improve behat tests
Although the screenshots in the failures for some of the scenarios in
filter/displayh5p/tests/behat/h5p_filter.feature, like "Render a local
H5P file as teacher" were displaying the expected result, there were
some javascript errors (probably due to behat is quicker and the
iframes were not always ready).
I've added one extra step before accessing the iframe to give more
time to the H5P player to load and confirm the page is displayed
properly.
2023-04-27 11:07:08 +02:00
Paul Holden 0969ad81ab MDL-77320 tool_licensemanager: restrict exposure of user sesskey. 2023-04-27 09:32:29 +01:00
Paul Holden 24885f8084 MDL-77936 grade: omit second cell action divider when not required. 2023-04-27 08:41:30 +01:00
Philipp Memmel 31bad4ffcd MDL-78049 core_external: Run test_all_external_info in separate process 2023-04-27 08:27:07 +02:00
Jun Pataleta 065d6cc2e5 Merge branch 'MDL-77883-master' of https://github.com/danghieu1407/moodle 2023-04-27 11:08:09 +08:00
Jun Pataleta 70dd7244fd Merge branch 'MDL-77997' of https://github.com/timhunt/moodle 2023-04-27 10:40:59 +08:00
Paul Holden cabf27f9e1 MDL-78038 mod_bigbluebuttonbn: observe course format section config. 2023-04-26 16:08:20 +01:00
Mihail Geshoski c77f996d23 MDL-77546 gradereport_singleview: Fix item order in grade item selector 2023-04-26 23:06:49 +08:00
Tim Hunt 35695831ff MDL-78025 questions: improve the comment on question_references.version 2023-04-26 15:29:39 +01:00
Tim Hunt 6a4341549d MDL-78025 questions: fix PHPdoc on question_require_capability_on 2023-04-26 15:29:39 +01:00
Tim Hunt c71272c3b1 MDL-78025 quiz: fix the quiz_questions_in_use logic 2023-04-26 15:29:39 +01:00
Tim Hunt 25596a50e5 MDL-78025 questions: questions_in_use should check question_references
This avoids the needs for plugins to do separate queries, which is
easier for them, and better performing.
2023-04-26 15:29:38 +01:00
Paul Holden c0594002a8 MDL-78034 mod_bigbluebuttonbn: format instance group names. 2023-04-26 15:25:34 +01:00
Aya Saad 4165fe4489 MDL-76835 theme: Fix unordered lists indentation 2023-04-26 14:04:11 +02:00
Tim Hunt 9775be13e9 MDL-78025 question generator: make the behaviour less surprising
* The object returned by update_question is alwasy a new clone
  and the $question passed in will not be modified.

* The returned object has the fields like questionbankentryid and
  the ones related to versionning, so it is more like the data
  returned by question_bank::load_question_data.
2023-04-26 10:49:35 +01:00
Tim Hunt 37e8115d68 MDL-78025 question: move hiding logic into question_delete_question
This logic belongs in the API, so it is applied consistently.

Also this avoids calling the expensive function questions_in_use
twice per question.
2023-04-26 10:49:32 +01:00
Ilya Tregubov dd4a990fe0 Merge branch 'master_MDL-76929' of https://github.com/mattporritt/moodle 2023-04-26 09:27:58 +08:00
David Castro 5d9fec141d MDL-77791 data: Fix file attachment to search doc 2023-04-25 19:51:44 -05:00
Paul Holden 99daf499c7 MDL-78023 tool_policy: cast timemodified column on table download. 2023-04-25 14:48:38 +01:00
Sara Arjona 49d013efd6 Merge branch 'MDL-77313' of https://github.com/paulholden/moodle 2023-04-25 15:18:26 +02:00
Paul Holden 6312467346 MDL-77614 reportbuilder: throw exception if entity name already exists. 2023-04-25 12:55:09 +01:00
Paul Holden b495ba0cec Merge branch 'MDL-78007-master' of https://github.com/HuongNV13/moodle 2023-04-25 12:36:07 +01:00
Paul Holden ba547f55c8 Merge branch 'MDL-73331_master_toolbrickfieldadvancedtab' of https://github.com/brickfield/moodle 2023-04-25 11:54:16 +01:00
Paul Holden 3e581cbd99 Merge branch 'MDL-77766-master-2' of https://github.com/junpataleta/moodle 2023-04-25 09:38:35 +01:00
Paul Holden de3d17ea93 MDL-77384 check: clarify statistics check name. 2023-04-25 09:04:29 +01:00
Paul Holden 7c7024af31 MDL-76971 reportbuilder: switch remaining classes to external_api.
Continues on the work started in a3cc26f8, to remove the last
remnants of usage of previous external API classes.
2023-04-25 08:50:47 +01:00
Paul Holden d97e0fa4ec MDL-78011 qbank_managecategories: require library for pagesize const. 2023-04-24 15:34:23 +01:00
Jun Pataleta 35e69b6ae8 MDL-77766 qtype_truefalse: Respect showstandardinstruction
* When showstandardinstruction is set to no, replace the standard
instruction with the generic "Answer" text for the answer options
fieldset's legend.
2023-04-24 20:07:57 +08:00
Jun Pataleta 75984fb226 MDL-77766 qtype_multichoice: Respect showstandardinstruction
* When showstandardinstruction is set to no, replace the standard
instruction with the generic "Answer" text for the answer options
fieldset's legend.
2023-04-24 20:07:38 +08:00
Marina Glancy a051d3466a MDL-78006 course: test for adding activity in a new section 2023-04-24 11:40:31 +01:00
Paul Holden 97f5badba5 MDL-78006 course: register activity chooser listeners just once. 2023-04-24 11:40:31 +01:00
Tim Hunt b181e78c7c MDL-77997 questions: add back Export as XML to the preview screen
The used the exist in Moodle up to 3.11, but then was removed with
insufficient thought in 4.0 (because we had grander long-term plans
which still have not happened). Until those plans happen, this
commit adds the simple link back on the preview screen.
2023-04-24 11:22:58 +01:00
Anupama Sarjoshi 55dffbe6cb MDL-77987 Backup: add progress tracking to some slow steps 2023-04-24 11:09:21 +01:00
Paul Holden c5c9185801 MDL-77312 files: exclude drafts when determining license usage. 2023-04-24 11:07:32 +01:00
Paul Holden 1dbeca84f6 MDL-77313 restore: re-add field to indicate course/category search.
When the two restore forms for searching courses and categories were
converted to core templates in eb9935c9 they lost the named submit
button, which broke searching.
2023-04-24 11:04:20 +01:00
Paul Holden 8a6065f5fc MDL-77858 javascript: correct core/notification exception imports. 2023-04-24 10:44:07 +01:00
Paul Holden b08857a1b9 MDL-77394 mod_forum: de-couple discussion pinned/starred options. 2023-04-24 10:37:55 +01:00
Paul Holden 426b5aeccb MDL-77398 mod_assign: disable form submit protection for batch options. 2023-04-24 10:35:07 +01:00
Huong Nguyen 1d4c1d9c65 MDL-78007 tiny_media: Fix wrong condition for the Tiny Media
Including in this commit:
 - Switched to Tiny editor in manually_mark_question.feature
2023-04-24 15:53:41 +07:00
danghieu1407 678fb7d490 MDL-77883 forms: fix display of client-side validation for textareas 2023-04-24 13:14:08 +07:00
Ilya Tregubov 008eb792c1 Merge branch 'MDL-78001-master' of https://github.com/junpataleta/moodle 2023-04-24 14:05:01 +08:00
Ilya Tregubov dc9a504d0f Merge branch 'MDL-78000-master' of https://github.com/junpataleta/moodle 2023-04-24 11:27:01 +08:00
Jun Pataleta 9095bb0ef9 MDL-78000 upgrade: add the 4.2.0 separation line to all upgrade scripts 2023-04-22 23:17:50 +08:00
Jun Pataleta 460e3e9c8d MDL-78001 backup: Bump release to 4.3 2023-04-22 23:06:58 +08:00
Jun Pataleta 4e632b7251 weekly back-to-dev release 4.3dev 2023-04-22 17:15:01 +08:00
Matthew Hilton 912bd8ad27 MDL-76270 group: Add bulk messaging actions
Added two new buttons to the group page to bulk enable or disable the
selected groups messaging settings.

Supporting Javascript modules were also added to disable/enable the
buttons depending on the groups selected in the picker.
2023-04-20 12:23:01 +10:00
Matthew Hilton c5b6ab5ddc MDL-76270 group: Refactor group action handling
Previously group bulk actions were handled by prepending
_act in the value of the input, and then using a custom function that
accessed $_GET and $_POST to determine which was pressed.

This was refactored in favor of the more standard method of using
optional_param.
2023-04-20 12:20:32 +10:00
Matthew Hilton 661c8d3ddf MDL-76270 group: Update to match coding standards 2023-04-20 12:20:32 +10:00
Max Larkin 941ca26829 MDL-73331 tool_brickfield: Update advanced tab display 2023-04-19 12:56:56 +01:00
Marina Glancy 6ebf823e6d MDL-74898 tool_mobile: remove NO_MOODLE_COOKIES from android manifest 2023-04-05 11:54:32 +01:00
Simey Lameze 064ce28090 MDL-77733 behat: enable Axe accessibility tests by default 2023-04-04 09:16:59 +08:00
Stefan Hanauska 93a9baadf8 MDL-75623 backup: Encode pluginfile URLs 2023-04-01 09:09:43 +02:00
Mikhail Golenkov 8c3c537bac MDL-77592 filter_tex: Use request dir instead of temp shared storage 2023-03-31 11:17:01 +11:00
Brendan Heywood d0fe0bb391 MDL-77797 filter_tex: Add public immutable caching headers 2023-03-30 22:32:31 +11:00
Brendan Heywood 54505ebdd1 MDL-77749 admin: Fix code error with unset config duration 2023-03-26 16:00:00 +11:00
danghieu1407 c05a29018f MDL-77218 Question bank: Add explanatory text for preview option 2023-03-24 14:57:00 +07:00
Matt Porritt 02826f4395 MDL-76929 Libraries: Upgrade phpxmlrpc to 4.10.1 2023-03-14 14:45:42 +11:00
Hiroto Kagotani dcc8d93533 MDL-76936 course: purge course cache on resetting start date 2023-01-19 00:37:29 +09:00
Joachim Jablon 42c69bd155 MDL-75371: Remove unrespectful language from code comment
https://tracker.moodle.org/browse/MDL-75371
2022-08-04 09:55:24 +02:00
7239 changed files with 331984 additions and 174882 deletions
+31 -94
View File
@@ -1,8 +1,12 @@
{
'plugins': [
'babel',
'@babel',
'promise',
'jsdoc',
'jsdoc'
],
'extends': [
'eslint:recommended',
'plugin:promise/recommended'
],
'env': {
'browser': true,
@@ -16,42 +20,19 @@
'M': true,
'Y': true
},
// Warn about unused eslint-disable statements.
'reportUnusedDisableDirectives': true,
'rules': {
// See http://eslint.org/docs/rules/ for all rules and explanations of all
// rules.
// === Possible Errors ===
'comma-dangle': 'off',
'no-compare-neg-zero': 'error',
'no-cond-assign': 'error',
'no-console': 'error',
'no-constant-condition': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-dupe-args': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-empty': 'warn',
'no-empty-character-class': 'error',
'no-ex-assign': 'error',
'no-extra-boolean-cast': 'error',
'no-extra-parens': 'off',
'no-extra-semi': 'error',
'no-func-assign': 'error',
'no-inner-declarations': 'error',
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-obj-calls': 'error',
'no-prototype-builtins': 'off',
'no-regex-spaces': 'error',
'no-sparse-arrays': 'error',
'no-unexpected-multiline': 'error',
'no-unreachable': 'warn',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
'use-isnan': 'error',
'valid-jsdoc': ['warn', { 'requireReturn': false, 'requireParamDescription': false, 'requireReturnDescription': false }],
'valid-typeof': 'error',
// === Best Practices ===
// (these mostly match our jshint config)
@@ -63,15 +44,12 @@
'dot-notation': 'warn',
'no-alert': 'warn',
'no-caller': 'error',
'no-case-declarations': 'error',
'no-div-regex': 'error',
'no-empty-pattern': 'error',
'no-empty-function': 'warn',
'no-eq-null': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'warn',
'no-fallthrough': 'error',
'no-floating-decimal': 'warn',
'no-global-assign': 'warn',
'no-implied-eval': 'error',
@@ -83,28 +61,22 @@
'no-multi-str': 'error',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-octal': 'error',
'no-octal-escape': 'error',
'no-proto': 'error',
'no-redeclare': 'warn',
'no-restricted-globals': ['error', { 'name': 'Notification' }],
'no-return-assign': 'error',
'no-script-url': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-sequences': 'warn',
'no-throw-literal': 'warn',
'no-unmodified-loop-condition': 'error',
'no-unused-expressions': 'error',
'no-unused-labels': 'error',
'no-useless-call': 'warn',
'no-useless-escape': 'warn',
'no-with': 'error',
'wrap-iife': ['error', 'any'],
// === Variables ===
'no-delete-var': 'error',
'no-undef': 'error',
'no-undef-init': 'error',
'no-unused-vars': ['error', { 'caughtErrors': 'none' }],
@@ -137,8 +109,6 @@
'max-statements-per-line': ['warn', { max: 2 }],
'new-cap': ['warn', { 'properties': false }],
'new-parens': 'warn',
'newline-after-var': 'off',
'newline-before-return': 'off',
'newline-per-chained-call': 'off',
'no-array-constructor': 'off',
'no-bitwise': 'error',
@@ -146,7 +116,6 @@
'no-inline-comments': 'off',
'no-lonely-if': 'off',
'no-mixed-operators': 'off',
'no-mixed-spaces-and-tabs': 'error',
'no-multiple-empty-lines': 'warn',
'no-negated-condition': 'off',
'no-nested-ternary': 'warn',
@@ -168,7 +137,6 @@
'padded-blocks': 'off',
'quote-props': ['warn', 'as-needed', {'unnecessary': false, 'keywords': true, 'numbers': true}],
'quotes': 'off',
'require-jsdoc': 'warn',
'semi': 'error',
'semi-spacing': ['warn', {'before': false, 'after': true}],
'sort-vars': 'off',
@@ -181,21 +149,19 @@
'unicode-bom': 'error',
'wrap-regex': 'off',
// === Promises ===
// === Promises (override plugin:promise/recommended) ===
'promise/always-return': 'warn',
'promise/no-return-wrap': 'warn',
'promise/param-names': 'warn',
'promise/catch-or-return': ['warn', {terminationMethod: ['catch', 'fail']}],
'promise/catch-or-return': ['warn', {terminationMethod: ['catch', 'fail', 'always'], allowFinally: true}],
'promise/no-native': 'warn',
'promise/no-promise-in-callback': 'warn',
'promise/no-callback-in-promise': 'warn',
'promise/avoid-new': 'warn',
// === Deprecations ===
"no-restricted-properties": ['warn', {
'object': 'M',
'property': 'str',
'message': 'Use AMD module "core/str" or M.util.get_string()'
'message': 'Use "core/str" module or M.util.get_string()'
}],
},
overrides: [
@@ -235,7 +201,6 @@
parser: '@babel/eslint-parser',
// Check AMD with some slightly stricter rules.
rules: {
'no-unused-vars': 'error',
'no-implicit-globals': 'error',
// Disable all of the rules that have babel versions.
'new-cap': 'off',
@@ -247,65 +212,37 @@
'semi': 'off',
'no-unused-expressions': 'off',
// Enable all of the babel version of these rules.
'babel/new-cap': ['warn', { 'properties': false }],
'@babel/new-cap': ['warn', { 'properties': false }],
// Not using this rule for the time being because it isn't
// compatible with jQuery and ES6.
'babel/no-invalid-this': 'off',
'babel/object-curly-spacing': 'warn',
// This is off in the original style int.
'babel/quotes': 'off',
'babel/semi': 'error',
'babel/no-unused-expressions': 'error',
'@babel/no-invalid-this': 'off',
'@babel/object-curly-spacing': 'warn',
'@babel/semi': 'error',
'@babel/no-unused-expressions': 'error',
// === Promises ===
// We have Promise now that we're using ES6.
'promise/no-native': 'off',
'promise/avoid-new': 'off',
// === JSDocs ===
"jsdoc/check-access": [
'error',
],
"jsdoc/check-alignment": 1, // Recommended.
"jsdoc/check-param-names": [
'error',
],
"jsdoc/check-property-names": [
'error',
],
"jsdoc/empty-tags": [
'error',
],
"jsdoc/implements-on-classes": [
'error',
],
"jsdoc/multiline-blocks": [
'error',
],
"jsdoc/require-jsdoc": [
'error',
],
"jsdoc/require-param": [
'error',
],
"jsdoc/require-param-name": [
'error',
],
"jsdoc/require-param-type": [
'error',
],
"jsdoc/require-property": [
'error',
],
"jsdoc/require-property-name": [
'error',
],
"jsdoc/require-property-type": [
'error',
],
'jsdoc/check-access': 'error',
'jsdoc/check-alignment': 1, // Recommended.
'jsdoc/check-param-names': 'error',
'jsdoc/check-property-names': 'error',
'jsdoc/empty-tags': 'error',
'jsdoc/implements-on-classes': 'error',
'jsdoc/multiline-blocks': 'error',
'jsdoc/require-jsdoc': 'error',
'jsdoc/require-param': 'error',
'jsdoc/require-param-name': 'error',
'jsdoc/require-param-type': 'error',
'jsdoc/require-property': 'error',
'jsdoc/require-property-name': 'error',
'jsdoc/require-property-type': 'error'
},
parserOptions: {
'sourceType': 'module',
'requireConfigFile': false,
'requireConfigFile': false
}
}
]
+143
View File
@@ -0,0 +1,143 @@
name: One by One Testing
# Run all the individual unit tests one by one, with
# fully independent PHPUnit executions. Useful to
# detect issues with some tests that are using stuff
# that has been made available by others, but is not
# available when running individually.
#
# Note that we aren't using PHPUnit's own isolation
# here but completely separated runs, one for each
# test.
#
# The workflow will fail reporting all the tests
# that have failed (and will pass if no failure is
# detected, of course).
#
# It's only executed via workflow dispatch (automated
# or manual), not by push/tag. And acceptd configuration
# of phpunit, specially useful to run it with PHPUnit's
# own isolation or any other option.
on:
workflow_dispatch:
inputs:
phpunit_extra_options:
description: Additional options to apply to PHPUnit
required: false
default: ''
env:
chunks: 7
jobs:
collect:
name: Collect individual unit tests
runs-on: ubuntu-latest
outputs:
matrix: ${{steps.individual-tests.outputs.matrix }}
steps:
- name: Checking out code
uses: actions/checkout@v4
- name: Looking for all individual tests
id: individual-tests
run: |
count=0 # Number of individual tests found.
while read -r testfile; do # For each test file.
while read -r testname; do # For each unit test in a file.
count=$((count + 1))
# Sent it to the correct chunk file.
chunk=$(((($count % $chunks)) + 1))
echo "$testname $testfile" >> ./chunk_$chunk.txt
done < <(grep "function test_" "${testfile}" | sed -r "s/^.*function (test_[a-zA-Z0-9_]+).*/\1/")
done < <(find . -name "*_test.php")
# Generate the matrix to run tests.
echo "matrix=$(ls -1 chunk_*.txt | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
echo "$count individual tests collected in $chunks files"
- name: Upload individual tests files
uses: actions/upload-artifact@v4
with:
name: individual_tests
path: chunk_*.txt
retention-days: 1
test:
name: Run tests
needs: collect
runs-on: ubuntu-latest
services:
exttests:
image: moodlehq/moodle-exttests
ports:
- 8080:80
redis:
image: redis
ports:
- 6379:6379
strategy:
fail-fast: false
matrix:
file: ${{ fromJson(needs.collect.outputs.matrix) }}
steps:
- name: Setting up DB pgsql
uses: m4nu56/postgresql-action@v1
with:
postgresql version: 13
postgresql db: test
postgresql user: test
postgresql password: test
- name: Setting up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
ini-values: max_input_vars=5000
coverage: none
- name: Checking out code
uses: actions/checkout@v4
- name: Download individual test files
uses: actions/download-artifact@v4
with:
name: individual_tests # Make all the chunk files available for the next steps.
- name: Setting up PHPUnit
env:
dbtype: pgsql
run: |
echo "pathtophp=$(which php)" >> $GITHUB_ENV
cp .github/workflows/config-template.php config.php
mkdir ../moodledata
sudo locale-gen en_AU.UTF-8
php admin/tool/phpunit/cli/init.php --no-composer-self-update
- name: Run PHPUnit test (one by one)
env:
dbtype: pgsql
run: |
status=0
count=0
while read -r line; do # For each line in the chunk file
count=$((count + 1))
filter="${line% *}"
file="${line#* }"
# Run the individual unit test and report problems if needed to.
if ! php vendor/bin/phpunit \
--fail-on-empty-test-suite \
--fail-on-warning \
--fail-on-risky \
--filter "$filter" ${{ inputs.phpunit_extra_options }} \
"$file" >/dev/null 2>&1; then
if [ $status -eq 0 ]; then
echo "Problems found, list of PHPUnit commands failing:"
fi
echo "vendor/bin/phpunit --filter '${filter}' ${{ inputs.phpunit_extra_options }} $file"
status=$((status + 1))
fi
done < ${{ matrix.file }}
echo "Finished: $count individual tests executed, $status tests failed"
exit $status
+13 -7
View File
@@ -3,13 +3,19 @@ name: Core
on:
push:
branches-ignore:
- master
- main
- MOODLE_[0-9]+_STABLE
tags-ignore:
- v[0-9]+.[0-9]+.[0-9]+*
workflow_dispatch:
inputs:
phpunit_extra_options:
description: Additional options to apply to PHPUnit
required: false
default: ''
env:
php: 8.1
php: 8.2
jobs:
Grunt:
@@ -17,10 +23,10 @@ jobs:
steps:
- name: Checking out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Configuring node & npm
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
@@ -61,7 +67,7 @@ jobs:
db: mysqli
# PostgreSQL builds always run with the highest PHP supported version.
- os: ubuntu-22.04
php: 8.1
php: 8.2
db: pgsql
steps:
@@ -99,7 +105,7 @@ jobs:
coverage: none
- name: Checking out code from ${{ env.GITHUB_REF_SLUG }}
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setting up PHPUnit
env:
@@ -115,4 +121,4 @@ jobs:
env:
dbtype: ${{ matrix.db }}
phpunit_options: ${{ secrets.phpunit_options }}
run: vendor/bin/phpunit $phpunit_options
run: vendor/bin/phpunit $phpunit_options ${{ inputs.phpunit_extra_options }}
+23
View File
@@ -0,0 +1,23 @@
name: Web Installer Testing
on:
workflow_dispatch:
jobs:
InstallationTest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.1, 8.3]
steps:
- name: Construct repository URL
run: echo "REPOSITORY_URL=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" >> $GITHUB_ENV
shell: bash
- uses: moodlehq/moodle-webinstaller-test@main
with:
repository: ${{ env.REPOSITORY_URL }}
branch: ${{ github.ref_name }}
php: ${{ matrix.php }}
+149
View File
@@ -0,0 +1,149 @@
name: Windows Testing
on:
workflow_dispatch:
inputs:
phpunit_extra_options:
description: Additional options to apply to PHPUnit
required: false
default: ''
env:
php: 8.2
jobs:
Grunt:
runs-on: windows-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checking out code
uses: actions/checkout@v4
- name: Configuring node & npm
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Installing node stuff
run: npm ci
- name: Running grunt
run: npx grunt
- name: Looking for uncommitted changes
# Add all files to the git index and then run diff --cached to see all changes.
# This ensures that we get the status of all files, including new files.
# We ignore npm-shrinkwrap.json to make the tasks immune to npm changes.
run: |
git add .
git reset -- npm-shrinkwrap.json
git diff --cached --exit-code
PHPUnit:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
php: 8.2
# Ideally we should use mysql/mariadb, but they are 4x slower without tweaks and configuration
# so let's run only postgres (1.5h vs 6h) only, If some day we want to improve the mysql runs,
# this is the place to enable them.
# db: mysqli
db: pgsql
extensions: exif, fileinfo, gd, intl, pgsql, mysql, redis, soap, sodium, zip
- os: windows-latest
php: 8.0
db: pgsql
extensions: exif, fileinfo, gd, intl, pgsql, mysql, redis, soap, sodium
steps:
- name: Setting up DB mysql
if: ${{ matrix.db == 'mysqli' }}
uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: 8.0
user: test
password: test
- name: Creating DB mysql
if: ${{ matrix.db == 'mysqli' }}
run: mysql --host 127.0.0.1 -utest -ptest -e 'CREATE DATABASE IF NOT EXISTS test COLLATE = utf8mb4_bin;';
- name: Setting up DB pgsql
if: ${{ matrix.db == 'pgsql' }}
run: |
# TODO: Remove these conf. modifications when php74 or php80 are lowest.
# Change to old md5 auth, because php73 does not support it.
# #password_encryption = scram-sha-256
(Get-Content "$env:PGDATA\postgresql.conf"). `
replace('#password_encryption = scram-sha-256', 'password_encryption = md5') | `
Set-Content "$env:PGDATA\postgresql.conf"
(Get-Content "$env:PGDATA\pg_hba.conf"). `
replace('scram-sha-256', 'md5') | `
Set-Content "$env:PGDATA\pg_hba.conf"
$pgService = Get-Service -Name postgresql*
Set-Service -InputObject $pgService -Status running -StartupType automatic
Start-Process -FilePath "$env:PGBIN\pg_isready" -Wait -PassThru
& $env:PGBIN\psql --command="CREATE USER test PASSWORD 'test'" --command="\du"
- name: Creating DB pgsql
if: ${{ matrix.db == 'pgsql' }}
run: |
& $env:PGBIN\createdb --owner=test test
$env:PGPASSWORD = 'test'
& $env:PGBIN\psql --username=test --host=localhost --list test
- name: Configuring git vars
uses: rlespinasse/github-slug-action@v4
- name: Setting up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
ini-values: max_input_vars=5000
coverage: none
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checking out code from ${{ env.GITHUB_REF_SLUG }}
uses: actions/checkout@v4
# Needs to be done after php is available, git configured and Moodle checkout has happened.
- name: Setting up moodle-exttests service
run: |
git clone https://github.com/moodlehq/moodle-exttests.git
nssm install php-built-in C:\tools\php\php.exe -S localhost:8080 -t D:\a\moodle\moodle\moodle-exttests
nssm start php-built-in
- name: Setting up redis service
run: |
choco install redis-64 --version 3.0.503 --no-progress
nssm install redis redis-server
nssm start redis
- name: Setting up PHPUnit
env:
dbtype: ${{ matrix.db }}
shell: bash
run: |
echo "pathtophp=$(which php)" >> $GITHUB_ENV # Inject installed pathtophp to env. The template config needs it.
cp .github/workflows/config-template.php config.php
mkdir ../moodledata
php admin/tool/phpunit/cli/init.php --no-composer-self-update
- name: Running PHPUnit tests
env:
dbtype: ${{ matrix.db }}
phpunit_options: ${{ secrets.phpunit_options }}
run: vendor/bin/phpunit $phpunit_options ${{ inputs.phpunit_extra_options }}
+1 -1
View File
@@ -16,4 +16,4 @@ Moodle - the world's open source learning platform
This generated documentation includes API documentation for JavaScript written in the AMD and ES2015 module formats within Moodle.
## Related information
See [https://docs.moodle.org/dev](https://docs.moodle.org/dev) for other related Developer Documentation.
See [https://moodledev.io](https://moodledev.io) for other related Developer Documentation.
+1 -1
View File
@@ -114,7 +114,7 @@ module.exports = {
],
"menu": {
"Developer Docs": {
href: "https://docs.moodle.org/dev",
href: "https://moodledev.io",
target: "_blank",
"class": "menu-item",
id: "devdocs"
+9 -22
View File
@@ -21,7 +21,7 @@
*/
/**
* Function to generate the destination for the uglify task
* Function to generate the destination for the minification task
* (e.g. build/file.min.js). This function will be passed to
* the rename property of files array when building dynamically:
* http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically
@@ -30,10 +30,9 @@
* @param {String} srcPath the matched src path
* @return {String} The rewritten destination path.
*/
const babelRename = function(destPath, srcPath) {
destPath = srcPath.replace('src', 'build');
destPath = destPath.replace('.js', '.min.js');
destPath = srcPath.replace(`amd/src`, `amd/build`);
destPath = destPath.replace(/\.js$/, '.min.js');
return destPath;
};
@@ -61,7 +60,6 @@ module.exports = grunt => {
grunt.registerTask('js', ['amd', 'yui']);
// Register NPM tasks.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-rollup');
@@ -105,6 +103,7 @@ module.exports = grunt => {
// The queue runner will run the next `size` items in the queue.
const runQueue = (size = 1) => {
queue.splice(0, size).forEach(resolve => {
grunt.log.debug(`Item resolved. Kicking off next one.`);
resolve();
});
};
@@ -114,15 +113,17 @@ module.exports = grunt => {
// The options hook is run in parallel.
// We can return an unresolved Promise which is queued for later resolution.
options: async() => {
options: async(options) => {
return new Promise(resolve => {
queue.push(resolve);
startQueue();
return options;
});
},
// When an item in the queue completes, start the next item in the queue.
buildEnd: () => {
generateBundle: (options, bundle) => {
grunt.log.debug(`Finished output phase for ${Object.keys(bundle).join(', ')}`);
runQueue();
},
};
@@ -152,24 +153,10 @@ module.exports = grunt => {
//
// It also adds the Moodle plugin name to the AMD module definition
// so that it can be imported as expected in other modules.
path.resolve('.grunt/babel-plugin-add-module-to-define.js'),
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
['@babel/plugin-proposal-class-properties', {'loose': false}],
'@babel/plugin-proposal-json-strings'
path.resolve('.grunt/babel-plugin-add-module-to-define.js')
],
presets: [
['@babel/preset-env', {
targets: {
browsers: [
">0.3%",
"last 2 versions",
"not ie >= 0",
"not op_mini all",
"not Opera > 0",
"not dead"
]
},
modules: false,
useBuiltIns: false
}]
+28 -12
View File
@@ -20,17 +20,33 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
// Project configuration.
grunt.config.merge({
jsdoc: {
dist: {
options: {
configure: ".grunt/jsdoc/jsdoc.conf.js",
},
},
},
});
module.exports = (grunt) => {
const path = require('path');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.registerTask('jsdoc', 'Generate JavaScript documentation using jsdoc', function() {
const done = this.async();
const configuration = path.resolve('.grunt/jsdoc/jsdoc.conf.js');
grunt.util.spawn({
cmd: 'jsdoc',
args: [
'--configure',
configuration,
]
}, function(error, result, code) {
if (result.stdout) {
grunt.log.write(result.stdout);
}
if (result.stderr) {
grunt.log.error(result.stderr);
}
if (error) {
grunt.fail.fatal(`JSDoc failed with error code ${code}`);
} else {
grunt.log.write('JSDoc completed successfully'.green);
}
done();
});
});
};
+5 -1
View File
@@ -29,6 +29,7 @@ module.exports = grunt => {
// Use a fully-qualified path.
src: files,
options: {
quietDeprecationWarnings: true,
configOverrides: {
rules: {
// These rules have to be disabled in .stylelintrc for scss compat.
@@ -45,7 +46,10 @@ module.exports = grunt => {
return {
stylelint: {
scss: {
options: {syntax: 'scss'},
options: {
quietDeprecationWarnings: true,
customSyntax: 'postcss-scss',
},
src: files,
},
},
+1 -1
View File
@@ -1 +1 @@
lts/gallium
lts/iron
+16 -4
View File
@@ -1,9 +1,14 @@
{
"customSyntax": "postcss-scss",
"plugins": [
"stylelint-csstree-validator"
],
"rules": {
"csstree/validator": true,
"csstree/validator": {
"syntaxExtensions": [
"sass"
]
},
"at-rule-empty-line-before": [ "always",
{"except": [ "blockless-after-blockless"], ignore: ["after-comment", "inside-block"]}
],
@@ -45,7 +50,7 @@
"function-name-case": "lower",
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never-single-line",
"function-url-scheme-blacklist": ["data"],
"function-url-scheme-disallowed-list": ["data"],
"function-whitespace-after": "always",
"indentation": 4,
"keyframe-declaration-no-important": true,
@@ -84,12 +89,19 @@
"selector-type-no-unknown": true,
"string-no-newline": true,
"time-min-milliseconds": 100,
"unit-blacklist": ["pt"],
"unit-disallowed-list": ["pt"],
"unit-case": "lower",
"unit-no-unknown": true,
"value-keyword-case": ["lower", {"ignoreKeywords": ["/(@|$)/"]}],
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
}
},
"overrides": [
{
"files": ["**/yui/**/*.css"],
"rules": {
}
}
]
}
+3 -3
View File
@@ -6,7 +6,7 @@ of developers, designers, teachers, testers, translators and other users. We
work in universities, schools, companies and other places. You are very welcome
to join us and contribute to the project.
See <https://docs.moodle.org/dev/Contributing_to_Moodle> for the many ways you
See <https://moodledev.io/general/community/contribute> for the many ways you
can help, not only with coding.
Moodle is open to community contributions to core, though all code must go
@@ -35,7 +35,7 @@ submitted patches has evolved.
* New features are developed on the master branch. Bug fixes are also
backported to currently supported maintenance (stable) branches.
For further details, see <https://docs.moodle.org/dev/Process>.
For further details, see <https://moodledev.io/general/development/process>.
Moodle plugins
--------------
@@ -53,4 +53,4 @@ be easily installed and updated via the Moodle administration interface.
the plugins directory. We do not pull from your code repository; you must do
it explicitly.
For further details, see <https://docs.moodle.org/dev/Plugin_contribution>.
For further details, see <https://moodledev.io/general/community/plugincontribution>.
+1 -1
View File
@@ -20,7 +20,7 @@ Moodle is widely used around the world by universities, schools, companies and
all manner of organisations and individuals.
Moodle is provided freely as open source software, under the GNU General Public
License <https://docs.moodle.org/dev/License>.
License <https://moodledev.io/general/license>.
Moodle is written in PHP and JavaScript and uses an SQL database for storing
the data.
+1 -2
View File
@@ -131,8 +131,7 @@ if ($savebutton) {
$outputhtml .= html_writer::end_tag('div');
}
$visiblepathtosection = array_reverse($settingspage->visiblepath);
$PAGE->set_title("$SITE->shortname: " . implode(": ",$visiblepathtosection));
$PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, $settingspage->visiblepath));
$PAGE->set_heading($SITE->fullname);
if ($buttons) {
$PAGE->set_button($buttons);
@@ -78,6 +78,17 @@ class task_logs extends datasource {
];
}
/**
* Return the column sorting that will be added to the report upon creation
*
* @return int[]
*/
public function get_default_column_sorting(): array {
return [
'task_log:starttime' => SORT_DESC,
];
}
/**
* Return the filters that will be added to the report upon creation
*
+19 -19
View File
@@ -35,28 +35,29 @@ class block_management_table extends \core_admin\table\plugin_management_table {
/** @var stdClass[] A list of basic block data */
protected array $blockdata;
/** @var array<string,int> A list of course counts */
protected array $courseblocks;
public function __construct() {
global $DB;
parent::__construct();
$this->undeletableblocktypes = \block_manager::get_undeletable_block_types();
$sql = <<<EOF
SELECT
b.name,
b.id,
b.name,
COUNT(DISTINCT binst.id) as totalcount,
COUNT(DISTINCT bcinst.id) as courseviewcount
FROM {block} b
LEFT JOIN {block_instances} binst ON binst.blockname = b.name
LEFT JOIN {block_instances} bcinst ON
bcinst.blockname = b.name AND
bcinst.pagetypepattern = 'course-view-*'
GROUP BY b.id, b.name, b.visible, binst.blockname, bcinst.blockname
ORDER BY b.name ASC
EOF;
$sql = 'SELECT b.name,
b.id,
COUNT(DISTINCT binst.id) as totalcount
FROM {block} b
LEFT JOIN {block_instances} binst ON binst.blockname = b.name
GROUP BY b.id,
b.name
ORDER BY b.name ASC';
$this->blockdata = $DB->get_records_sql($sql);
$sql = "SELECT blockname
FROM {block_instances}
WHERE pagetypepattern = 'course-view-*'
GROUP BY blockname";
$this->courseblocks = $DB->get_records_sql($sql);
}
protected function get_plugintype(): string {
@@ -102,11 +103,10 @@ class block_management_table extends \core_admin\table\plugin_management_table {
*/
protected function col_instances(stdClass $row): string {
$blockdata = $this->blockdata[$row->plugininfo->name];
if ($blockdata->courseviewcount > 0) {
if (array_key_exists($blockdata->name, $this->courseblocks)) {
return html_writer::link(
new moodle_url('/course/search.php', [
'blocklist' => $row->plugininfo->name,
'sesskey' => sesskey(),
'blocklist' => $blockdata->id,
]),
$blockdata->totalcount,
);
+285
View File
@@ -0,0 +1,285 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
namespace core_admin\table;
use core_plugin_manager;
use flexible_table;
use html_writer;
use stdClass;
defined('MOODLE_INTERNAL') || die();
require_once("{$CFG->libdir}/tablelib.php");
/**
* Plugin Management table.
*
* @package core_admin
* @copyright 2023 Andrew Lyons <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class hook_list_table extends flexible_table {
/** @var \core\plugininfo\base[] The plugin list */
protected array $plugins = [];
/** @var int The number of enabled plugins of this type */
protected int $enabledplugincount = 0;
/** @var core_plugin_manager */
protected core_plugin_manager $pluginmanager;
/** @var string The plugininfo class for this plugintype */
protected string $plugininfoclass;
/** @var stdClass[] The list of emitted hooks with metadata */
protected array $emitters;
public function __construct() {
global $CFG;
$this->define_baseurl('/admin/hooks.php');
parent::__construct('core_admin-hook_list_table');
// Add emitted hooks.
$this->emitters = \core\hook\manager::discover_known_hooks();
$this->setup_column_configuration();
$this->setup();
}
/**
* Set up the column configuration for this table.
*/
protected function setup_column_configuration(): void {
$columnlist = [
'details' => get_string('hookname', 'core_admin'),
'callbacks' => get_string('hookcallbacks', 'core_admin'),
'deprecates' => get_string('hookdeprecates', 'core_admin'),
];
$this->define_columns(array_keys($columnlist));
$this->define_headers(array_values($columnlist));
$columnswithhelp = [
'callbacks' => new \help_icon('hookcallbacks', 'admin'),
];
$columnhelp = array_map(function (string $column) use ($columnswithhelp): ?\renderable {
if (array_key_exists($column, $columnswithhelp)) {
return $columnswithhelp[$column];
}
return null;
}, array_keys($columnlist));
$this->define_help_for_headers($columnhelp);
}
/**
* Print the table.
*/
public function out(): void {
// All hook consumers referenced from the db/hooks.php files.
$hookmanager = \core\hook\manager::get_instance();
$allhooks = (array)$hookmanager->get_all_callbacks();
// Add any unused hooks.
foreach (array_keys($this->emitters) as $classname) {
if (isset($allhooks[$classname])) {
continue;
}
$allhooks[$classname] = [];
}
// Order rows by hook name, putting core first.
\core_collator::ksort($allhooks);
$corehooks = [];
foreach ($allhooks as $classname => $consumers) {
if (str_starts_with($classname, 'core\\')) {
$corehooks[$classname] = $consumers;
unset($allhooks[$classname]);
}
}
$allhooks = array_merge($corehooks, $allhooks);
foreach ($allhooks as $classname => $consumers) {
$this->add_data_keyed(
$this->format_row((object) [
'classname' => $classname,
'callbacks' => $consumers,
]),
$this->get_row_class($classname),
);
}
$this->finish_output(false);
}
protected function col_details(stdClass $row): string {
return $row->classname .
$this->get_description($row) .
html_writer::div($this->get_tags_for_row($row));
}
/**
* Show the name column content.
*
* @param stdClass $row
* @return string
*/
protected function get_description(stdClass $row): string {
if (!array_key_exists($row->classname, $this->emitters)) {
return '';
}
return html_writer::tag(
'small',
clean_text(markdown_to_html($this->emitters[$row->classname]['description']), FORMAT_HTML),
);
}
protected function col_deprecates(stdClass $row): string {
if (!class_exists($row->classname)) {
return '';
}
$rc = new \ReflectionClass($row->classname);
if (!$rc->implementsInterface(\core\hook\deprecated_callback_replacement::class)) {
return '';
}
$deprecates = call_user_func([$row->classname, 'get_deprecated_plugin_callbacks']);
if (count($deprecates) === 0) {
return '';
}
$content = html_writer::start_tag('ul');
foreach ($deprecates as $deprecatedmethod) {
$content .= html_writer::tag('li', $deprecatedmethod);
}
$content .= html_writer::end_tag('ul');
return $content;
}
protected function col_callbacks(stdClass $row): string {
global $CFG;
$hookclass = $row->classname;
$cbinfo = [];
foreach ($row->callbacks as $definition) {
$iscallable = is_callable($definition['callback'], false, $callbackname);
$isoverridden = isset($CFG->hooks_callback_overrides[$hookclass][$definition['callback']]);
$info = "{$callbackname}&nbsp;({$definition['priority']})";
if (!$iscallable) {
$info .= '&nbsp;';
$info .= $this->get_tag(
get_string('error'),
'danger',
get_string('hookcallbacknotcallable', 'core_admin', $callbackname),
);
}
if ($isoverridden) {
// The lang string meaning should be close enough here.
$info .= $this->get_tag(
get_string('hookconfigoverride', 'core_admin'),
'warning',
get_string('hookconfigoverride_help', 'core_admin'),
);
}
$cbinfo[] = $info;
}
if ($cbinfo) {
$output = html_writer::start_tag('ol');
foreach ($cbinfo as $callback) {
$class = '';
if ($definition['disabled']) {
$class = 'dimmed_text';
}
$output .= html_writer::tag('li', $callback, ['class' => $class]);
}
$output .= html_writer::end_tag('ol');
return $output;
} else {
return '';
}
}
/**
* Get the HTML to display the badge with tooltip.
*
* @param string $tag The main text to display
* @param null|string $type The pill type
* @param null|string $tooltip The content of the tooltip
* @return string
*/
protected function get_tag(
string $tag,
?string $type = null,
?string $tooltip = null,
): string {
$attributes = [];
if ($type === null) {
$type = 'info';
}
if ($tooltip) {
$attributes['data-toggle'] = 'tooltip';
$attributes['title'] = $tooltip;
}
return html_writer::span($tag, "badge badge-{$type}", $attributes);
}
/**
* Get the code to display a set of tags for this table row.
*
* @param stdClass $row
* @return string
*/
protected function get_tags_for_row(stdClass $row): string {
if (!array_key_exists($row->classname, $this->emitters)) {
// This hook has been defined in the db/hooks.php file
// but does not refer to a hook in this version of Moodle.
return $this->get_tag(
get_string('hookunknown', 'core_admin'),
'warning',
get_string('hookunknown_desc', 'core_admin'),
);
}
if (!class_exists($row->classname)) {
// This hook has been defined in a hook discovery agent, but the class it refers to could not be found.
return $this->get_tag(
get_string('hookclassmissing', 'core_admin'),
'warning',
get_string('hookclassmissing_desc', 'core_admin'),
);
}
$tags = $this->emitters[$row->classname]['tags'] ?? [];
$taglist = array_map(function($tag): string {
if (is_array($tag)) {
return $this->get_tag(...$tag);
}
return $this->get_tag($tag, 'badge badge-info');
}, $tags);
return implode("\n", $taglist);
}
protected function get_row_class(string $classname): string {
return '';
}
}
@@ -500,4 +500,15 @@ abstract class plugin_management_table extends flexible_table implements dynamic
protected function supports_ordering(): bool {
return $this->plugininfoclass::plugintype_supports_ordering();
}
/**
* Check if the user has the capability to access this table.
*
* Default implementation for plugin management tables is to require 'moodle/site:config' capability
*
* @return bool Return true if capability check passed.
*/
public function has_capability(): bool {
return has_capability('moodle/site:config', $this->get_context());
}
}
@@ -19,7 +19,7 @@ namespace core_admin\table;
use moodle_url;
/**
* Tiny admin settings.
* Admin tool settings.
*
* @package core_admin
* @copyright 2023 Andrew Lyons <andrew@nicols.co.uk>
@@ -30,12 +30,6 @@ class tool_plugin_management_table extends \core_admin\table\plugin_management_t
return 'tool';
}
public function guess_base_url(): void {
$this->define_baseurl(
new moodle_url('/admin/tools.php')
);
}
protected function get_column_list(): array {
$columns = parent::get_column_list();
@@ -45,6 +39,6 @@ class tool_plugin_management_table extends \core_admin\table\plugin_management_t
}
protected function get_action_url(array $params = []): moodle_url {
return new moodle_url('/admin/tool.php', $params);
return new moodle_url('/admin/settings.php', array_merge(['section' => 'toolsmanagement'], $params));
}
}
+1 -5
View File
@@ -39,8 +39,6 @@ if ($unrecognized) {
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
// TODO: MDL-71421 - Remove the openssl alternative once sodium becomes a requirement in Moodle 4.2.
if ($options['help']) {
echo "Generate secure key
@@ -54,9 +52,7 @@ may be manually installed on multiple servers.
Options:
-h, --help Print out this help
--method <method> Generate key for specified encryption method instead of default.
* sodium
* openssl-aes-256-ctr
--method <method> Generate key for specified encryption method instead of default (sodium)
Example:
php admin/cli/generate_key.php
+3 -7
View File
@@ -177,6 +177,7 @@ $CFG->admin = array_pop($parts);
ini_set('include_path', $CFG->libdir.'/pear' . PATH_SEPARATOR . ini_get('include_path'));
require_once($CFG->libdir.'/classes/component.php');
require_once($CFG->libdir.'/classes/text.php');
require_once($CFG->libdir.'/classes/string_manager.php');
require_once($CFG->libdir.'/classes/string_manager_install.php');
@@ -192,13 +193,8 @@ require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/componentlib.class.php');
require_once($CFG->dirroot.'/cache/lib.php');
// Register our classloader, in theory somebody might want to replace it to load other hacked core classes.
// Required because the database checks below lead to session interaction which is going to lead us to requiring autoloaded classes.
if (defined('COMPONENT_CLASSLOADER')) {
spl_autoload_register(COMPONENT_CLASSLOADER);
} else {
spl_autoload_register('core_component::classloader');
}
// Register our classloader.
\core_component::register_autoloader();
require($CFG->dirroot.'/version.php');
$CFG->target_release = $release;
+11
View File
@@ -57,6 +57,7 @@ Options:
--fullname=STRING Name of the site
--shortname=STRING Name of the site
--summary=STRING The summary to be displayed on the front page
--supportemail=STRING Email address for support and help.
-h, --help Print out this help
Example:
@@ -98,6 +99,7 @@ list($options, $unrecognized) = cli_get_params(
'fullname' => '',
'shortname' => '',
'summary' => '',
'supportemail' => '',
'agree-license' => false,
'help' => false
),
@@ -136,6 +138,15 @@ if (!empty($options['adminemail']) && !validate_email($options['adminemail'])) {
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
// Validate that the supportemail provided was an e-mail address.
if (!empty($options['supportemail']) && !validate_email($options['supportemail'])) {
$a = (object) [
'option' => 'supportemail',
'value' => $options['supportemail']
];
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
$options['lang'] = clean_param($options['lang'], PARAM_SAFEDIR);
if (!file_exists($CFG->dirroot.'/install/lang/'.$options['lang'])) {
$options['lang'] = 'en';
+2 -2
View File
@@ -80,8 +80,8 @@ if (!$category = $DB->get_record('course_categories', ['id' => $options['categor
throw new \moodle_exception('invalidcategoryid');
}
$backupdir = "restore_" . uniqid();
$path = $CFG->tempdir . DIRECTORY_SEPARATOR . "backup" . DIRECTORY_SEPARATOR . $backupdir;
$backupdir = restore_controller::get_tempdir_name(SITEID, $USER->id);
$path = make_backup_temp_directory($backupdir);
cli_heading(get_string('extractingbackupfileto', 'backup', $path));
$fp = get_file_packer('application/vnd.moodle.backup');
+38 -6
View File
@@ -36,6 +36,8 @@ list($options, $unrecognized) = cli_get_params(
'showsql' => false,
'showdebugging' => false,
'force' => false,
'disable' => false,
'enable' => false,
], [
'h' => 'help',
'f' => 'force',
@@ -47,11 +49,15 @@ if ($unrecognized) {
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
if ($options['help'] or (!$options['list'] and !$options['execute'])) {
$commands = ['list', 'execute', 'disable', 'enable'];
$hascommand = count(array_filter($commands, fn($command) => $options[$command])) > 0;
if ($options['help'] || !$hascommand) {
$help =
"Scheduled cron tasks.
Options:
--disable=\\some\\task Disable scheduled task
--enable=\\some\\task Enable scheduled task
--execute=\\some\\task Execute scheduled task manually
--list List all scheduled tasks
--showsql Show sql queries before they are executed
@@ -119,14 +125,40 @@ if ($options['list']) {
exit(0);
}
if ($execute = $options['execute']) {
if (!$task = \core\task\manager::get_scheduled_task($execute)) {
mtrace("Task '$execute' not found");
if (moodle_needs_upgrading()) {
mtrace("Moodle upgrade pending, cannot manage tasks.");
exit(1);
}
if ($disable = $options['disable']) {
if (!$task = \core\task\manager::get_scheduled_task($disable)) {
mtrace("Task '$disable' not found");
exit(1);
}
if (moodle_needs_upgrading()) {
mtrace("Moodle upgrade pending, cannot execute tasks.");
try {
$task->disable();
mtrace("Disabled '$disable'");
} catch (Exception $e) {
mtrace("$e->getMessage()");
exit(1);
}
} else if ($enable = $options['enable']) {
if (!$task = \core\task\manager::get_scheduled_task($enable)) {
mtrace("Task '$enable' not found");
exit(1);
}
try {
$task->enable();
mtrace("Enabled '$enable'");
} catch (Exception $e) {
mtrace("$e->getMessage()");
exit(1);
}
} else if ($execute = $options['execute']) {
if (!$task = \core\task\manager::get_scheduled_task($execute)) {
mtrace("Task '$execute' not found");
exit(1);
}
+65
View File
@@ -0,0 +1,65 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Communication and its plugins settings.
*
* @package core
* @subpackage communication
* @copyright 2023 Huong Nguyen <huongnv13@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once('../config.php');
require_once($CFG->libdir . '/adminlib.php');
$action = required_param('action', PARAM_ALPHANUMEXT);
$name = required_param('name', PARAM_PLUGIN);
$syscontext = context_system::instance();
$PAGE->set_url('/admin/communication.php');
$PAGE->set_context($syscontext);
require_admin();
require_sesskey();
$return = new moodle_url('/admin/settings.php', ['section' => 'managecommunicationproviders']);
$plugins = core_plugin_manager::instance()->get_plugins_of_type('communication');
$sortorder = array_flip(array_keys($plugins));
if (!isset($plugins[$name])) {
throw new moodle_exception('communicationprovidernotfound', 'core_communication', $return, $name);
}
$plugintypename = $plugins[$name]->type . '_' . $plugins[$name]->name;
switch ($action) {
case 'disable':
if ($plugins[$name]->is_enabled()) {
$class = core_plugin_manager::resolve_plugininfo_class('communication');
$class::enable_plugin($name, false);
}
break;
case 'enable':
if (!$plugins[$name]->is_enabled()) {
$class = core_plugin_manager::resolve_plugininfo_class('communication');
$class::enable_plugin($name, true);
}
break;
}
redirect($return);
+590
View File
@@ -3751,6 +3751,7 @@
<VENDOR name="oracle" version="19" />
</DATABASE>
<PHP version="7.4.0" level="required">
<RESTRICT function="restrict_php_version_82" message="unsupportedphpversion82" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
@@ -3922,6 +3923,8 @@
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_xmlrpc_usage" level="optional">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_oracle_usage" level="optional">
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="4.2" requires="3.11.8">
@@ -3938,6 +3941,7 @@
<VENDOR name="oracle" version="19" />
</DATABASE>
<PHP version="8.0.0" level="required">
<RESTRICT function="restrict_php_version_83" message="unsupportedphpversion83" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
@@ -4111,6 +4115,592 @@
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mod_assignment" level="required">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_oracle_usage" level="optional">
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="4.3" requires="3.11.8">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mariadb" version="10.6.7" />
<VENDOR name="mysql" version="8.0" />
<VENDOR name="postgres" version="13" />
<VENDOR name="mssql" version="14.0" />
<VENDOR name="oracle" version="19" />
</DATABASE>
<PHP version="8.0.0" level="required">
<RESTRICT function="restrict_php_version_83" message="unsupportedphpversion83" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="required">
<FEEDBACK>
<ON_ERROR message="mbstringrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="required">
<FEEDBACK>
<ON_ERROR message="opensslrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zlib" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="required">
<FEEDBACK>
<ON_ERROR message="gdrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlreader" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="required">
<FEEDBACK>
<ON_ERROR message="intlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
<PHP_EXTENSION name="fileinfo" level="required"/>
<PHP_EXTENSION name="sodium" level="required"/>
<PHP_EXTENSION name="exif" level="optional"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="96M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="opcache.enable" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="opcacherecommended" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_storage_engine" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbstorageengine" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
<FEEDBACK>
<ON_ERROR message="quizattemptsupgradedmessage" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_slasharguments" level="optional">
<FEEDBACK>
<ON_CHECK message="slashargumentswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_tables_row_format" level="optional">
<FEEDBACK>
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_unoconv_version" level="optional">
<FEEDBACK>
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_format" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfileformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_per_table" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfilepertable" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_large_prefix" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddblargeprefix" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_is_https" level="optional">
<FEEDBACK>
<ON_CHECK message="ishttpswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_incomplete_unicode_support" level="optional">
<FEEDBACK>
<ON_CHECK message="incompleteunicodesupport" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_sixtyfour_bits" level="required">
<FEEDBACK>
<ON_ERROR message="sixtyfourbitsrequired" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_max_input_vars" level="optional">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_admin_dir_usage" level="optional">
<FEEDBACK>
<ON_CHECK message="iscustomadminwarnings" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_xmlrpc_usage" level="optional">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mod_assignment" level="required">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_db_prefix_length" level="required">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_oracle_usage" level="optional">
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="4.4" requires="4.1.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mariadb" version="10.6.7" />
<VENDOR name="mysql" version="8.0" />
<VENDOR name="postgres" version="13" />
<VENDOR name="mssql" version="14.0" />
<VENDOR name="oracle" version="19" />
</DATABASE>
<PHP version="8.1.0" level="required">
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="required">
<FEEDBACK>
<ON_ERROR message="mbstringrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="required">
<FEEDBACK>
<ON_ERROR message="opensslrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zlib" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="required">
<FEEDBACK>
<ON_ERROR message="gdrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlreader" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="required">
<FEEDBACK>
<ON_ERROR message="intlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
<PHP_EXTENSION name="fileinfo" level="required"/>
<PHP_EXTENSION name="sodium" level="required"/>
<PHP_EXTENSION name="exif" level="optional"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="96M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="opcache.enable" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="opcacherecommended" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_storage_engine" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbstorageengine" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
<FEEDBACK>
<ON_ERROR message="quizattemptsupgradedmessage" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_slasharguments" level="optional">
<FEEDBACK>
<ON_CHECK message="slashargumentswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_tables_row_format" level="optional">
<FEEDBACK>
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_unoconv_version" level="optional">
<FEEDBACK>
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_format" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfileformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_per_table" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfilepertable" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_large_prefix" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddblargeprefix" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_is_https" level="optional">
<FEEDBACK>
<ON_CHECK message="ishttpswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_incomplete_unicode_support" level="optional">
<FEEDBACK>
<ON_CHECK message="incompleteunicodesupport" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_sixtyfour_bits" level="required">
<FEEDBACK>
<ON_ERROR message="sixtyfourbitsrequired" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_max_input_vars" level="optional">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_admin_dir_usage" level="optional">
<FEEDBACK>
<ON_CHECK message="iscustomadminwarnings" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_xmlrpc_usage" level="optional">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mod_assignment" level="required">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_db_prefix_length" level="required">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_oracle_usage" level="optional">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_async_backup" level="recommended">
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="4.5" requires="4.1.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mariadb" version="10.6.7" />
<VENDOR name="mysql" version="8.0" />
<VENDOR name="postgres" version="13" />
<VENDOR name="mssql" version="14.0" />
<VENDOR name="oracle" version="19" />
</DATABASE>
<PHP version="8.1.0" level="required">
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="required">
<FEEDBACK>
<ON_ERROR message="mbstringrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="required">
<FEEDBACK>
<ON_ERROR message="opensslrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zlib" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="required">
<FEEDBACK>
<ON_ERROR message="gdrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlreader" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="required">
<FEEDBACK>
<ON_ERROR message="intlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
<PHP_EXTENSION name="fileinfo" level="required"/>
<PHP_EXTENSION name="sodium" level="required"/>
<PHP_EXTENSION name="exif" level="optional"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="96M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="opcache.enable" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="opcacherecommended" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_storage_engine" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbstorageengine" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
<FEEDBACK>
<ON_ERROR message="quizattemptsupgradedmessage" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_slasharguments" level="optional">
<FEEDBACK>
<ON_CHECK message="slashargumentswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_tables_row_format" level="optional">
<FEEDBACK>
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_unoconv_version" level="optional">
<FEEDBACK>
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_format" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfileformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_per_table" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfilepertable" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_large_prefix" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddblargeprefix" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_is_https" level="optional">
<FEEDBACK>
<ON_CHECK message="ishttpswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_incomplete_unicode_support" level="optional">
<FEEDBACK>
<ON_CHECK message="incompleteunicodesupport" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_sixtyfour_bits" level="required">
<FEEDBACK>
<ON_ERROR message="sixtyfourbitsrequired" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_max_input_vars" level="optional">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_admin_dir_usage" level="optional">
<FEEDBACK>
<ON_CHECK message="iscustomadminwarnings" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_xmlrpc_usage" level="optional">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mod_assignment" level="required">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_db_prefix_length" level="required">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_oracle_usage" level="optional">
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_async_backup" level="recommended">
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
</COMPATIBILITY_MATRIX>
+41
View File
@@ -0,0 +1,41 @@
<?php
// This file is part of Moodle - https://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.
/**
* Hooks overview page.
*
* @package core
* @author Petr Skoda
* @copyright 2022 Open LMS
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/tablelib.php');
admin_externalpage_setup('hooksoverview');
require_capability('moodle/site:config', \core\context\system::instance());
$hookmanager = \core\hook\manager::get_instance();
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('hooksoverview', 'core_admin'));
$table = new \core_admin\table\hook_list_table();
$table->out();
echo $OUTPUT->footer();
+3 -3
View File
@@ -224,7 +224,7 @@ if (!core_tables_exist()) {
$strlicense = get_string('license');
$PAGE->navbar->add($strlicense);
$PAGE->set_title($strinstallation.' - Moodle '.$CFG->target_release);
$PAGE->set_title($strinstallation . moodle_page::TITLE_SEPARATOR . 'Moodle ' . $CFG->target_release, false);
$PAGE->set_heading($strinstallation);
$PAGE->set_cacheable(false);
@@ -267,7 +267,7 @@ if (!core_tables_exist()) {
upgrade_init_javascript();
$PAGE->navbar->add($strdatabasesetup);
$PAGE->set_title($strinstallation.' - Moodle '.$CFG->target_release);
$PAGE->set_title($strinstallation . moodle_page::TITLE_SEPARATOR . $CFG->target_release, false);
$PAGE->set_heading($strinstallation);
$PAGE->set_cacheable(false);
@@ -818,7 +818,7 @@ $context = context_system::instance();
if (!has_capability('moodle/site:config', $context)) {
// Do not throw exception display an empty page with administration menu if visible for current user.
$PAGE->set_title($SITE->fullname);
$PAGE->set_title(get_string('home'));
$PAGE->set_heading($SITE->fullname);
echo $OUTPUT->header();
echo $OUTPUT->footer();
+4 -8
View File
@@ -96,20 +96,16 @@ function core_admin_pluginfile($course, $cm, $context, $filearea, $args, $forced
send_file_not_found();
}
// No need for resizing, but if the file should be cached we save it so we can serve it fast next time.
if (empty($maxwidth) && empty($maxheight)) {
// Check whether width/height are specified, and we can resize the image (some types such as ICO cannot be resized).
if (($maxwidth === 0 && $maxheight === 0) ||
!$filedata = $file->resize_image($maxwidth, $maxheight)) {
if ($lifetime) {
file_safe_save_content($file->get_content(), $candidate);
}
send_stored_file($file, $lifetime, 0, false, $options);
}
// Proceed with the resizing.
$filedata = $file->resize_image($maxwidth, $maxheight);
if (!$filedata) {
send_file_not_found();
}
// If we don't want to cached the file, serve now and quit.
if (!$lifetime) {
send_content_uncached($filedata, $filename);
+1 -1
View File
@@ -21,7 +21,7 @@
* Displays the list of found local plugins, their version (if found) and
* a link to delete the local plugin.
*
* @see http://docs.moodle.org/dev/Local_customisation
* @see https://moodledev.io/docs/apis/plugintypes/local
* @package admin
* @copyright 2010 David Mudrak <david.mudrak@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+10 -2
View File
@@ -6,7 +6,7 @@ require_once(__DIR__ . '/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/lib.php');
$sort = optional_param('sort', 'username', PARAM_ALPHA);
$sort = optional_param('sort', 'username', PARAM_ALPHAEXT);
$dir = optional_param('dir', 'ASC', PARAM_ALPHA);
$page = optional_param('page', 0, PARAM_INT);
$perpage = optional_param('perpage', 30, PARAM_INT);
@@ -153,7 +153,15 @@ foreach ($columns as $column) {
$headings[$column] = "<a href=\"?sort=$column&amp;dir=$columndir&amp;\">".$string[$column]."</a>$columnicon";
}
$headings['delete'] = '';
$acl = $DB->get_records('mnet_sso_access_control', null, "$sort $dir", '*'); //, $page * $perpage, $perpage);
$sortorder = get_safe_orderby([
'username' => 'username',
'mnet_host_id' => 'mnet_host_id',
'access' => 'accessctrl',
'default' => 'username',
], $sort, $dir, false);
$acl = $DB->get_records('mnet_sso_access_control', null, $sortorder);
$aclcount = $DB->count_records('mnet_sso_access_control');
if (!$acl) {
-2
View File
@@ -83,7 +83,6 @@ if ($formdata = $simpleform->get_data()) {
$mnet_peer->bootstrap($formdata->wwwroot, null, $application);
// bootstrap the second form straight with the data from the first form
$reviewform = new mnet_review_host_form(null, array('peer' => $mnet_peer)); // the second step (also the edit host form)
$formdata->oldpublickey = $mnet_peer->public_key; // set this so we can confirm on form post without having to recreate the mnet_peer object
$reviewform->set_data($mnet_peer);
echo $OUTPUT->header();
echo $OUTPUT->box_start();
@@ -115,7 +114,6 @@ if (!empty($hostid)) {
}
$credentials = $mnet_peer->check_credentials($mnet_peer->public_key);
$reviewform = new mnet_review_host_form(null, array('peer' => $mnet_peer)); // the second step (also the edit host form)
$mnet_peer->oldpublickey = $mnet_peer->public_key; // set this so we can confirm on form post without having to recreate the mnet_peer object
$reviewform->set_data((object)$mnet_peer);
echo $OUTPUT->box_start();
$reviewform->display();
+1 -1
View File
@@ -20,7 +20,7 @@
* Displays the list of found plagiarism plugins, their version (if found) and
* a link to uninstall the plagiarism plugin.
*
* @see http://docs.moodle.org/dev/Plagiarism_API
* @see https://moodledev.io/docs/apis/subsystems/plagiarism
* @package admin
* @copyright 2012 Dan Marsden <dan@danmarsden.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
@@ -26,34 +26,8 @@ namespace core_adminpresets\local\setting;
*/
class adminpresets_admin_setting_configmultiselect extends adminpresets_setting {
/**
* Ensure that the $value values are setting choices.
*
* @param mixed $value Setting value
* @return mixed Returns false if wrong param value
*/
protected function set_value($value) {
if ($value) {
$options = explode(',', $value);
foreach ($options as $option) {
foreach ($this->settingdata->choices as $key => $choice) {
if ($key == $option) {
$this->value = $option;
$this->set_visiblevalue();
return true;
}
}
}
$value = implode(',', $options);
}
$this->value = $value;
$this->set_visiblevalue();
return true;
}
/** @var \admin_setting_configmultiselect $settingdata */
protected $settingdata;
protected function set_visiblevalue() {
$values = explode(',', $this->value);
@@ -61,7 +35,8 @@ class adminpresets_admin_setting_configmultiselect extends adminpresets_setting
foreach ($values as $value) {
if (!empty($this->settingdata->choices[$value])) {
// Ensure that each value exists as a setting choice.
if (array_key_exists($value, $this->settingdata->choices)) {
$visiblevalues[] = $this->settingdata->choices[$value];
}
}
@@ -26,6 +26,9 @@ namespace core_adminpresets\local\setting;
*/
class adminpresets_admin_setting_configselect extends adminpresets_setting {
/** @var \admin_setting_configselect $settingdata */
protected $settingdata;
/**
* Sets the setting value cleaning it.
*
@@ -26,6 +26,9 @@ namespace core_adminpresets\local\setting;
*/
class adminpresets_admin_setting_configtime extends adminpresets_setting {
/** @var \admin_setting_configtime $settingdata */
protected $settingdata;
/**
* To check that the value is one of the options
*
@@ -19,6 +19,8 @@ namespace core_adminpresets\local\setting;
/**
* Reimplementation to allow human friendly view of the selected regexps.
*
* @deprecated Moodle 4.3 MDL-78468 - No longer used since the devicedetectregex was removed.
* @todo Final deprecation on Moodle 4.7 MDL-79052
* @package core_adminpresets
* @copyright 2021 Pimenko <support@pimenko.com><pimenko.com>
* @author Jordan Kesraoui | Sylvain Revenu | Pimenko based on David Monllaó <david.monllao@urv.cat> code
@@ -26,7 +28,16 @@ namespace core_adminpresets\local\setting;
*/
class adminpresets_admin_setting_devicedetectregex extends adminpresets_admin_setting_configtext {
/**
* @deprecated Moodle 4.3 MDL-78468 - No longer used since the devicedetectregex was removed.
* @todo Final deprecation on Moodle 4.7 MDL-79052
*/
public function set_visiblevalue() {
debugging(
__FUNCTION__ . '() is deprecated.' .
'All functions associated with devicedetectregex theme setting are being removed.',
DEBUG_DEVELOPER
);
$values = json_decode($this->get_value());
if (!$values) {
@@ -28,6 +28,9 @@ namespace core_adminpresets\local\setting;
*/
class adminpresets_admin_setting_special_backupdays extends adminpresets_setting {
/** @var \admin_setting_special_backupdays $settingdata */
protected $settingdata;
protected function set_value($value) {
$this->value = clean_param($value, PARAM_SEQUENCE);
$this->set_visiblevalue();
@@ -26,6 +26,9 @@ namespace core_adminpresets\local\setting;
*/
class adminpresets_admin_setting_users_with_capability extends adminpresets_admin_setting_configmultiselect {
/** @var \admin_setting_configmultiselect $settingdata */
protected $settingdata;
protected function set_behaviors() {
$this->behaviors['loadchoices'] = &$this->settingdata;
}
+2 -2
View File
@@ -761,8 +761,8 @@ class manager {
public function delete_preset(int $presetid): void {
global $DB;
// Check the preset exists.
$preset = $DB->get_record('adminpresets', ['id' => $presetid]);
// Check the preset exists (cannot delete the pre-installed core "Starter" and "Full" presets).
$preset = $DB->get_record('adminpresets', ['id' => $presetid, 'iscore' => self::NONCORE_PRESET]);
if (!$preset) {
throw new moodle_exception('errordeleting', 'core_adminpresets');
}
+28 -1
View File
@@ -16,6 +16,7 @@
namespace core_adminpresets;
use moodle_exception;
use stdClass;
/**
@@ -28,6 +29,14 @@ use stdClass;
* @coversDefaultClass \core_adminpresets\manager
*/
class manager_test extends \advanced_testcase {
/**
* Include required libraries.
*/
public static function setUpBeforeClass(): void {
global $CFG;
require_once($CFG->libdir.'/adminlib.php');
}
/**
* Test the behaviour of protected get_site_settings method.
*
@@ -599,10 +608,28 @@ class manager_test extends \advanced_testcase {
$manager = new manager();
$this->expectException(\moodle_exception::class);
$this->expectException(moodle_exception::class);
$this->expectExceptionMessage('Error deleting from database');
$manager->delete_preset($unexistingid);
}
/**
* Test trying to delete the core/pre-defined presets
*
* @covers ::delete_preset
*/
public function test_delete_preset_core(): void {
global $DB;
$this->resetAfterTest();
$starterpreset = $DB->get_record('adminpresets', ['iscore' => manager::STARTER_PRESET]);
$this->expectException(moodle_exception::class);
$this->expectExceptionMessage('Error deleting from database');
(new manager())->delete_preset($starterpreset->id);
}
/**
* Test the behaviour of delete_preset() method.
*
+4 -4
View File
@@ -27,7 +27,8 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
use qbank_columnsortorder\column_manager;
use core\event\qbank_plugin_enabled;
use core\event\qbank_plugin_disabled;
$action = required_param('action', PARAM_ALPHANUMEXT);
$name = required_param('name', PARAM_PLUGIN);
@@ -49,12 +50,11 @@ if (!isset($plugins[$name])) {
}
$plugintypename = $plugins[$name]->type . '_' . $plugins[$name]->name;
$columnsortordermanager = new column_manager();
switch ($action) {
case 'disable':
if ($plugins[$name]->is_enabled()) {
$columnsortordermanager->disable_columns($plugintypename);
qbank_plugin_disabled::create_for_plugin($plugintypename)->trigger();
$class = \core_plugin_manager::resolve_plugininfo_class('qbank');
$class::enable_plugin($name, false);
set_config('disabled', 1, 'qbank_'. $name);
@@ -62,7 +62,7 @@ switch ($action) {
break;
case 'enable':
if (!$plugins[$name]->is_enabled()) {
$columnsortordermanager->enable_columns($plugintypename);
qbank_plugin_enabled::create_for_plugin($plugintypename)->trigger();
$class = \core_plugin_manager::resolve_plugininfo_class('qbank');
$class::enable_plugin($name, true);
}
+15 -10
View File
@@ -44,7 +44,7 @@ class core_admin_renderer extends plugin_renderer_base {
$output .= $this->heading(get_string('copyrightnotice'));
$output .= $this->box($copyrightnotice, 'copyrightnotice');
$output .= html_writer::empty_tag('br');
$output .= $this->confirm(get_string('doyouagree'), $continue, "http://docs.moodle.org/dev/License");
$output .= $this->confirm(get_string('doyouagree'), $continue, "https://moodledev.io/general/license");
$output .= $this->footer();
return $output;
@@ -745,10 +745,10 @@ class core_admin_renderer extends plugin_renderer_base {
//////////////////////////////////////////////////////////////////////////////////////////////////
//// IT IS ILLEGAL AND A VIOLATION OF THE GPL TO HIDE, REMOVE OR MODIFY THIS COPYRIGHT NOTICE ///
$copyrighttext = '<a href="http://moodle.org/">Moodle</a> '.
'<a href="http://docs.moodle.org/dev/Releases" title="'.$CFG->version.'">'.$CFG->release.'</a><br />'.
'<a href="https://moodledev.io/general/releases" title="'.$CFG->version.'">'.$CFG->release.'</a><br />'.
'Copyright &copy; 1999 onwards, Martin Dougiamas<br />'.
'and <a href="http://moodle.org/dev">many other contributors</a>.<br />'.
'<a href="http://docs.moodle.org/dev/License">GNU Public License</a>';
'<a href="https://moodledev.io/general/license">GNU Public License</a>';
//////////////////////////////////////////////////////////////////////////////////////////////////
return $this->box($copyrighttext, 'copyright');
@@ -874,8 +874,8 @@ class core_admin_renderer extends plugin_renderer_base {
protected function mobile_configuration_warning($mobileconfigured) {
$output = '';
if (!$mobileconfigured) {
$settingslink = new moodle_url('/admin/settings.php', ['section' => 'mobilesettings']);
$configurebutton = $this->single_button($settingslink, get_string('enablemobilewebservice', 'admin'));
$settingslink = new moodle_url('/admin/search.php', ['query' => 'enablemobilewebservice']);
$configurebutton = $this->single_button($settingslink, get_string('enablemobilewebservice', 'admin'), 'get');
$output .= $this->warning(get_string('mobilenotconfiguredwarning', 'admin') . '&nbsp;' . $configurebutton);
}
@@ -897,7 +897,8 @@ class core_admin_renderer extends plugin_renderer_base {
$url = "https://campaign.moodle.org/current/lms/{$lang}/install/";
$params = [
'url' => $url,
'iframeid' => 'campaign-content'
'iframeid' => 'campaign-content',
'title' => get_string('campaign', 'admin'),
];
return $this->render_from_template('core/external_content_banner', $params);
@@ -918,7 +919,8 @@ class core_admin_renderer extends plugin_renderer_base {
$url = "https://campaign.moodle.org/current/lms/{$lang}/servicesandsupport/";
$params = [
'url' => $url,
'iframeid' => 'services-support-content'
'iframeid' => 'services-support-content',
'title' => get_string('supportandservices', 'admin'),
];
return $this->render_from_template('core/external_content_banner', $params);
@@ -990,7 +992,7 @@ class core_admin_renderer extends plugin_renderer_base {
* @return string HTML to output.
*/
protected function release_notes_link() {
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/dev/Releases');
$releasenoteslink = get_string('releasenoteslink', 'admin', 'https://moodledev.io/general/releases');
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
return $this->box($releasenoteslink, 'generalbox alert alert-info');
}
@@ -2049,8 +2051,10 @@ class core_admin_renderer extends plugin_renderer_base {
// We are checking installed & enabled things
if ($environment_result->getLevel() == 'required') {
$stringtouse = 'environmentrequirecustomcheck';
} else {
} else if ($environment_result->getLevel() == 'optional') {
$stringtouse = 'environmentrecommendcustomcheck';
} else {
$stringtouse = 'environmentshouldfixcustomcheck';
}
} else if ($environment_result->getPart() == 'php_setting') {
@@ -2081,7 +2085,8 @@ class core_admin_renderer extends plugin_renderer_base {
if ($status) { //Handle ok result (ok)
$status = get_string('statusok');
} else {
if ($environment_result->getLevel() == 'optional') {//Handle check result (warning)
// Handle check result (warning).
if (in_array($environment_result->getLevel(), ['optional', 'recommended'])) {
$status = get_string('check');
$warningline = true;
} else { //Handle error result (error)
+32 -43
View File
@@ -49,26 +49,11 @@ if ($action == 'newon') {
admin_externalpage_setup($pagename);
$sesskeyurl = $CFG->wwwroot.'/'.$CFG->admin.'/repository.php?sesskey=' . sesskey();
$baseurl = $CFG->wwwroot.'/'.$CFG->admin.'/repository.php';
$configstr = get_string('manage', 'repository');
// The URL used for redirection, and that all edit related URLs will be based off.
$baseurl = new moodle_url('/admin/repository.php');
$return = true;
if (!empty($action)) {
require_sesskey();
}
/**
* Helper function that generates a moodle_url object
* relevant to the repository
*/
function repository_action_url($repository) {
global $baseurl;
return new moodle_url($baseurl, array('sesskey'=>sesskey(), 'repos'=>$repository));
}
if (($action == 'edit') || ($action == 'new')) {
$pluginname = '';
if ($action == 'edit') {
@@ -182,16 +167,12 @@ if (($action == 'edit') || ($action == 'new')) {
}
}
} else if ($action == 'show') {
if (!confirm_sesskey()) {
throw new \moodle_exception('confirmsesskeybad', '', $baseurl);
}
require_sesskey();
$class = \core_plugin_manager::resolve_plugininfo_class('repository');
$class::enable_plugin($repository, 1);
$return = true;
} else if ($action == 'hide') {
if (!confirm_sesskey()) {
throw new \moodle_exception('confirmsesskeybad', '', $baseurl);
}
require_sesskey();
$class = \core_plugin_manager::resolve_plugininfo_class('repository');
$class::enable_plugin($repository, 0);
$return = true;
@@ -199,9 +180,7 @@ if (($action == 'edit') || ($action == 'new')) {
$repositorytype = repository::get_type_by_typename($repository);
if ($sure) {
$PAGE->set_pagetype('admin-repository-' . $repository);
if (!confirm_sesskey()) {
throw new \moodle_exception('confirmsesskeybad', '', $baseurl);
}
require_sesskey();
if ($repositorytype->delete($downloadcontents)) {
// Include this information into config changes table.
@@ -220,20 +199,15 @@ if (($action == 'edit') || ($action == 'new')) {
$output = $OUTPUT->box_start('generalbox', 'notice');
$output .= html_writer::tag('p', $message);
$removeurl = new moodle_url($sesskeyurl);
$removeurl->params(array(
$removeurl = new moodle_url($baseurl, [
'action' =>'delete',
'repos' => $repository,
'sure' => 'yes',
));
]);
$removeanddownloadurl = new moodle_url($sesskeyurl);
$removeanddownloadurl->params(array(
'action' =>'delete',
'repos'=> $repository,
'sure' => 'yes',
$removeanddownloadurl = new moodle_url($removeurl, [
'downloadcontents' => 1,
));
]);
$output .= $OUTPUT->single_button($removeurl, get_string('continueuninstall', 'repository'));
$output .= $OUTPUT->single_button($removeanddownloadurl, get_string('continueuninstallanddownload', 'repository'));
@@ -245,9 +219,11 @@ if (($action == 'edit') || ($action == 'new')) {
$return = false;
}
} else if ($action == 'moveup') {
require_sesskey();
$repositorytype = repository::get_type_by_typename($repository);
$repositorytype->move_order('up');
} else if ($action == 'movedown') {
require_sesskey();
$repositorytype = repository::get_type_by_typename($repository);
$repositorytype->move_order('down');
} else {
@@ -339,8 +315,7 @@ if (($action == 'edit') || ($action == 'new')) {
$userinstancenumbertext = "";
}
$settings .= '<a href="' . $sesskeyurl . '&amp;action=edit&amp;repos=' . $typename . '">' . $settingsstr .'</a>';
$settings = html_writer::link(new moodle_url($baseurl, ['action' => 'edit', 'repos' => $typename]), $settingsstr);
$settings .= $OUTPUT->container_start('mdl-left');
$settings .= '<br/>';
$settings .= $admininstancenumbertext;
@@ -357,22 +332,34 @@ if (($action == 'edit') || ($action == 'new')) {
$currentaction = 'hide';
}
$select = new single_select(repository_action_url($typename, 'repos'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . basename($typename));
// Active toggle.
$selectaction = new moodle_url($baseurl, ['sesskey' => sesskey(), 'repos' => $typename]);
$select = new single_select($selectaction, 'action', $actionchoicesforexisting, $currentaction, null,
'applyto' . basename($typename));
$select->set_label(get_string('action'), array('class' => 'accesshide'));
// Display up/down link
$updown = '';
$spacer = $OUTPUT->spacer(array('height'=>15, 'width'=>15)); // should be done with CSS instead
if ($updowncount > 1) {
$updown .= "<a href=\"$sesskeyurl&amp;action=moveup&amp;repos=".$typename."\">";
$updown .= $OUTPUT->pix_icon('t/up', get_string('moveup')) . "</a>&nbsp;";
$moveupaction = new moodle_url($baseurl, [
'sesskey' => sesskey(),
'action' => 'moveup',
'repos' => $typename,
]);
$updown .= html_writer::link($moveupaction, $OUTPUT->pix_icon('t/up', get_string('moveup'))) . '&nbsp;';
}
else {
$updown .= $spacer;
}
if ($updowncount < $totalrepositorytypes) {
$updown .= "<a href=\"$sesskeyurl&amp;action=movedown&amp;repos=".$typename."\">";
$updown .= $OUTPUT->pix_icon('t/down', get_string('movedown')) . "</a>&nbsp;";
$movedownaction = new moodle_url($baseurl, [
'sesskey' => sesskey(),
'action' => 'movedown',
'repos' => $typename,
]);
$updown .= html_writer::link($movedownaction, $OUTPUT->pix_icon('t/down', get_string('movedown'))) . '&nbsp;';
}
else {
$updown .= $spacer;
@@ -400,7 +387,9 @@ if (($action == 'edit') || ($action == 'new')) {
foreach ($plugins as $plugin => $dir) {
// Check that it has not already been listed
if (!in_array($plugin, $alreadyplugins)) {
$select = new single_select(repository_action_url($plugin, 'repos'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . basename($plugin));
$selectaction = new moodle_url($baseurl, ['sesskey' => sesskey(), 'repos' => $plugin]);
$select = new single_select($selectaction, 'action', $actionchoicesfornew, 'delete', null,
'applyto' . basename($plugin));
$select->set_label(get_string('action'), array('class' => 'accesshide'));
$uninstall = '';
if ($uninstallurl = core_plugin_manager::instance()->get_uninstall_url('repository_' . $plugin, 'manage')) {
+9 -10
View File
@@ -18,8 +18,6 @@ require_once(__DIR__ . '/../config.php');
require_once($CFG->dirroot . '/repository/lib.php');
require_once($CFG->libdir . '/adminlib.php');
require_sesskey();
// id of repository
$edit = optional_param('edit', 0, PARAM_INT);
$new = optional_param('new', '', PARAM_PLUGIN);
@@ -43,12 +41,8 @@ if ($edit){
admin_externalpage_setup($pagename, '', null, new moodle_url('/admin/repositoryinstance.php'));
$baseurl = new moodle_url("/$CFG->admin/repositoryinstance.php", array('sesskey'=>sesskey()));
$parenturl = new moodle_url("/$CFG->admin/repository.php", array(
'sesskey'=>sesskey(),
'action'=>'edit',
));
// The URL used for redirection, and that all edit related URLs will be based off.
$parenturl = new moodle_url('/admin/repository.php', ['action' => 'edit']);
if ($new) {
$parenturl->param('repos', $new);
@@ -116,6 +110,7 @@ if (!empty($edit) || !empty($new)) {
$return = false;
}
} else if (!empty($hide)) {
require_sesskey();
$instance = repository::get_type_by_typename($hide);
$instance->hide();
core_plugin_manager::reset_caches();
@@ -129,6 +124,7 @@ if (!empty($edit) || !empty($new)) {
throw new repository_exception('nopermissiontoaccess', 'repository');
}
if ($sure) {
require_sesskey();
if ($instance->delete($downloadcontents)) {
$deletedstr = get_string('instancedeleted', 'repository');
core_plugin_manager::reset_caches();
@@ -141,14 +137,17 @@ if (!empty($edit) || !empty($new)) {
echo $OUTPUT->header();
echo $OUTPUT->box_start('generalbox', 'notice');
$continueurl = new moodle_url($baseurl, array(
$continueurl = new moodle_url($PAGE->url, [
'type' => $type,
'delete' => $delete,
'sure' => 'yes',
));
]);
$continueanddownloadurl = new moodle_url($continueurl, array(
'downloadcontents' => 1
));
$message = get_string('confirmdelete', 'repository', $instance->name);
echo html_writer::tag('p', $message);
+13
View File
@@ -38,6 +38,19 @@ if (!is_siteadmin()) {
}
$admisselector = new core_role_admins_existing_selector();
if (array_key_exists('siteadmins', $CFG->config_php_settings)) {
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('manageadmins', 'core_role'), 3);
echo $OUTPUT->notification(get_string('siteadministratorsconfigphp', 'core_role'), \core\output\notification::NOTIFY_INFO);
echo $OUTPUT->box_start();
echo $OUTPUT->paragraph(get_string('existingadmins', 'core_role'));
$admisselector->display();
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
die();
}
$potentialadmisselector = new core_role_admins_potential_selector();
if ($addusersaction) {
-1
View File
@@ -141,7 +141,6 @@ abstract class core_role_allow_role_page {
$table->cellspacing = 0;
$table->width = '90%';
$table->align = array('left');
$table->rotateheaders = true;
$table->head = array('&#xa0;');
$table->colclasses = array('');
@@ -0,0 +1,171 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
namespace core_role\reportbuilder\local\entities;
use context;
use context_helper;
use lang_string;
use stdClass;
use core_reportbuilder\local\entities\base;
use core_reportbuilder\local\filters\select;
use core_reportbuilder\local\report\{column, filter};
/**
* Role entity
*
* @package core_role
* @copyright 2023 Paul Holden <paulh@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class role extends base {
/**
* Database tables that this entity uses and their default aliases
*
* @return array
*/
protected function get_default_table_aliases(): array {
return [
'context' => 'rctx',
'role' => 'r',
];
}
/**
* The default title for this entity
*
* @return lang_string
*/
protected function get_default_entity_title(): lang_string {
return new lang_string('role');
}
/**
* Initialise the entity
*
* @return base
*/
public function initialise(): base {
$columns = $this->get_all_columns();
foreach ($columns as $column) {
$this->add_column($column);
}
// All the filters defined by the entity can also be used as conditions.
$filters = $this->get_all_filters();
foreach ($filters as $filter) {
$this
->add_filter($filter)
->add_condition($filter);
}
return $this;
}
/**
* Returns list of all available columns
*
* @return column[]
*/
protected function get_all_columns(): array {
global $DB;
$contextalias = $this->get_table_alias('context');
$rolealias = $this->get_table_alias('role');
// Name column.
$columns[] = (new column(
'name',
new lang_string('rolefullname', 'core_role'),
$this->get_entity_name()
))
->add_joins($this->get_joins())
->set_type(column::TYPE_TEXT)
->add_fields("{$rolealias}.name, {$rolealias}.shortname, {$rolealias}.id, {$contextalias}.id AS contextid")
->add_fields(context_helper::get_preload_record_columns_sql($contextalias))
->set_is_sortable(true, ["CASE WHEN {$rolealias}.name = '' THEN {$rolealias}.shortname ELSE {$rolealias}.name END"])
->set_callback(static function($name, stdClass $role): string {
if ($name === null) {
return '';
}
context_helper::preload_from_record($role);
$context = context::instance_by_id($role->contextid);
return role_get_name($role, $context, ROLENAME_BOTH);
});
// Short name column.
$columns[] = (new column(
'shortname',
new lang_string('roleshortname', 'core_role'),
$this->get_entity_name()
))
->add_joins($this->get_joins())
->set_type(column::TYPE_TEXT)
->add_fields("{$rolealias}.shortname")
->set_is_sortable(true);
// Description column.
$descriptionfieldsql = "{$rolealias}.description";
if ($DB->get_dbfamily() === 'oracle') {
$descriptionfieldsql = $DB->sql_order_by_text($descriptionfieldsql, 1024);
}
$columns[] = (new column(
'description',
new lang_string('description'),
$this->get_entity_name()
))
->add_joins($this->get_joins())
->set_type(column::TYPE_LONGTEXT)
->add_field($descriptionfieldsql, 'description')
->add_field("{$rolealias}.shortname")
->set_callback(static function($description, stdClass $role): string {
if ($description === null) {
return '';
}
return role_get_description($role);
});
return $columns;
}
/**
* Return list of all available filters
*
* @return filter[]
*/
protected function get_all_filters(): array {
$rolealias = $this->get_table_alias('role');
// Name filter.
$filters[] = (new filter(
select::class,
'name',
new lang_string('rolefullname', 'core_role'),
$this->get_entity_name(),
"{$rolealias}.id"
))
->add_joins($this->get_joins())
->set_options_callback(static function(): array {
return role_get_names(null, ROLENAME_ORIGINAL, true);
});
return $filters;
}
}
+1 -1
View File
@@ -76,7 +76,7 @@ switch ($action) {
$optionsyes = array('action'=>'delete', 'roleid'=>$roleid, 'sesskey'=>sesskey(), 'confirm'=>1);
$a = new stdClass();
$a->id = $roleid;
$a->name = $roles[$roleid]->name;
$a->name = $roles[$roleid]->localname;
$a->shortname = $roles[$roleid]->shortname;
$a->count = $DB->count_records_select('role_assignments',
'roleid = ?', array($roleid), 'COUNT(DISTINCT userid)');
+2 -2
View File
@@ -32,7 +32,7 @@ require_once($CFG->libdir . '/adminlib.php');
admin_externalpage_setup('searchareas', '', null, (new moodle_url('/admin/searchreindex.php'))->out(false));
// Get area parameter and check it exists.
$areaid = required_param('areaid', PARAM_ALPHAEXT);
$areaid = required_param('areaid', PARAM_ALPHANUMEXT);
$area = \core_search\manager::get_search_area($areaid);
if ($area === false) {
throw new moodle_exception('invalidrequest');
@@ -44,7 +44,7 @@ $PAGE->set_secondary_active_tab('modules');
// Start page output.
$heading = get_string('gradualreindex', 'search', '');
$PAGE->set_title($PAGE->title . ': ' . $heading);
$PAGE->set_title($areaname . ' - ' . get_string('gradualreindex', 'search', ''));
$PAGE->navbar->add($heading);
echo $OUTPUT->header();
echo $OUTPUT->heading($heading);
+1 -3
View File
@@ -129,9 +129,7 @@ if (empty($SITE->fullname)) {
$PAGE->set_button($buttons);
}
$visiblepathtosection = array_reverse($settingspage->visiblepath);
$PAGE->set_title("$SITE->shortname: " . implode(": ",$visiblepathtosection));
$PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, $settingspage->visiblepath));
$PAGE->set_heading($SITE->fullname);
echo $OUTPUT->header();
+14 -4
View File
@@ -46,8 +46,6 @@ reports,core_reportbuilder|/reportbuilder/index.php',
'50',
'10'
));
$temp->add(new admin_setting_configcheckbox('enabledevicedetection', new lang_string('enabledevicedetection', 'admin'), new lang_string('configenabledevicedetection', 'admin'), 1));
$temp->add(new admin_setting_devicedetectregex('devicedetectregex', new lang_string('devicedetectregex', 'admin'), new lang_string('devicedetectregex_desc', 'admin'), ''));
$ADMIN->add('themes', $temp);
$ADMIN->add('themes', new admin_externalpage('themeselector', new lang_string('themeselector','admin'), $CFG->wwwroot . '/theme/index.php'));
@@ -202,14 +200,14 @@ reports,core_reportbuilder|/reportbuilder/index.php',
));
$choices = [HOMEPAGE_SITE => new lang_string('home')];
if (!empty($CFG->enabledashboard)) {
if (!isset($CFG->enabledashboard) || $CFG->enabledashboard) {
$choices[HOMEPAGE_MY] = new lang_string('mymoodle', 'admin');
}
$choices[HOMEPAGE_MYCOURSES] = new lang_string('mycourses', 'admin');
$choices[HOMEPAGE_USER] = new lang_string('userpreference', 'admin');
$temp->add(new admin_setting_configselect('defaulthomepage', new lang_string('defaulthomepage', 'admin'),
new lang_string('configdefaulthomepage', 'admin'), get_default_home_page(), $choices));
if (!empty($CFG->enabledashboard)) {
if (!isset($CFG->enabledashboard) || $CFG->enabledashboard) {
$temp->add(new admin_setting_configcheckbox(
'allowguestmymoodle',
new lang_string('allowguestmymoodle', 'admin'),
@@ -244,6 +242,18 @@ reports,core_reportbuilder|/reportbuilder/index.php',
// "htmlsettings" settingpage
$temp = new admin_settingpage('htmlsettings', new lang_string('htmlsettings', 'admin'));
$sitenameintitleoptions = [
'shortname' => new lang_string('shortname'),
'fullname' => new lang_string('fullname'),
];
$sitenameintitleconfig = new admin_setting_configselect(
'sitenameintitle',
new lang_string('sitenameintitle', 'admin'),
new lang_string('sitenameintitle_help', 'admin'),
'shortname',
$sitenameintitleoptions
);
$temp->add($sitenameintitleconfig);
$temp->add(new admin_setting_configcheckbox('formatstringstriptags', new lang_string('stripalltitletags', 'admin'), new lang_string('configstripalltitletags', 'admin'), 1));
$temp->add(new admin_setting_emoticons());
$ADMIN->add('appearance', $temp);
+106 -38
View File
@@ -43,12 +43,6 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
array('moodle/category:manage', 'moodle/course:create')
)
);
$ADMIN->add('courses',
new admin_externalpage('course_customfield', new lang_string('course_customfield', 'admin'),
$CFG->wwwroot . '/course/customfield.php',
array('moodle/course:configurecustomfields')
)
);
$ADMIN->add('courses',
new admin_externalpage('addcategory', new lang_string('addcategory', 'admin'),
new moodle_url('/course/editcategory.php', array('parent' => 0)),
@@ -68,6 +62,49 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
)
);
// Download course content.
$downloadcoursedefaulturl = new moodle_url('/admin/settings.php', ['section' => 'coursesettings']);
$temp = new admin_settingpage('downloadcoursecontent', new lang_string('downloadcoursecontent', 'course'));
$temp->add(new admin_setting_configcheckbox('downloadcoursecontentallowed',
new lang_string('downloadcoursecontentallowed', 'admin'),
new lang_string('downloadcoursecontentallowed_desc', 'admin', $downloadcoursedefaulturl->out()), 0));
// 50MB default maximum size per file when downloading course content.
$defaultmaxdownloadsize = 50 * filesize::UNIT_MB;
$temp->add(new filesize('maxsizeperdownloadcoursefile', new lang_string('maxsizeperdownloadcoursefile', 'admin'),
new lang_string('maxsizeperdownloadcoursefile_desc', 'admin'), $defaultmaxdownloadsize, filesize::UNIT_MB));
$temp->hide_if('maxsizeperdownloadcoursefile', 'downloadcoursecontentallowed');
$ADMIN->add('courses', $temp);
// "courserequests" settingpage.
$temp = new admin_settingpage('courserequest', new lang_string('courserequest'));
$temp->add(new admin_setting_configcheckbox('enablecourserequests',
new lang_string('enablecourserequests', 'admin'),
new lang_string('configenablecourserequests', 'admin'), 1));
$temp->add(new admin_settings_coursecat_select('defaultrequestcategory',
new lang_string('defaultrequestcategory', 'admin'),
new lang_string('configdefaultrequestcategory', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('lockrequestcategory',
new lang_string('lockrequestcategory', 'admin'),
new lang_string('configlockrequestcategory', 'admin'), 0));
$temp->add(new admin_setting_users_with_capability(
'courserequestnotify',
new lang_string('courserequestnotify', 'admin'),
new lang_string('configcourserequestnotify2', 'admin'),
[],
'moodle/site:approvecourse'
));
$ADMIN->add('courses', $temp);
// Pending course requests.
if (!empty($CFG->enablecourserequests)) {
$ADMIN->add('courses', new admin_externalpage('coursespending', new lang_string('pendingrequests'),
$CFG->wwwroot . '/course/pending.php', array('moodle/site:approvecourse')));
}
// Add a category for the course Default settings.
$ADMIN->add('courses', new admin_category('coursedefaultsettings', new lang_string('defaultsettingscategory', 'course')));
// Course Default Settings Page.
// NOTE: these settings must be applied after all other settings because they depend on them.
@@ -214,42 +251,73 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configselect('moodlecourse/groupmode', new lang_string('groupmode'), '', key($choices),$choices));
$temp->add(new admin_setting_configselect('moodlecourse/groupmodeforce', new lang_string('force'), new lang_string('coursehelpforce'), 0,array(0 => new lang_string('no'), 1 => new lang_string('yes'))));
$ADMIN->add('courses', $temp);
// Communication.
$temp->add(new admin_setting_heading('communication',
new lang_string('communication', 'core_communication'), ''));
// Download course content.
$downloadcoursedefaulturl = new moodle_url('/admin/settings.php', ['section' => 'coursesettings']);
$temp = new admin_settingpage('downloadcoursecontent', new lang_string('downloadcoursecontent', 'course'));
$temp->add(new admin_setting_configcheckbox('downloadcoursecontentallowed',
new lang_string('downloadcoursecontentallowed', 'admin'),
new lang_string('downloadcoursecontentallowed_desc', 'admin', $downloadcoursedefaulturl->out()), 0));
list($communicationproviders, $defaulprovider) = \core_communication\api::
get_enabled_providers_and_default();
// 50MB default maximum size per file when downloading course content.
$defaultmaxdownloadsize = 50 * filesize::UNIT_MB;
$temp->add(new filesize('maxsizeperdownloadcoursefile', new lang_string('maxsizeperdownloadcoursefile', 'admin'),
new lang_string('maxsizeperdownloadcoursefile_desc', 'admin'), $defaultmaxdownloadsize, filesize::UNIT_MB));
$temp->hide_if('maxsizeperdownloadcoursefile', 'downloadcoursecontentallowed');
$temp->add(new admin_setting_configselect('moodlecourse/coursecommunicationprovider',
new lang_string('selectcommunicationprovider', 'communication'),
new lang_string('coursecommunication_desc', 'course'),
$defaulprovider, $communicationproviders));
$ADMIN->add('courses', $temp);
// "courserequests" settingpage.
$temp = new admin_settingpage('courserequest', new lang_string('courserequest'));
$temp->add(new admin_setting_configcheckbox('enablecourserequests',
new lang_string('enablecourserequests', 'admin'),
new lang_string('configenablecourserequests', 'admin'), 1));
$temp->add(new admin_settings_coursecat_select('defaultrequestcategory',
new lang_string('defaultrequestcategory', 'admin'),
new lang_string('configdefaultrequestcategory', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('lockrequestcategory',
new lang_string('lockrequestcategory', 'admin'),
new lang_string('configlockrequestcategory', 'admin'), 0));
$temp->add(new admin_setting_users_with_capability('courserequestnotify', new lang_string('courserequestnotify', 'admin'), new lang_string('configcourserequestnotify2', 'admin'), array(), 'moodle/site:approvecourse'));
$ADMIN->add('courses', $temp);
// Pending course requests.
if (!empty($CFG->enablecourserequests)) {
$ADMIN->add('courses', new admin_externalpage('coursespending', new lang_string('pendingrequests'),
$CFG->wwwroot . '/course/pending.php', array('moodle/site:approvecourse')));
$ADMIN->add('coursedefaultsettings', $temp);
if (!empty($CFG->enablecompletion)) {
$ADMIN->add('coursedefaultsettings', new admin_externalpage(
'sitedefaultcompletion',
new lang_string('defaultcompletion', 'completion'),
new moodle_url('/course/defaultcompletion.php', ['id' => $SITE->id]),
['moodle/course:manageactivities'])
);
}
$ADMIN->add('coursedefaultsettings', new admin_externalpage(
'course_customfield',
new lang_string('course_customfield', 'admin'),
$CFG->wwwroot . '/course/customfield.php',
['moodle/course:configurecustomfields'])
);
$temp = new admin_settingpage('activitychoosersettings', new lang_string('activitychoosersettings', 'course'));
// Tab mode for the activity chooser.
$temp->add(
new admin_setting_configselect(
'activitychoosertabmode',
new lang_string('activitychoosertabmode', 'course'),
new lang_string('activitychoosertabmode_desc', 'course'),
3,
[
3 => new lang_string('activitychoosertabmodefour', 'course'),
4 => new lang_string('activitychoosertabmodefive', 'course'),
5 => new lang_string('activitychoosertabmodesix', 'course'),
0 => new lang_string('activitychoosertabmodeone', 'course'),
1 => new lang_string('activitychoosertabmodetwo', 'course'),
2 => new lang_string('activitychoosertabmodethree', 'course'),
]
)
);
// Add a category for the Groups.
$ADMIN->add('courses', new admin_category('groups', new lang_string('groups')));
$ADMIN->add(
'groups',
new admin_externalpage(
'group_customfield',
new lang_string('group_customfield', 'admin'),
$CFG->wwwroot . '/group/customfield.php',
['moodle/group:configurecustomfields']
)
);
$ADMIN->add(
'groups',
new admin_externalpage(
'grouping_customfield',
new lang_string('grouping_customfield', 'admin'),
$CFG->wwwroot . '/group/grouping_customfield.php',
['moodle/group:configurecustomfields']
)
);
// Add a category for the Activity Chooser.
$ADMIN->add('courses', new admin_category('activitychooser', new lang_string('activitychoosercategory', 'course')));
+8
View File
@@ -38,6 +38,11 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
new lang_string('enablesharingtomoodlenet', 'core_admin'),
new lang_string('enablesharingtomoodlenet_desc', 'core_admin'), 0));
// New communication subsystem setting.
$temp->add(new admin_setting_configcheckbox('enablecommunicationsubsystem',
new lang_string('enablecommunicationsubsystem', 'core_admin'),
new lang_string('enablecommunicationsubsystem_desc', 'core_admin'), 0));
$ADMIN->add('experimental', $temp);
// "debugging" settingpage
@@ -116,4 +121,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
"$CFG->wwwroot/$CFG->admin/purgecaches.php"));
$ADMIN->add('development', new admin_externalpage('thirdpartylibs', new lang_string('thirdpartylibs','admin'), "$CFG->wwwroot/$CFG->admin/thirdpartylibs.php"));
$ADMIN->add('development', new admin_externalpage('hooksoverview',
new lang_string('hooksoverview', 'admin'), "$CFG->wwwroot/$CFG->admin/hooks.php"));
} // end of speedup
+14
View File
@@ -41,4 +41,18 @@ if (!empty($defaulth5plib)) {
$settings->add(new admin_settings_h5plib_handler_select('h5plibraryhandler', new lang_string('h5plibraryhandler', 'core_h5p'),
new lang_string('h5plibraryhandler_help', 'core_h5p'), $defaulth5plib));
$setting = new admin_setting_configtextarea(
'core_h5p/h5pcustomcss',
new lang_string('h5pcustomcss', 'core_h5p'),
new lang_string('h5pcustomcss_help', 'core_h5p'),
'',
PARAM_NOTAGS
);
$setting->set_updatedcallback(function () {
// Enables use of file_storage constants.
\core_h5p\local\library\autoloader::register();
\core_h5p\file_storage::generate_custom_styles();
});
$settings->add($setting);
}
+25
View File
@@ -116,6 +116,17 @@ if ($hassiteconfig) {
$temp->add($setting);
$temp->add(new admin_setting_configcheckbox('verifychangedemail', new lang_string('verifychangedemail', 'admin'), new lang_string('configverifychangedemail', 'admin'), 1));
// ReCaptcha.
$temp->add(new admin_setting_configselect('enableloginrecaptcha',
new lang_string('auth_loginrecaptcha', 'auth'),
new lang_string('auth_loginrecaptcha_desc', 'auth'),
0,
[
new lang_string('no'),
new lang_string('yes'),
],
));
$setting = new admin_setting_configtext('recaptchapublickey', new lang_string('recaptchapublickey', 'admin'), new lang_string('configrecaptchapublickey', 'admin'), '', PARAM_NOTAGS);
$setting->set_force_ltr(true);
$temp->add($setting);
@@ -781,6 +792,20 @@ if ($hassiteconfig) {
}
}
// Communication plugins.
if ($hassiteconfig && core_communication\api::is_available()) {
$ADMIN->add('modules', new admin_category('communicationsettings', new lang_string('communication', 'core_communication')));
$temp = new admin_settingpage('managecommunicationproviders',
new lang_string('managecommunicationproviders', 'core_communication'));
$temp->add(new \core_communication\admin\manage_communication_providers_page());
$ADMIN->add('communicationsettings', $temp);
$plugins = core_plugin_manager::instance()->get_plugins_of_type('communication');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\communication $plugin */
$plugin->load_settings($ADMIN, 'communicationsettings', $hassiteconfig);
}
}
// Content bank content types.
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('contentbanksettings', new lang_string('contentbank')));
+4 -3
View File
@@ -145,14 +145,16 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_heading('adminpresets', new lang_string('siteadminpresetspluginname', 'core_adminpresets'), ''));
$sensiblesettingsdefault = 'recaptchapublickey@@none, recaptchaprivatekey@@none, googlemapkey3@@none, ';
$sensiblesettingsdefault .= 'secretphrase@@url, cronremotepassword@@none, smtpuser@@none, ';
$sensiblesettingsdefault .= 'smtppass@none, proxypassword@@none, quizpassword@@quiz, allowedip@@none, blockedip@@none, ';
$sensiblesettingsdefault .= 'smtppass@@none, proxypassword@@none, quizpassword@@quiz, allowedip@@none, blockedip@@none, ';
$sensiblesettingsdefault .= 'dbpass@@logstore_database, messageinbound_hostpass@@none, ';
$sensiblesettingsdefault .= 'bind_pw@@auth_cas, pass@@auth_db, bind_pw@@auth_ldap, ';
$sensiblesettingsdefault .= 'dbpass@@enrol_database, bind_pw@@enrol_ldap, ';
$sensiblesettingsdefault .= 'server_password@@search_solr, ssl_keypassword@@search_solr, ';
$sensiblesettingsdefault .= 'alternateserver_password@@search_solr, alternatessl_keypassword@@search_solr, ';
$sensiblesettingsdefault .= 'test_password@@cachestore_redis, password@@mlbackend_python, ';
$sensiblesettingsdefault .= 'badges_badgesalt@@none, calendar_exportsalt@@none';
$sensiblesettingsdefault .= 'badges_badgesalt@@none, calendar_exportsalt@@none, ';
$sensiblesettingsdefault .= 'bigbluebuttonbn_shared_secret@@none, apikey@@tiny_premium, ';
$sensiblesettingsdefault .= 'matrixaccesstoken@@communication_matrix';
$temp->add(new admin_setting_configtextarea('adminpresets/sensiblesettings',
get_string('sensiblesettings', 'core_adminpresets'),
get_string('sensiblesettingstext', 'core_adminpresets'),
@@ -164,7 +166,6 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp = new admin_settingpage('httpsecurity', new lang_string('httpsecurity', 'admin'));
$temp->add(new admin_setting_configcheckbox('cookiesecure', new lang_string('cookiesecure', 'admin'), new lang_string('configcookiesecure', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('cookiehttponly', new lang_string('cookiehttponly', 'admin'), new lang_string('configcookiehttponly', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowframembedding', new lang_string('allowframembedding', 'admin'), new lang_string('allowframembedding_help', 'admin'), 0));
// Settings elements used by the \core\files\curl_security_helper class.
+11 -1
View File
@@ -453,6 +453,12 @@ if ($hassiteconfig) {
// Outgoing mail configuration.
$temp = new admin_settingpage('outgoingmailconfig', new lang_string('outgoingmailconfig', 'admin'));
if (!empty($CFG->noemailever)) {
$noemaileverwarning = new \core\output\notification(get_string('noemaileverwarning', 'admin'),
\core\output\notification::NOTIFY_ERROR);
$temp->add(new admin_setting_heading('outgoingmaildisabled', '', $OUTPUT->render($noemaileverwarning)));
}
$temp->add(new admin_setting_heading('smtpheading', new lang_string('smtp', 'admin'),
new lang_string('smtpdetail', 'admin')));
@@ -516,8 +522,12 @@ if ($hassiteconfig) {
$temp->add(new admin_setting_heading('noreplydomainheading', new lang_string('noreplydomain', 'admin'),
new lang_string('noreplydomaindetail', 'admin')));
$default = clean_param('noreply@' . get_host_from_url($CFG->wwwroot), PARAM_EMAIL);
if (!$default) {
$default = null;
}
$temp->add(new admin_setting_configtext('noreplyaddress', new lang_string('noreplyaddress', 'admin'),
new lang_string('confignoreplyaddress', 'admin'), 'noreply@' . get_host_from_url($CFG->wwwroot), PARAM_EMAIL));
new lang_string('confignoreplyaddress', 'admin'), $default, PARAM_EMAIL));
$temp->add(new admin_setting_configtextarea('allowedemaildomains',
new lang_string('allowedemaildomains', 'admin'),
-2
View File
@@ -31,8 +31,6 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
1 => get_string('completionactivitydefault', 'completion'),
0 => get_string('completion_none', 'completion')
);
$optionalsubsystems->add(new admin_setting_configselect('completiondefault', new lang_string('completiondefault', 'completion'),
new lang_string('configcompletiondefault', 'completion'), 1, $options));
$optionalsubsystems->add($checkbox = new admin_setting_configcheckbox('enableavailability',
new lang_string('enableavailability', 'availability'),
@@ -38,6 +38,6 @@
}
}}
<div class="form-checkbox defaultsnext">
<input type="hidden" name="{{name}}" value="{{no}}">
{{^readonly}}<input type="hidden" name="{{name}}" value="{{no}}">{{/readonly}}
<input {{#readonly}}disabled{{/readonly}} type="checkbox" name="{{name}}" value="{{value}}" id="{{id}}" {{#checked}}checked{{/checked}}>
</div>
@@ -23,21 +23,24 @@
* name - form element name
* hasoptions - there are some options
* options - list of options containing name, key, id, checked, label
* readonly - bool
Example context (json):
{
"name": "test",
"hasoptions": true,
"options": [ { "name": "Option", "key": "k1", "id": "id0", "checked": true, "label": "Option label"} ]
"options": [ { "name": "Option", "key": "k1", "id": "id0", "checked": true, "label": "Option label"} ],
"readonly": false
}
}}
<div class="form-multicheckbox">
<input type="hidden" name="{{name}}[xxxxx]" value="1">
{{^readonly}}<input type="hidden" name="{{name}}[xxxxx]" value="1">{{/readonly}}
{{#hasoptions}}
<ul>
{{#options}}
<li>
<input type="checkbox" name="{{name}}[{{key}}]" value="1" id="{{id}}_{{key}}" {{#checked}}checked{{/checked}}>
<input type="checkbox" name="{{name}}[{{key}}]" value="1" id="{{id}}_{{key}}" {{#readonly}}disabled{{/readonly}} {{#checked}}checked{{/checked}}>
<label for="{{id}}_{{key}}">{{{label}}}</label>
</li>
{{/options}}
@@ -40,7 +40,7 @@
Setting configmultiselect.
}}
<div class="form-select">
<input type="hidden" name="{{name}}[xxxxx]" value="1">
{{^readonly}}<input type="hidden" name="{{name}}[xxxxx]" value="1">{{/readonly}}
<select {{#readonly}}disabled{{/readonly}} id="{{id}}" name="{{name}}[]" size="{{size}}" class="form-control" multiple>
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
@@ -59,7 +59,7 @@
Setting configmultiselect with optgroup support.
}}
<div class="form-select">
<input type="hidden" name="{{name}}[xxxxx]" value="1">
{{^readonly}}<input type="hidden" name="{{name}}[xxxxx]" value="1">{{/readonly}}
<select {{#readonly}}disabled{{/readonly}} id="{{id}}" name="{{name}}[]" size="{{size}}" class="form-control" multiple>
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
@@ -15,6 +15,8 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@deprecated since Moodle 4.3
@todo Final deprecation on Moodle 4.7 MDL-79052
@template core_admin/setting_devicedetectregex
Admin devicedetectregex setting template.
@@ -0,0 +1,47 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/webservice_token_new
This is the template for displaying the newly created webservice token.
Context variable required for this template:
* token - Token value
Example context (json):
{
"token": "ef9ee4d0c6eed5eab8453a63b93b5b8b"
}
}}
<div class="d-inline-block">
<div class="alert alert-warning">
<div class="lead">{{#str}}tokennewmessage, webservice{{/str}}</div>
</div>
<div class="alert alert-primary">
<div class="lead">{{tokenname}}</div>
<div class="d-flex justify-content-start align-middle">
<div class="lead text-break pt-1" id="copytoclipboardtoken">{{token}}</div>
<button class="btn btn-primary ml-2" data-action="copytoclipboard" data-clipboard-target="#copytoclipboardtoken" data-clipboard-success-message="{{#str}}tokencopied, webservice{{/str}}">
{{#pix}}t/copy, core {{/pix}}{{#str}}copytoclipboard{{/str}}</button>
</div>
</div>
</div>
{{#js}}
require(['core/copy_to_clipboard']);
{{/js}}
+6
View File
@@ -40,6 +40,12 @@ if ($form->is_cancelled()) {
echo $OUTPUT->header();
echo $OUTPUT->heading($headingtitle);
// Displaying noemailever warning.
if (!empty($CFG->noemailever)) {
$msg = get_string('noemaileverwarning', 'admin');
echo $OUTPUT->notification($msg, \core\output\notification::NOTIFY_ERROR);
}
$data = $form->get_data();
if ($data) {
$emailuser = new stdClass();
+2 -2
View File
@@ -56,7 +56,7 @@ Feature: Staff can assign user roles
Scenario: Enrol at activity level using custom field search
When I am on the "page1" "Activity" page logged in as "admin"
And I navigate to "Permissions" in current page administration
And I select "Locally assigned roles" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "Locally assigned roles"
And I follow "Teacher"
And I set the field "addselect_searchtext" to "Kermit"
# The Behat 'I should see' step doesn't work for optgroup labels.
@@ -72,7 +72,7 @@ Feature: Staff can assign user roles
| user1 | editingteacher | Activity module | page1 |
When I am on the "page1" "Activity" page logged in as "admin"
And I navigate to "Permissions" in current page administration
And I select "Locally assigned roles" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "Locally assigned roles"
And I follow "Teacher"
And I set the field "removeselect_searchtext" to "Kermit"
# The Behat 'I should see' step doesn't work for optgroup labels.
+3 -3
View File
@@ -18,7 +18,7 @@ Feature: An administrator can browse user accounts
When I navigate to "Users > Accounts > Browse list of users" in site administration
# Name field always present, email field is default for showidentity.
Then the following should exist in the "users" table:
| First name / Last name | Email address |
| First name | Email address |
| User One | one@example.com |
| User Two | two@example.com |
# Should not see other identity fields or non-default name fields.
@@ -34,7 +34,7 @@ Feature: An administrator can browse user accounts
| alternativefullnameformat | firstnamephonetic lastname |
When I navigate to "Users > Accounts > Browse list of users" in site administration
Then the following should exist in the "users" table:
| First name - phonetic / Last name | Email address |
| First name - phonetic | Email address |
| Yewzer One | one@example.com |
| Yoozare Two | two@example.com |
@@ -43,7 +43,7 @@ Feature: An administrator can browse user accounts
| showuseridentity | department,profile_field_frog |
When I navigate to "Users > Accounts > Browse list of users" in site administration
Then the following should exist in the "users" table:
| First name / Last name | Favourite frog | Department |
| First name | Favourite frog | Department |
| User One | Kermit | Attack |
| User Two | Tree | Defence |
And I should not see "Email address" in the "table" "css_element"
+2 -2
View File
@@ -28,7 +28,7 @@ Feature: Staff can check user permissions
@javascript
Scenario: Search for a user (enrolled on the course) by custom field and select them to see permissions
When I am on the "C1" "permissions" page logged in as "admin"
And I select "Check permissions" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "Check permissions"
And I set the field "Search" to "Kermit"
# The Behat 'I should see' step doesn't work for optgroup labels.
Then "optgroup[label='Matching enrolled users (1)']" "css_element" should exist
@@ -42,7 +42,7 @@ Feature: Staff can check user permissions
@javascript
Scenario: Search for a user (not enrolled on the course) by custom field and select them to see permissions
When I am on the "C1" "permissions" page logged in as "admin"
And I select "Check permissions" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "Check permissions"
And I set the field "Search" to "Kermit"
# The Behat 'I should see' step doesn't work for optgroup labels.
Then "optgroup[label*='Potential users matching'][label*=' (1)']" "css_element" should exist
+36 -9
View File
@@ -19,19 +19,32 @@ Feature: Manage external services tokens
And I am on site homepage
And I navigate to "Server > Web services > Manage tokens" in site administration
And I press "Create token"
And I set the field "Name" to "Webservice1"
And I set the field "User" to "Firstname1 Lastname1"
And I set the field "Service" to "Moodle mobile web service"
And I set the field "IP restriction" to "127.0.0.1"
When I press "Save changes"
Then I should see "Moodle mobile web service" in the "Firstname1 Lastname1" "table_row"
And I should see "127.0.0.1" in the "Firstname1 Lastname1" "table_row"
And I click on "Delete" "link" in the "Firstname1 Lastname1" "table_row"
Then the following should exist in the "generaltable" table:
| Name | First name | Service | IP restriction | Last access |
| Webservice1 | Firstname1 Lastname1 | Moodle mobile web service | 127.0.0.1 | Never |
# Verify the message and the "Copy to clipboard" button.
And I should see "Copy the token now. It won't be shown again once you leave this page."
And "Copy to clipboard" "button" should exist
# New token can only read once.
And I reload the page
And I should not see "Copy the token now. It won't be shown again once you leave this page."
And "Copy to clipboard" "button" should not exist
# Delete token.
And I click on "Delete" "link" in the "Webservice1" "table_row"
And I should see "Do you really want to delete this web service token for Firstname1 Lastname1 on the service Moodle mobile web service?"
And I press "Delete"
And "Firstname1 Lastname1" "table_row" should not exist
And "Webservice1" "table_row" should not exist
@javascript @skip_chrome_zerosize
Scenario: Tokens can be filtered by user and by service
Scenario: Tokens can be filtered by name (case-insensitive), by user and by service
Given the following "core_webservice > Service" exists:
| name | Site information |
| shortname | siteinfo |
@@ -40,10 +53,10 @@ Feature: Manage external services tokens
| service | siteinfo |
| functions | core_webservice_get_site_info |
And the following "core_webservice > Tokens" exist:
| user | service |
| user2 | siteinfo |
| user3 | moodle_mobile_app |
| user4 | siteinfo |
| user | service | name |
| user2 | siteinfo | WEBservice1 |
| user3 | moodle_mobile_app | webservicE3 |
| user4 | siteinfo | New service2 |
When I log in as "admin"
And I navigate to "Server > Web services > Manage tokens" in site administration
@@ -53,6 +66,20 @@ Feature: Manage external services tokens
And I should see "Moodle mobile web service" in the "Firstname3 Lastname3" "table_row"
And I should see "Site information" in the "Firstname4 Lastname4" "table_row"
# Filter tokens by by name (case-insensitive).
And I click on "Tokens filter" "link"
And I set the field "Name" to "webservice"
And I press "Show only matching tokens"
And I should see "Site information" in the "Firstname2 Lastname2" "table_row"
And I should see "Moodle mobile web service" in the "Firstname3 Lastname3" "table_row"
And "Firstname4 Lastname4" "table_row" should not exist
# Reset the filter.
And I press "Show all tokens"
And I should see "Site information" in the "Firstname2 Lastname2" "table_row"
And I should see "Moodle mobile web service" in the "Firstname3 Lastname3" "table_row"
And I should see "Site information" in the "Firstname4 Lastname4" "table_row"
# Filter tokens by user (note we can select the user by the identity field here).
When I click on "Tokens filter" "link"
And I set the field "User" to "user2@example.com"
+11 -11
View File
@@ -56,12 +56,12 @@ Feature: Reset course indentation
Scenario Outline: Apply course indentation reset
Given I navigate to "Plugins > Course formats > <format> format" in site administration
And I wait "5" seconds
And "Reset indentation" "link" should exist
When I click on "Reset indentation" "link"
And I should see "Reset indentation on course page"
And "Reset indentation" "button" should exist
And I click on "Reset indentation" "button"
Then I should see "Indentation reset"
And "Reset indentation sitewide" "link" should exist
When I click on "Reset indentation sitewide" "link"
And I should see "Reset indentation sitewide"
And "Reset indentation sitewide" "button" should exist
And I click on "Reset indentation sitewide" "button"
Then I should see "Indentation reset."
And I am on "<format> Course 1" course homepage with editing mode on
And I open "<format> forum name" actions menu
And "Move right" "link" in the "<format> forum name" "activity" should be visible
@@ -87,13 +87,13 @@ Feature: Reset course indentation
Scenario Outline: Cancel course indentation reset
Given I navigate to "Plugins > Course formats > <format> format" in site administration
And "Reset indentation" "link" should exist
When I click on "Reset indentation" "link"
And I should see "Reset indentation on course page"
And "Reset indentation" "button" should exist
And "Reset indentation sitewide" "link" should exist
When I click on "Reset indentation sitewide" "link"
And I should see "Reset indentation sitewide"
And "Reset indentation sitewide" "button" should exist
And "Cancel" "button" should exist
And I click on "Cancel" "button"
Then I should not see "Indentation reset"
Then I should not see "Indentation reset."
And I am on "<format> Course 1" course homepage with editing mode on
And I open "<format> forum name" actions menu
And "Move right" "link" in the "<format> forum name" "activity" should not be visible
-22
View File
@@ -48,25 +48,3 @@ Feature: View task logs report and use its filters
| operator | shouldornotsee |
| Less than | should not see |
| Greater than | should see |
@javascript
Scenario: Reset task log filters
Given I log in as "admin"
And I change window size to "large"
And I navigate to "Server > Tasks > Task logs" in site administration
When I click on "Filters" "button"
And I set the following fields in the "Result" "core_reportbuilder > Filter" to these values:
| Result operator | Is equal to |
| Result value | Fail |
And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
Then I should see "Filters applied"
And I should see "Filters (1)" in the "#dropdownFiltersButton" "css_element"
And I should see "Nothing to display"
And I click on "Reset all" "button" in the "[data-region='report-filters']" "css_element"
And I should see "Filters reset"
And I should not see "Filters (1)" in the "#dropdownFiltersButton" "css_element"
And I should see "Filters" in the "#dropdownFiltersButton" "css_element"
And "[data-region='report-filters']" "css_element" should be visible
And the following fields in the "Result" "core_reportbuilder > Filter" match these values:
| Result operator | Is any value |
And I should not see "Nothing to display"
+18 -12
View File
@@ -73,27 +73,35 @@ class set_plugin_order_test extends \externallib_advanced_testcase {
* @return array
*/
public function execute_editor_provider(): array {
$pluginmanager = \core_plugin_manager::instance();
$allplugins = array_keys($pluginmanager->get_plugins_of_type('editor'));
// Disabled editors are listed alphabetically at the end.
$getorder = function (array $plugins) use ($allplugins) {
return array_merge(
$plugins,
array_diff($allplugins, array_values($plugins)),
);
};
return [
[
'initialstate' => 'textarea,tiny',
'pluginname' => 'editor_textarea',
'direction' => 1, // DOWN.
'expected' => [
'expected' => $getorder([
'tiny',
'textarea',
'atto',
],
]),
'newtexteditors' => 'tiny,textarea',
],
[
'initialstate' => 'textarea,tiny',
'pluginname' => 'editor_textarea',
'direction' => -1, // UP.
'expected' => [
'expected' => $getorder([
'textarea',
'tiny',
'atto',
],
]),
'newtexteditors' => 'textarea,tiny',
],
[
@@ -101,11 +109,10 @@ class set_plugin_order_test extends \externallib_advanced_testcase {
'pluginname' => 'editor_tiny',
'direction' => 1, // DOWN.
// Tiny is already at the bottom of the list of enabled plugins.
'expected' => [
'expected' => $getorder([
'textarea',
'tiny',
'atto',
],
]),
'newtexteditors' => 'textarea,tiny',
],
[
@@ -113,11 +120,10 @@ class set_plugin_order_test extends \externallib_advanced_testcase {
'pluginname' => 'editor_atto',
'direction' => 1, // DOWN.
// Atto is not enabled. Disabled editors are listed lexically after enabled editors.
'expected' => [
'expected' => $getorder([
'textarea',
'tiny',
'atto',
],
]),
'newtexteditors' => 'textarea,tiny',
],
];
@@ -46,17 +46,24 @@ class task_logs_test extends core_reportbuilder_testcase {
$this->resetAfterTest();
$this->generate_task_log_data(true, 3, 2, 1654038000, 1654038060);
$this->generate_task_log_data(false, 5, 1, 1654556400, 1654556700);
/** @var core_reportbuilder_generator $generator */
$generator = $this->getDataGenerator()->get_plugin_generator('core_reportbuilder');
$report = $generator->create_report(['name' => 'Tasks', 'source' => task_logs::class, 'default' => 1]);
$content = $this->get_custom_report_content($report->get('id'));
$this->assertCount(1, $content);
$this->assertCount(2, $content);
// Default columns are name, starttime, duration, result.
// Default columns are name, start time, duration, result. Sorted by start time descending.
[$name, $timestart, $duration, $result] = array_values($content[0]);
$this->assertStringContainsString(send_schedules::class, $name);
$this->assertEquals('7/06/22, 07:00:00', $timestart);
$this->assertEquals('5 mins', $duration);
$this->assertEquals('Fail', $result);
[$name, $timestart, $duration, $result] = array_values($content[1]);
$this->assertStringContainsString(send_schedules::class, $name);
$this->assertEquals('1/06/22, 07:00:00', $timestart);
$this->assertEquals('1 min', $duration);
$this->assertEquals('Success', $result);
@@ -42,8 +42,8 @@ class import_form extends moodleform {
$mform->setType('name', PARAM_TEXT);
// File upload.
$mform->addElement('filepicker', 'xmlfile',
get_string('selectfile', 'tool_admin_presets'));
$mform->addElement('filepicker', 'xmlfile', get_string('selectfile', 'tool_admin_presets'), null,
['accepted_types' => ['.xml']]);
$mform->addRule('xmlfile', null, 'required');
$this->add_action_buttons(true, get_string('import', 'tool_admin_presets'));
@@ -16,6 +16,7 @@
namespace tool_admin_presets\local\action;
use core_adminpresets\manager;
use moodle_exception;
/**
@@ -34,8 +35,8 @@ class delete extends base {
public function show(): void {
global $DB, $OUTPUT;
// Getting the preset name.
$presetdata = $DB->get_record('adminpresets', ['id' => $this->id], 'name');
// Check the preset exists (cannot delete the pre-installed core "Starter" and "Full" presets).
$presetdata = $DB->get_record('adminpresets', ['id' => $this->id, 'iscore' => manager::NONCORE_PRESET], 'name');
if ($presetdata) {
$deletetext = get_string('deletepreset', 'tool_admin_presets', $presetdata->name);
@@ -64,7 +65,7 @@ class delete extends base {
* Delete the DB preset
*/
public function execute(): void {
confirm_sesskey();
require_sesskey();
$this->manager->delete_preset($this->id);
@@ -52,8 +52,6 @@ class export extends base {
* Stores a preset into the DB.
*/
public function execute(): void {
confirm_sesskey();
$url = new \moodle_url('/admin/tool/admin_presets/index.php', ['action' => 'export', 'mode' => 'execute']);
$this->moodleform = new export_form($url);
@@ -87,7 +85,7 @@ class export extends base {
* @throws xml_writer_exception
*/
public function download_xml(): void {
confirm_sesskey();
require_sesskey();
list($xmlstr, $filename) = $this->manager->download_preset($this->id);
@@ -40,8 +40,6 @@ class import extends base {
* Imports the xmlfile into DB
*/
public function execute(): void {
confirm_sesskey();
$url = new \moodle_url('/admin/tool/admin_presets/index.php', ['action' => 'import', 'mode' => 'execute']);
$this->moodleform = new import_form($url);
@@ -38,8 +38,6 @@ class load extends base {
public function execute(): void {
global $OUTPUT;
confirm_sesskey();
$url = new \moodle_url('/admin/tool/admin_presets/index.php', ['action' => 'load', 'mode' => 'execute']);
$this->moodleform = new load_form($url);
@@ -73,7 +73,7 @@ class rollback extends base {
public function execute(): void {
global $OUTPUT;
confirm_sesskey();
require_sesskey();
list($presetapp, $rollback, $failures) = $this->manager->revert_preset($this->id);
@@ -5,16 +5,18 @@ Feature: I can download a preset
| name |
| Custom preset |
@javascript
Scenario: Custom preset settings can be downloaded
Given I log in as "admin"
And I navigate to "Site admin presets" in site administration
When I open the action menu in "Custom preset" "table_row"
Then following "Download" "link" in the "Custom preset" "table_row" should download between "0" and "5000" bytes
Then following "Download" in the "Custom preset" "table_row" should download a file that:
| Has mimetype | text/xml |
| Contains text in xml element | Custom preset |
@javascript
Scenario: Core preset settings can be downloaded
Given I log in as "admin"
And I navigate to "Site admin presets" in site administration
When I open the action menu in "Starter" "table_row"
Then following "Download" "link" in the "Starter" "table_row" should download between "0" and "5000" bytes
Then following "Download" in the "Starter" "table_row" should download a file that:
| Has mimetype | text/xml |
| Contains text in xml element | Starter |
+2 -2
View File
@@ -26,5 +26,5 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'tool_admin_presets';
$plugin->version = 2023042400;
$plugin->requires = 2023041800;
$plugin->version = 2023100900;
$plugin->requires = 2023100400;
+7 -7
View File
@@ -1,10 +1,10 @@
define("tool_analytics/log_info",["exports","core/modal","core/str"],(function(_exports,_modal,_str){var obj;
/**
* Shows a dialogue with info about this logs.
*
* @module tool_analytics/log_info
* @copyright 2017 David Monllao {@link http://www.davidmonllao.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define("tool_analytics/log_info",["jquery","core/str","core/modal_factory","core/notification"],(function($,str,ModalFactory,Notification){return{loadInfo:function(id,info){var link=$('[data-model-log-id="'+id+'"]');str.get_string("loginfo","tool_analytics").then((function(langString){var bodyInfo=$("<ul>");return info.forEach((function(item){bodyInfo.append("<li>"+item+"</li>")})),bodyInfo.append("</ul>"),ModalFactory.create({title:langString,body:bodyInfo.html(),large:!0},link)})).catch(Notification.exception)}}}));
* Shows a dialogue with info about this logs.
*
* @module tool_analytics/log_info
* @copyright 2017 David Monllao {@link http://www.davidmonllao.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.loadInfo=void 0,_modal=(obj=_modal)&&obj.__esModule?obj:{default:obj};_exports.loadInfo=(id,info)=>{document.addEventListener("click",(e=>{if(!e.target.closest('[data-model-log-id="'.concat(id,'"]')))return;e.preventDefault();const bodyInfo=document.createElement("ul");info.forEach((item=>{const li=document.createElement("li");li.innerHTML=item,bodyInfo.append(li)})),_modal.default.create({title:(0,_str.get_string)("loginfo","tool_analytics"),body:bodyInfo.outerHTML,large:!0,show:!0,removeOnClose:!0})}))}}));
//# sourceMappingURL=log_info.min.js.map
@@ -1 +1 @@
{"version":3,"file":"log_info.min.js","sources":["../src/log_info.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see <http://www.gnu.org/licenses/>.\n\n/**\n * Shows a dialogue with info about this logs.\n *\n * @module tool_analytics/log_info\n * @copyright 2017 David Monllao {@link http://www.davidmonllao.com}\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\ndefine(['jquery', 'core/str', 'core/modal_factory', 'core/notification'], function($, str, ModalFactory, Notification) {\n\n return /** @alias module:tool_analytics/log_info */ {\n\n /**\n * Prepares a modal info for a log's results.\n *\n * @method loadInfo\n * @param {int} id\n * @param {string[]} info\n */\n loadInfo: function(id, info) {\n\n var link = $('[data-model-log-id=\"' + id + '\"]');\n str.get_string('loginfo', 'tool_analytics').then(function(langString) {\n\n var bodyInfo = $(\"<ul>\");\n info.forEach(function(item) {\n bodyInfo.append('<li>' + item + '</li>');\n });\n bodyInfo.append(\"</ul>\");\n\n return ModalFactory.create({\n title: langString,\n body: bodyInfo.html(),\n large: true,\n }, link);\n\n }).catch(Notification.exception);\n }\n };\n});\n"],"names":["define","$","str","ModalFactory","Notification","loadInfo","id","info","link","get_string","then","langString","bodyInfo","forEach","item","append","create","title","body","html","large","catch","exception"],"mappings":";;;;;;;AAsBAA,iCAAO,CAAC,SAAU,WAAY,qBAAsB,sBAAsB,SAASC,EAAGC,IAAKC,aAAcC,oBAEjD,CAShDC,SAAU,SAASC,GAAIC,UAEfC,KAAOP,EAAE,uBAAyBK,GAAK,MAC3CJ,IAAIO,WAAW,UAAW,kBAAkBC,MAAK,SAASC,gBAElDC,SAAWX,EAAE,eACjBM,KAAKM,SAAQ,SAASC,MAClBF,SAASG,OAAO,OAASD,KAAO,YAEpCF,SAASG,OAAO,SAETZ,aAAaa,OAAO,CACvBC,MAAON,WACPO,KAAMN,SAASO,OACfC,OAAO,GACRZ,SAEJa,MAAMjB,aAAakB"}
{"version":3,"file":"log_info.min.js","sources":["../src/log_info.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see <http://www.gnu.org/licenses/>.\n\n/**\n * Shows a dialogue with info about this logs.\n *\n * @module tool_analytics/log_info\n * @copyright 2017 David Monllao {@link http://www.davidmonllao.com}\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\nimport Modal from 'core/modal';\nimport {get_string as getString} from 'core/str';\n\n/**\n * Prepares a modal info for a log's results.\n *\n * @param {Number} id\n * @param {string[]} info\n */\nexport const loadInfo = (id, info) => {\n document.addEventListener('click', (e) => {\n const link = e.target.closest(`[data-model-log-id=\"${id}\"]`);\n if (!link) {\n return;\n }\n e.preventDefault();\n const bodyInfo = document.createElement('ul');\n info.forEach((item) => {\n const li = document.createElement('li');\n li.innerHTML = item;\n bodyInfo.append(li);\n });\n\n Modal.create({\n title: getString('loginfo', 'tool_analytics'),\n body: bodyInfo.outerHTML,\n large: true,\n show: true,\n removeOnClose: true,\n });\n });\n};\n"],"names":["id","info","document","addEventListener","e","target","closest","preventDefault","bodyInfo","createElement","forEach","item","li","innerHTML","append","create","title","body","outerHTML","large","show","removeOnClose"],"mappings":";;;;;;;8JA+BwB,CAACA,GAAIC,QACzBC,SAASC,iBAAiB,SAAUC,QACnBA,EAAEC,OAAOC,sCAA+BN,iBAIrDI,EAAEG,uBACIC,SAAWN,SAASO,cAAc,MACxCR,KAAKS,SAASC,aACJC,GAAKV,SAASO,cAAc,MAClCG,GAAGC,UAAYF,KACfH,SAASM,OAAOF,sBAGdG,OAAO,CACTC,OAAO,mBAAU,UAAW,kBAC5BC,KAAMT,SAASU,UACfC,OAAO,EACPC,MAAM,EACNC,eAAe"}
+1 -1
View File
@@ -5,6 +5,6 @@
* @copyright 2017 David Monllao
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define("tool_analytics/model",["jquery","core/str","core/log","core/notification","core/modal_factory","core/modal_events","core/templates"],(function($,Str,log,Notification,ModalFactory,ModalEvents,Templates){var actionsList={clear:{title:{key:"clearpredictions",component:"tool_analytics"},body:{key:"clearmodelpredictions",component:"tool_analytics"}},delete:{title:{key:"delete",component:"tool_analytics"},body:{key:"deletemodelconfirmation",component:"tool_analytics"}}};return{confirmAction:function(actionId,actionType){$('[data-action-id="'+actionId+'"]').on("click",(function(ev){ev.preventDefault();var a=$(ev.currentTarget);if(void 0!==actionsList[actionType]){var wrap,reqStrings=[actionsList[actionType].title,actionsList[actionType].body];reqStrings[1].param=(wrap=$(a).closest("[data-model-name]")).length?wrap.attr("data-model-name"):(log.error("Unexpected DOM error - unable to obtain the model name"),"");var stringsPromise=Str.get_strings(reqStrings),modalPromise=ModalFactory.create({type:ModalFactory.types.SAVE_CANCEL});$.when(stringsPromise,modalPromise).then((function(strings,modal){return modal.setTitle(strings[0]),modal.setBody(strings[1]),modal.setSaveButtonText(strings[0]),modal.getRoot().on(ModalEvents.save,(function(){window.location.href=a.attr("href")})),modal.show(),modal})).fail(Notification.exception)}else log.error('Action "'+actionType+'" is not allowed.')}))},selectEvaluationOptions:function(actionId,trainedOnlyExternally){$('[data-action-id="'+actionId+'"]').on("click",(function(ev){ev.preventDefault();var a=$(ev.currentTarget),timeSplittingMethods=$(this).attr("data-timesplitting-methods"),stringsPromise=Str.get_strings([{key:"evaluatemodel",component:"tool_analytics"},{key:"evaluate",component:"tool_analytics"}]),modalPromise=ModalFactory.create({type:ModalFactory.types.SAVE_CANCEL}),bodyPromise=Templates.render("tool_analytics/evaluation_options",{trainedexternally:trainedOnlyExternally,timesplittingmethods:JSON.parse(timeSplittingMethods)});$.when(stringsPromise,modalPromise).then((function(strings,modal){return modal.getRoot().on(ModalEvents.hidden,modal.destroy.bind(modal)),modal.setTitle(strings[0]),modal.setSaveButtonText(strings[1]),modal.setBody(bodyPromise),modal.getRoot().on(ModalEvents.save,(function(){"trainedmodel"==$("input[name='evaluationmode']:checked").val()&&a.attr("href",a.attr("href")+"&mode=trainedmodel");var timeSplittingMethod=$("#id-evaluation-timesplitting").val();a.attr("href",a.attr("href")+"&timesplitting="+timeSplittingMethod),window.location.href=a.attr("href")})),modal.show(),modal})).fail(Notification.exception)}))},selectExportOptions:function(actionId,isTrained){$('[data-action-id="'+actionId+'"]').on("click",(function(ev){ev.preventDefault();var a=$(ev.currentTarget);if(!isTrained)return a.attr("href",a.attr("href")+"&action=exportmodel&includeweights=0"),void(window.location.href=a.attr("href"));var stringsPromise=Str.get_strings([{key:"export",component:"tool_analytics"}]),modalPromise=ModalFactory.create({type:ModalFactory.types.SAVE_CANCEL}),bodyPromise=Templates.render("tool_analytics/export_options",{});$.when(stringsPromise,modalPromise).then((function(strings,modal){return modal.getRoot().on(ModalEvents.hidden,modal.destroy.bind(modal)),modal.setTitle(strings[0]),modal.setSaveButtonText(strings[0]),modal.setBody(bodyPromise),modal.getRoot().on(ModalEvents.save,(function(){"exportdata"==$("input[name='exportoption']:checked").val()?a.attr("href",a.attr("href")+"&action=exportdata"):(a.attr("href",a.attr("href")+"&action=exportmodel"),$("#id-includeweights").is(":checked")?a.attr("href",a.attr("href")+"&includeweights=1"):a.attr("href",a.attr("href")+"&includeweights=0")),window.location.href=a.attr("href")})),modal.show(),modal})).fail(Notification.exception)}))}}}));
define("tool_analytics/model",["jquery","core/str","core/log","core/notification","core/modal_save_cancel","core/modal_cancel","core/modal_events","core/templates"],(function($,Str,log,Notification,ModalSaveCancel,ModalCancel,ModalEvents,Templates){var actionsList={clear:{title:{key:"clearpredictions",component:"tool_analytics"},body:{key:"clearmodelpredictions",component:"tool_analytics"}},delete:{title:{key:"delete",component:"tool_analytics"},body:{key:"deletemodelconfirmation",component:"tool_analytics"}}};return{confirmAction:function(actionId,actionType){$('[data-action-id="'+actionId+'"]').on("click",(function(ev){ev.preventDefault();var a=$(ev.currentTarget);if(void 0!==actionsList[actionType]){var wrap,reqStrings=[actionsList[actionType].title,actionsList[actionType].body];reqStrings[1].param=(wrap=$(a).closest("[data-model-name]")).length?wrap.attr("data-model-name"):(log.error("Unexpected DOM error - unable to obtain the model name"),"");var stringsPromise=Str.get_strings(reqStrings),modalPromise=ModalSaveCancel.create({});$.when(stringsPromise,modalPromise).then((function(strings,modal){return modal.setTitle(strings[0]),modal.setBody(strings[1]),modal.setSaveButtonText(strings[0]),modal.getRoot().on(ModalEvents.save,(function(){window.location.href=a.attr("href")})),modal.show(),modal})).fail(Notification.exception)}else log.error('Action "'+actionType+'" is not allowed.')}))},selectEvaluationOptions:function(actionId,trainedOnlyExternally){$('[data-action-id="'+actionId+'"]').on("click",(function(ev){ev.preventDefault();var a=$(ev.currentTarget),timeSplittingMethods=$(this).attr("data-timesplitting-methods");ModalSaveCancel.create({title:Str.get_string("evaluatemodel","tool_analytics"),body:Templates.render("tool_analytics/evaluation_options",{trainedexternally:trainedOnlyExternally,timesplittingmethods:JSON.parse(timeSplittingMethods)}),removeOnClose:!0,buttons:{save:Str.get_string("evaluate","tool_analytics")},show:!0}).then((modal=>(modal.getRoot().on(ModalEvents.save,(function(){"trainedmodel"==$("input[name='evaluationmode']:checked").val()&&a.attr("href",a.attr("href")+"&mode=trainedmodel");var timeSplittingMethod=$("#id-evaluation-timesplitting").val();a.attr("href",a.attr("href")+"&timesplitting="+timeSplittingMethod),window.location.href=a.attr("href")})),modal))).catch(Notification.exception)}))},selectExportOptions:function(actionId,isTrained){$('[data-action-id="'+actionId+'"]').on("click",(function(ev){ev.preventDefault();var a=$(ev.currentTarget);if(!isTrained)return a.attr("href",a.attr("href")+"&action=exportmodel&includeweights=0"),void(window.location.href=a.attr("href"));var stringsPromise=Str.get_strings([{key:"export",component:"tool_analytics"}]),modalPromise=ModalSaveCancel.create({body:Templates.render("tool_analytics/export_options",{}),removeOnClose:!0});$.when(stringsPromise,modalPromise).then((function(strings,modal){return modal.setTitle(strings[0]),modal.setSaveButtonText(strings[0]),modal.getRoot().on(ModalEvents.save,(function(){"exportdata"==$("input[name='exportoption']:checked").val()?a.attr("href",a.attr("href")+"&action=exportdata"):(a.attr("href",a.attr("href")+"&action=exportmodel"),$("#id-includeweights").is(":checked")?a.attr("href",a.attr("href")+"&includeweights=1"):a.attr("href",a.attr("href")+"&includeweights=0")),window.location.href=a.attr("href")})),modal.show(),modal})).fail(Notification.exception)}))}}}));
//# sourceMappingURL=model.min.js.map
File diff suppressed because one or more lines are too long
+30 -30
View File
@@ -20,35 +20,35 @@
* @copyright 2017 David Monllao {@link http://www.davidmonllao.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define(['jquery', 'core/str', 'core/modal_factory', 'core/notification'], function($, str, ModalFactory, Notification) {
import Modal from 'core/modal';
import {get_string as getString} from 'core/str';
return /** @alias module:tool_analytics/log_info */ {
/**
* Prepares a modal info for a log's results.
*
* @method loadInfo
* @param {int} id
* @param {string[]} info
*/
loadInfo: function(id, info) {
var link = $('[data-model-log-id="' + id + '"]');
str.get_string('loginfo', 'tool_analytics').then(function(langString) {
var bodyInfo = $("<ul>");
info.forEach(function(item) {
bodyInfo.append('<li>' + item + '</li>');
});
bodyInfo.append("</ul>");
return ModalFactory.create({
title: langString,
body: bodyInfo.html(),
large: true,
}, link);
}).catch(Notification.exception);
/**
* Prepares a modal info for a log's results.
*
* @param {Number} id
* @param {string[]} info
*/
export const loadInfo = (id, info) => {
document.addEventListener('click', (e) => {
const link = e.target.closest(`[data-model-log-id="${id}"]`);
if (!link) {
return;
}
};
});
e.preventDefault();
const bodyInfo = document.createElement('ul');
info.forEach((item) => {
const li = document.createElement('li');
li.innerHTML = item;
bodyInfo.append(li);
});
Modal.create({
title: getString('loginfo', 'tool_analytics'),
body: bodyInfo.outerHTML,
large: true,
show: true,
removeOnClose: true,
});
});
};
+23 -36
View File
@@ -20,8 +20,10 @@
* @copyright 2017 David Monllao
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define(['jquery', 'core/str', 'core/log', 'core/notification', 'core/modal_factory', 'core/modal_events', 'core/templates'],
function($, Str, log, Notification, ModalFactory, ModalEvents, Templates) {
define([
'jquery', 'core/str', 'core/log', 'core/notification', 'core/modal_save_cancel',
'core/modal_cancel', 'core/modal_events', 'core/templates'],
function($, Str, log, Notification, ModalSaveCancel, ModalCancel, ModalEvents, Templates) {
/**
* List of actions that require confirmation and confirmation message.
@@ -93,7 +95,7 @@ define(['jquery', 'core/str', 'core/log', 'core/notification', 'core/modal_facto
reqStrings[1].param = getModelName(a);
var stringsPromise = Str.get_strings(reqStrings);
var modalPromise = ModalFactory.create({type: ModalFactory.types.SAVE_CANCEL});
var modalPromise = ModalSaveCancel.create({});
$.when(stringsPromise, modalPromise).then(function(strings, modal) {
modal.setTitle(strings[0]);
@@ -122,32 +124,20 @@ define(['jquery', 'core/str', 'core/log', 'core/notification', 'core/modal_facto
var timeSplittingMethods = $(this).attr('data-timesplitting-methods');
var stringsPromise = Str.get_strings([
{
key: 'evaluatemodel',
component: 'tool_analytics'
}, {
key: 'evaluate',
component: 'tool_analytics'
}
]);
var modalPromise = ModalFactory.create({type: ModalFactory.types.SAVE_CANCEL});
var bodyPromise = Templates.render('tool_analytics/evaluation_options', {
trainedexternally: trainedOnlyExternally,
timesplittingmethods: JSON.parse(timeSplittingMethods)
});
$.when(stringsPromise, modalPromise).then(function(strings, modal) {
modal.getRoot().on(ModalEvents.hidden, modal.destroy.bind(modal));
modal.setTitle(strings[0]);
modal.setSaveButtonText(strings[1]);
modal.setBody(bodyPromise);
ModalSaveCancel.create({
title: Str.get_string('evaluatemodel', 'tool_analytics'),
body: Templates.render('tool_analytics/evaluation_options', {
trainedexternally: trainedOnlyExternally,
timesplittingmethods: JSON.parse(timeSplittingMethods)
}),
removeOnClose: true,
buttons: {
save: Str.get_string('evaluate', 'tool_analytics'),
},
show: true,
})
.then((modal) => {
modal.getRoot().on(ModalEvents.save, function() {
// Evaluation mode.
var evaluationMode = $("input[name='evaluationmode']:checked").val();
if (evaluationMode == 'trainedmodel') {
@@ -162,9 +152,8 @@ define(['jquery', 'core/str', 'core/log', 'core/notification', 'core/modal_facto
return;
});
modal.show();
return modal;
}).fail(Notification.exception);
}).catch(Notification.exception);
});
},
@@ -196,16 +185,14 @@ define(['jquery', 'core/str', 'core/log', 'core/notification', 'core/modal_facto
component: 'tool_analytics'
}
]);
var modalPromise = ModalFactory.create({type: ModalFactory.types.SAVE_CANCEL});
var bodyPromise = Templates.render('tool_analytics/export_options', {});
var modalPromise = ModalSaveCancel.create({
body: Templates.render('tool_analytics/export_options', {}),
removeOnClose: true,
});
$.when(stringsPromise, modalPromise).then(function(strings, modal) {
modal.getRoot().on(ModalEvents.hidden, modal.destroy.bind(modal));
modal.setTitle(strings[0]);
modal.setSaveButtonText(strings[0]);
modal.setBody(bodyPromise);
modal.getRoot().on(ModalEvents.save, function() {
+7 -7
View File
@@ -97,28 +97,28 @@ if ($onlycli === false) {
switch ($action) {
case 'enable':
confirm_sesskey();
require_sesskey();
$model->enable();
redirect($returnurl);
break;
case 'disable':
confirm_sesskey();
require_sesskey();
$model->update(0, false, false);
redirect($returnurl);
break;
case 'delete':
confirm_sesskey();
require_sesskey();
$model->delete();
redirect($returnurl);
break;
case 'edit':
confirm_sesskey();
require_sesskey();
$invalidcurrenttimesplitting = $model->invalid_timesplitting_selected();
$potentialtimesplittings = $model->get_potential_timesplittings();
@@ -183,7 +183,7 @@ switch ($action) {
break;
case 'evaluate':
confirm_sesskey();
require_sesskey();
if ($model->is_static()) {
throw new moodle_exception('errornostaticevaluate', 'tool_analytics');
@@ -226,7 +226,7 @@ switch ($action) {
break;
case 'scheduledanalysis':
confirm_sesskey();
require_sesskey();
if ($onlycli) {
throw new moodle_exception('erroronlycli', 'tool_analytics');
@@ -292,7 +292,7 @@ switch ($action) {
break;
case 'clear':
confirm_sesskey();
require_sesskey();
$model->clear();
redirect($returnurl);
+2 -2
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2023042400; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2023041800; // Requires this Moodle version.
$plugin->version = 2023100900; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2023100400; // Requires this Moodle version.
$plugin->component = 'tool_analytics'; // Full name of the plugin (used for diagnostics).
@@ -34,8 +34,11 @@ Feature: Manage availability conditions
Given the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
And the following "activity" exists:
| activity | page |
| course | C1 |
| name | P1 |
And I log in as "admin"
And I am on site homepage
When I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
# Check the icon is there (it should be a Hide icon, meaning is currently visible).
@@ -51,8 +54,7 @@ Feature: Manage availability conditions
# OK, toggling works. Set the grade one to Hide and we'll go see if it actually worked.
And I click on "Hide" "icon" in the "Restriction by grade" "table_row"
And I am on "Course 1" course homepage with editing mode on
And I add a "Page" to section "1"
And I am on the "P1" "page activity editing" page
And I expand all fieldsets
And I click on "Add restriction..." "button"
And "Add restriction..." "dialogue" should be visible
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2023042400;
$plugin->requires = 2023041800;
$plugin->version = 2023100900;
$plugin->requires = 2023100400;
$plugin->component = 'tool_availabilityconditions';
+12 -10
View File
@@ -49,7 +49,7 @@ list($options, $unrecognized) = cli_get_params(
'torun' => 0,
'optimize-runs' => '',
'add-core-features-to-theme' => false,
'axe' => false,
'axe' => null,
'disable-composer' => false,
'composer-upgrade' => true,
'composer-self-update' => true,
@@ -69,7 +69,7 @@ Behat utilities to initialise behat tests
Usage:
php init.php [--parallel=value [--maxruns=value] [--fromrun=value --torun=value]]
[--axe] [-o | --optimize-runs] [-a | --add-core-features-to-theme]
[--no-axe] [-o | --optimize-runs] [-a | --add-core-features-to-theme]
[--no-composer-self-update] [--no-composer-upgrade]
[--disable-composer]
[--help]
@@ -79,7 +79,7 @@ Options:
-m, --maxruns Max parallel processes to be executed at one time
--fromrun Execute run starting from (Used for parallel runs on different vms)
--torun Execute run till (Used for parallel runs on different vms)
--axe Include axe accessibility tests
--no-axe Disable axe accessibility tests.
-o, --optimize-runs
Split features with specified tags in all parallel runs.
@@ -102,7 +102,7 @@ Options:
Example from Moodle root directory:
\$ php admin/tool/behat/cli/init.php --parallel=2
More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
More info in https://moodledev.io/general/development/tools/behat/running
";
if (!empty($options['help'])) {
@@ -110,6 +110,12 @@ if (!empty($options['help'])) {
exit(0);
}
if ($options['axe']) {
echo "Axe accessibility tests are enabled by default, to disable them, use the --no-axe option.\n";
} else if ($options['axe'] === false) {
echo "Axe accessibility tests have been disabled.\n";
}
// Check which util file to call.
$utilfile = 'util_single_run.php';
$commandoptions = "";
@@ -118,9 +124,7 @@ if ($options['parallel'] && $options['parallel'] > 1) {
$utilfile = 'util.php';
// Sanitize all input options, so they can be passed to util.
foreach ($options as $option => $value) {
if ($value) {
$commandoptions .= " --$option=\"$value\"";
}
$commandoptions .= behat_get_command_flags($option, $value);
}
} else {
// Only sanitize options for single run.
@@ -130,9 +134,7 @@ if ($options['parallel'] && $options['parallel'] > 1) {
];
foreach ($cmdoptionsforsinglerun as $option) {
if (!empty($options[$option])) {
$commandoptions .= " --$option='$options[$option]'";
}
$commandoptions .= behat_get_command_flags($option, $options[$option]);
}
}
+1 -1
View File
@@ -87,7 +87,7 @@ Options:
Example from Moodle root directory:
\$ php admin/tool/behat/cli/run.php --tags=\"@javascript\"
More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
More info in https://moodledev.io/general/development/tools/behat/running
";
if (!empty($options['help'])) {
+5 -10
View File
@@ -57,7 +57,7 @@ list($options, $unrecognized) = cli_get_params(
'torun' => 0,
'optimize-runs' => '',
'add-core-features-to-theme' => false,
'axe' => false,
'axe' => true,
),
array(
'h' => 'help',
@@ -73,7 +73,7 @@ $help = "
Behat utilities to manage the test environment
Usage:
php util.php [--install|--drop|--enable|--disable|--diag|--updatesteps|--axe|--help] [--parallel=value [--maxruns=value]]
php util.php [--install|--drop|--enable|--disable|--diag|--updatesteps|--no-axe|--help] [--parallel=value [--maxruns=value]]
Options:
--install Installs the test environment for acceptance tests
@@ -82,7 +82,7 @@ Options:
--disable Disables test environment
--diag Get behat test environment status code
--updatesteps Update feature step file.
--axe Include axe accessibility tests
--no-axe Disable axe accessibility tests.
-j, --parallel Number of parallel behat run operation
-m, --maxruns Max parallel processes to be executed at one time.
@@ -94,7 +94,7 @@ Options:
Example from Moodle root directory:
\$ php admin/tool/behat/cli/util.php --enable --parallel=4
More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
More info in https://moodledev.io/general/development/tools/behat/running
";
if (!empty($options['help'])) {
@@ -320,12 +320,7 @@ function commands_to_execute($options) {
}
foreach ($extraoptions as $option => $value) {
if ($options[$option]) {
$extra .= " --$option";
if ($value) {
$extra .= "=\"$value\"";
}
}
$extra .= behat_get_command_flags($option, $value);
}
if (empty($options['parallel'])) {
+4 -4
View File
@@ -52,7 +52,7 @@ list($options, $unrecognized) = cli_get_params(
'updatesteps' => false,
'optimize-runs' => '',
'add-core-features-to-theme' => false,
'axe' => false,
'axe' => true,
),
array(
'h' => 'help',
@@ -79,7 +79,7 @@ Options:
--disable Disables test environment
--diag Get behat test environment status code
--updatesteps Update feature step file.
--axe Include axe accessibility tests
--no-axe Disable axe accessibility tests.
-o, --optimize-runs Split features with specified tags in all parallel runs.
-a, --add-core-features-to-theme Add all core features to specified theme's
@@ -89,7 +89,7 @@ Options:
Example from Moodle root directory:
\$ php admin/tool/behat/cli/util_single_run.php --enable
More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
More info in https://moodledev.io/general/development/tools/behat/running
";
if (!empty($options['help'])) {
@@ -186,7 +186,7 @@ if ($options['install']) {
behat_config_manager::set_behat_run_config_value('behatsiteenabled', 1);
}
// Define whether to run Behat with axe tests.
// Configure axe according to option.
behat_config_manager::set_behat_run_config_value('axe', $options['axe']);
// Enable test mode.
+1 -1
View File
@@ -30,7 +30,7 @@ $string['errordataroot'] = '$CFG->behat_dataroot is not set or is invalid.';
$string['errorsetconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot need to be set in config.php.';
$string['erroruniqueconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot values need to be different than $CFG->dataroot, $CFG->prefix, $CFG->wwwroot, $CFG->phpunit_dataroot and $CFG->phpunit_prefix values.<br/>Or, if $CFG->behat_prefix is the same, $CFG->behat_dbname or $CFG->behat_dbhost need to be different from $CFG->phpunit_dbname and $CFG->phpunit_dbhost and from $CFG->dbname and $CFG->dbhost.';
$string['fieldvalueargument'] = 'Field value arguments';
$string['fieldvalueargument_help'] = 'This argument should be completed by a field value. There are many field types, including simple ones like checkboxes, selects or textareas, or complex ones like date selectors. See the dev documentation <a href="https://docs.moodle.org/dev/Acceptance_testing" target="_blank">Acceptance_testing</a> for details of expected field values.';
$string['fieldvalueargument_help'] = 'This argument should be completed by a field value. There are many field types, including simple ones like checkboxes, selects or textareas, or complex ones like date selectors. See the dev documentation <a href="https://moodledev.io/general/development/tools/behat" target="_blank">Acceptance_testing</a> for details of expected field values.';
$string['giveninfo'] = 'Given. Processes to set up the environment';
$string['infoheading'] = 'Info';
$string['installinfo'] = 'Read {$a} for installation and tests execution info';
+3 -2
View File
@@ -184,9 +184,10 @@ class tool_behat_renderer extends plugin_renderer_base {
// Info.
$installurl = behat_command::DOCS_URL;
$installlink = html_writer::tag('a', $installurl, array('href' => $installurl, 'target' => '_blank'));
$writetestsurl = 'https://docs.moodle.org/dev/Writing acceptance tests';
$writetestsurl = 'https://moodledev.io/general/development/tools/behat/writing';
$writetestslink = html_writer::tag('a', $writetestsurl, array('href' => $writetestsurl, 'target' => '_blank'));
$writestepsurl = 'https://docs.moodle.org/dev/Writing_new_acceptance_test_step_definitions';
$writestepsurl = 'https://moodledev.io/general/development/tools/behat/writing#' .
'writing-new-acceptance-test-step-definitions';
$writestepslink = html_writer::tag('a', $writestepsurl, array('href' => $writestepsurl, 'target' => '_blank'));
$infos = array(
get_string('installinfo', 'tool_behat', $installlink),
@@ -58,7 +58,7 @@ Feature: Set up contextual data for tests
And I am on the "Course 1" "groups" page
Then I should see "Group 1"
And I should see "Group 2"
And I select "Groupings" from the "jump" singleselect
And I set the field "Participants tertiary navigation" to "Groupings"
And I should see "Grouping 1"
And I should see "Grouping 2"
@@ -100,8 +100,7 @@ Feature: Set up contextual data for tests
And the following "course enrolments" exist:
| user | course | role |
| student1 | C1 | student |
When I log in as "student1"
And I am on "Course 1" course homepage
When I am on the "Course 1" course page logged in as student1
Then I should see "Topic 1"
Scenario: Add role assigns
@@ -135,17 +134,11 @@ Feature: Set up contextual data for tests
When I log in as "user1"
And I am on site homepage
Then edit mode should be available on the current page
And I log out
And I log in as "user2"
And I am on "Course 1" course homepage
And I am on the "Course 1" course page logged in as user2
Then edit mode should be available on the current page
And I log out
And I log in as "user3"
And I am on "Course 1" course homepage
And I am on the "Course 1" course page logged in as user3
Then edit mode should be available on the current page
And I log out
And I log in as "user4"
And I am on "Course 1" course homepage
And I am on the "Course 1" course page logged in as user4
Then edit mode should be available on the current page
And I log out
And I log in as "user5"
@@ -186,8 +179,7 @@ Feature: Set up contextual data for tests
And the following "activities" exist:
| activity | name | intro | course | idnumber | grade |
| assign | Test assignment name with scale | Test assignment description | C1 | assign1 | Test Scale 1 |
When I log in as "admin"
And I am on "Course 1" course homepage
When I am on the "Course 1" course page logged in as admin
Then I should see "Test assignment name"
# Assignment 2.2 module type is disabled by default
# And I should see "Test assignment22 name"
@@ -303,9 +295,7 @@ Feature: Set up contextual data for tests
And the following "grade categories" exist:
| fullname | course | gradecategory |
| Grade sub category 2 | C1 | Grade category 1 |
When I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
When I am on the "Course 1" "grades > Grader report > View" page logged in as "admin"
Then I should see "Grade category 1"
And I should see "Grade sub category 2"
@@ -326,29 +316,27 @@ Feature: Set up contextual data for tests
| itemname | course | gradecategory |
| Test Grade Item 2 | C1 | Grade category 1 |
| Test Grade Item 3 | C1 | Grade sub category 2 |
When I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
When I am on the "Course 1" "grades > gradebook setup" page logged in as "admin"
Then I should see "Test Grade Item 1"
And I click on grade item menu "Test Grade Item 1" of type "gradeitem" on "setup" page
And I choose "Edit grade item" in the open action menu
And I expand all fieldsets
And I should see "Course 1"
And I press "Cancel"
And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
And I should see "Grade category 1"
And I should see "Test Grade Item 2"
And I click on grade item menu "Test Grade Item 2" of type "gradeitem" on "setup" page
And I choose "Edit grade item" in the open action menu
And I expand all fieldsets
And I should see "Grade category 1"
And I press "Cancel"
And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
And I should see "Grade sub category 2"
And I should see "Test Grade Item 3"
And I click on grade item menu "Test Grade Item 3" of type "gradeitem" on "setup" page
And I choose "Edit grade item" in the open action menu
And I expand all fieldsets
And I should see "Grade sub category 2"
And I press "Cancel"
And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
Scenario: Add a bunch of scales
Given the following "courses" exist:
@@ -357,9 +345,7 @@ Feature: Set up contextual data for tests
And the following "scales" exist:
| name | scale |
| Test Scale 1 | Disappointing, Good, Very good, Excellent |
When I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Scales" in the course gradebook
When I am on the "Course 1" "grades > scales" page logged in as admin
Then I should see "Test Scale 1"
And I should see "Disappointing, Good, Very good, Excellent"
@@ -378,9 +364,7 @@ Feature: Set up contextual data for tests
| Grade outcome 2 | OT2 | C1 | Test Scale 1 |
And the following config values are set as admin:
| enableoutcomes | 1 |
When I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "More > Outcomes" in the course gradebook
When I am on the "Course 1" "grades > outcomes" page logged in as admin
Then I should see "Grade outcome 1" in the "#addoutcomes" "css_element"
And I should see "Grade outcome 2" in the "#removeoutcomes" "css_element"
And I press "Manage outcomes"
@@ -406,14 +390,12 @@ Feature: Set up contextual data for tests
| Test Outcome Grade Item 1 | C1 | OT1 | Grade category 1 |
And the following config values are set as admin:
| enableoutcomes | 1 |
When I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
When I am on the "Course 1" "grades > gradebook setup" page logged in as "admin"
Then I should see "Test Outcome Grade Item 1"
And I click on grade item menu "Test Outcome Grade Item 1" of type "gradeitem" on "setup" page
And I choose "Edit grade item" in the open action menu
And I click on "Show more..." "link" in the "Edit outcome item" "dialogue"
And the field "Outcome" matches value "Grade outcome 1"
And I expand all fieldsets
And I should see "Grade category 1" in the "Grade category" "form_row"
And I press "Cancel"
@@ -424,6 +406,5 @@ Feature: Set up contextual data for tests
And the following "blocks" exist:
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
| online_users | Course | C1 | course-view-* | site-pre |
When I log in as "admin"
And I am on "Course 1" course homepage
When I am on the "Course 1" course page logged in as admin
Then I should see "Online users"

Some files were not shown because too many files have changed in this diff Show More