Commit graph

111143 commits

Author SHA1 Message Date
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