22405 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
ba5b6089d5 MDL-71036 phpunit: Renamed various regexp-related assertions
In PHPUnit 9.1, the following regexp-related assertions
have been deprecated and there are new alternatives for
all them:
    - assertRegExp()     -> assertMatchesRegularExpression()
    - assertNotRegExp()  -> assertDoesNotMatchRegularExpression()

This is about to, simply, move all cases to the new alternatives.

Source: https://github.com/sebastianbergmann/phpunit/blob/9.1.0/ChangeLog-9.1.md

Regexp to find all them:

    ag 'assertRegExp|assertNotRegExp' -li
2021-03-11 19:22:24 +01:00
Jun Pataleta
5a7c629f7c Merge branch 'MDL-45242-master' of https://github.com/sammarshallou/moodle 2021-03-10 23:39:30 +08:00
sam marshall
987e55452f MDL-45242 Course: Enrol feature supports custom profile fields 2021-03-10 10:57:11 +00:00
sam marshall
558cc1b85e MDL-45242 Lib: Replace calls to deprecated functions
In all cases changes have been kept to a minimum while not making
the code completely horrible. For example, there are many instances
where it would probably be better to rewrite a query entirely, but
I have not done that (in order to reduce the risk of changes).
2021-03-10 10:57:10 +00:00
Jun Pataleta
2f0914e55f MDL-70815 mod_choice: Unit tests for the custom completion class 2021-03-09 20:15:28 +08:00
Jun Pataleta
4b2d9ef76d MDL-70815 mod_choice: Custom completion implementation 2021-03-09 20:15:28 +08:00
sam marshall
3f003455f3 MDL-45242 Lib: Replace direct references to ->showuseridentity 2021-03-08 09:20:18 +00:00
Ilya Tregubov
eaf40e050e MDL-69680 lib: Replace deprecated jQuery functions 2021-03-04 12:48:26 +08:00
Ilya Tregubov
a303eb9e9e MDL-70767 feedback: Prevent xss in feedback answer text. 2021-03-03 23:08:22 +01:00
Sara Arjona
40720df008 Merge branch 'MDL-68721-master' of git://github.com/ferranrecio/moodle 2021-03-03 17:51:16 +01:00
Ferran Recio
fe3ee4a066 MDL-68721 mod_h5pactivity: report acceptance tests 2021-03-03 17:21:56 +01:00
Marina Glancy
9cfacff738 MDL-65552 user: escape idnumber and email in table_sql 2021-03-03 23:15:07 +08:00
Sara Arjona
9d58d4de46 Merge branch 'MDL-67494-master' of git://github.com/lameze/moodle 2021-03-03 11:45:28 +01:00
Sara Arjona
187801ccf5 Merge branch 'MDL-70966-master' of git://github.com/marinaglancy/moodle 2021-03-03 09:30:41 +01:00
Sara Arjona
97786378be Merge branch 'MDL-69097-master' of https://github.com/inigozendegi/moodle 2021-03-03 09:06:45 +01:00
Simey Lameze
ac0a0bad63 MDL-67494 calendar: only user overrides should retain userid 2021-03-03 16:06:32 +08:00
Eloy Lafuente (stronk7)
5b45f13073 Merge branch 'MDL-70340-master' of git://github.com/jleyva/moodle 2021-03-02 23:32:30 +01:00
Víctor Déniz
65957d8109 Merge branch 'MDL-70676-master' of git://github.com/ilyatregubov/moodle
Fixed mod/workshop/db/upgrade.php: \xmldb_field::getNotNull()
does not verify if the column is nullable in the database.
2021-03-02 18:29:19 +00:00
Ilya Tregubov
0420ec757a MDL-70676 workshop: Allow empty grades. 2021-03-02 13:41:52 +02:00
Eloy Lafuente (stronk7)
e635eed2ed Merge branch 'MDL-70912-master' of git://github.com/sarjona/moodle 2021-03-01 16:47:28 +01:00
Eloy Lafuente (stronk7)
ac9b920981 Merge branch 'MDL-70964-master-enfix' of git://github.com/mudrd8mz/moodle 2021-03-01 09:33:49 +01:00
Marina Glancy
612c230709 MDL-70966 various: Under PHP8 empty string is no longer equals to 0 2021-02-28 19:16:09 +01:00
Helen Foster
422e70e308 MDL-70964 lang: Import fixed English strings (en_fix) 2021-02-25 16:18:57 +01:00
Iñigo Zendegi
df9eefacef MDL-69097 mod_forum: Apply filters to whole forum grading 2021-02-24 17:08:34 +01:00
Víctor Déniz
534eae88d7 Merge branch 'MDL-70038-master' of https://github.com/jpahullo/moodle 2021-02-23 11:14:14 +00:00
Jordi Pujol Ahulló
96557076a2 MDL-70038 assign: add suport for pdftoppm tool
pdftoppm (from poppler-utils package) is several orders of
magnitude quicker than ghostscript extracting PNG images
from PDF documents.

We add support for this tool and use it whenever set up,
or using gs as before if missing.

Revisited code with peer review comments. In particular:

1. Make default path for pdftoppm empty string.
2. Fix a typo on the method description for get_gs_command_for_image.
3. Added more information why is useful pdftoppm into string pathtopdftoppm_help.
4. Check that path for pdftoppm is executable to prevent errors. Otherwise, use gs.
2021-02-23 08:07:20 +01:00
Andrew Nicols
cffeb4b797 MDL-69259 h5pactivity: Whitespace fix 2021-02-22 12:19:18 +08:00
Ilya Tregubov
82433c0b6a MDL-69259 h5pactivity: Add get_user_attempts webservice 2021-02-19 16:07:51 +02:00
Eloy Lafuente (stronk7)
a72ea10b84 Merge branch 'MDL-70552-master' of git://github.com/ilyatregubov/moodle 2021-02-17 10:26:20 +01:00
Ilya Tregubov
729688b379 MDL-70552 core_message: Show popup for teachers when anonymous
user completed feedback.
2021-02-17 08:42:52 +02:00
Andrew Nicols
243262d940 MDL-68853 mod_h5pactivity: Whitespace fix 2021-02-17 12:02:53 +08:00
Andrew Nicols
57e233e742 Merge branch 'MDL-68853-master' of git://github.com/ilyatregubov/moodle 2021-02-17 11:47:27 +08:00
Andrew Nicols
ab024ac209 Merge branch 'MDL-47410-master' of git://github.com/mihailges/moodle 2021-02-17 09:34:22 +08:00
Eloy Lafuente (stronk7)
a32ed14f03 Merge branch 'MDL-66600' of https://github.com/mkassaei/moodle 2021-02-16 22:11:55 +01:00
Sara Arjona
1be2350a74 MDL-70912 mod_data: Add filepicker to the H5P Atto button
The filepicker wasn't displayed fot the H5P Atto button when a text
area database field was created because some options were missing
in the textarea field class.
2021-02-16 18:16:21 +01:00
Jun Pataleta
f04cbfa7ab MDL-48269 mod_forum: Remove occurrences of hidepicture 2021-02-16 12:48:45 +08:00
Frederic Massart
3aed37ee4d MDL-48269 group: Remove the option to hide the picture of a group
Plus additional amendments to Fred's original commit:
1. Updating the version numbers
2. Merging the original two-step upgrade below into one for simplicity:
   1. Deleting the pictures for groups with hidepicture set to 1; and
   2. Dropping the hidepicture field itself.
3. Converted array() usages to the short syntax [].
2021-02-16 12:46:58 +08:00
Mahmoud Kassaei
4a571882db MDL-66600 quiz manual grading: show any automated grading and feedback 2021-02-15 08:19:31 +00:00
Ilya Tregubov
4795b09f23 MDL-68853 h5pactivity: Add a websevice to trigger report_viewed event. 2021-02-12 15:49:05 +02:00
Mihail Geshoski
46fd92b938 MDL-47410 mod_assign: Update mod_assign behat tests
Updates the mod_assign behat tests to utilize the ability to
conviniently populate the datetime selector fields.
2021-02-11 12:05:58 +08:00
Adrian Greeve
007c270507 Merge branch 'MDL-70755' of https://github.com/mkassaei/moodle 2021-02-11 10:54:38 +08:00
Adrian Greeve
e54ee9e512 Merge branch 'MDL-70773' of https://github.com/mkassaei/moodle 2021-02-11 10:19:39 +08:00
Adrian Greeve
f83156fcf9 Merge branch 'MDL-70513' of https://github.com/timhunt/moodle 2021-02-11 10:06:50 +08:00
Adrian Greeve
9cacb16c01 Merge branch 'MDL-69867-master_display_grade_with_scale' of git://github.com/moffe42/moodle 2021-02-11 09:23:50 +08:00
Sara Arjona
fd31854480 Merge branch 'MDL-70732-master' of git://github.com/aanabit/moodle 2021-02-10 17:20:22 +01:00
Jacob Christiansen
0770d9fec3 MDL-69867 mod_assign: Display current grade with scale value
When using workflow we show the current grade with its scale value
instead of the internal index
2021-02-10 08:13:05 +01:00
Adrian Greeve
407ed3ff33 Merge branch 'MDL-52420-master' of https://github.com/sharidas/moodle 2021-02-10 12:54:19 +08:00
Sara Arjona
68d39e634f Merge branch 'MDL-68736-master' of git://github.com/ferranrecio/moodle 2021-02-09 15:05:29 +01:00
Sara Arjona
1d6b734108 Merge branch 'MDL-70173-master' of git://github.com/rezaies/moodle 2021-02-09 08:29:13 +01:00
Shamim Rezaie
805df4f846 MDL-70173 theme_boost: Fix empty link issue on the "Go to top" button
On behat, we have to use a more specific test step if we are looking
for a "Go" button on a modal. The reason is that the html of the modal
content is put after the html of the "Go to top" button, so behat
may find the "Go to top" button if we just look for "Go".
2021-02-09 16:16:09 +11:00