1. 25 Jun, 2021 1 commit
  2. 18 Jun, 2021 3 commits
  3. 15 Jun, 2021 1 commit
  4. 14 Jun, 2021 1 commit
  5. 10 Jun, 2021 3 commits
  6. 08 Jun, 2021 1 commit
  7. 04 Jun, 2021 3 commits
  8. 03 Jun, 2021 1 commit
  9. 02 Jun, 2021 1 commit
  10. 26 May, 2021 1 commit
    • Andrew Nicols's avatar
      MDL-70990 core_form: Standardise event name usage · a1ccefe2
      Andrew Nicols authored
      The `types` object introduced in Moodle 3.11 has been replaced with the
      `eventTypes` object which is used consistently across all CustomEvent
      definitinos.
      
      Likewise the trigger functions have been renamed from
      `triggerUploadStarted` to `notifyUploadStarted` and from
      `triggerUploadCompleted` to `notifyUploadCompleted`.
      
      Backwards compatability is maintained.
      a1ccefe2
  11. 12 May, 2021 1 commit
    • Eloy Lafuente's avatar
      MDL-71583 versions: Add all the missing full-stops to version/requires · 9d6aa399
      Eloy Lafuente authored
      It seems that the new phpcs3 checker is now controlling those
      line comments that previously were ignored.
      
      This commit just looks for all the cases and bulk-add
      them when needed. The bash script (mac) used to add all them is:
      
      while read -r line; do
          arr=(${line//:/ })
          if [[ -n ${arr[0]} ]] && [[ -n ${arr[1]} ]]; then
              echo "  file ${arr[0]}, line ${arr[1]}"
              sed -i "${arr[1]}s/\$/\./" ${arr[0]}
          fi
      done < <(find . -name version.php | xargs ag --nomultiline '>(version|requires) *=.*//.*[^;\.]$')
      9d6aa399
  12. 07 May, 2021 1 commit
  13. 06 May, 2021 1 commit
    • Paul Holden's avatar
      MDL-71402 availability: fix group restriction button in mod form. · 2877501a
      Paul Holden authored
       * The button to "Add group/grouping access restriction" under
         common module settings should only be present if corresponding
         availability plugins are enabled; and
       * Prevent the same button behaving as a submit button, which
         intercepted the user hitting return in the form and added a
         restriction without deliberate action taken by the user.
      2877501a
  14. 05 May, 2021 1 commit
  15. 01 May, 2021 3 commits
  16. 30 Apr, 2021 1 commit
  17. 29 Apr, 2021 3 commits
  18. 27 Apr, 2021 1 commit
  19. 26 Apr, 2021 1 commit
  20. 24 Apr, 2021 1 commit
    • jun's avatar
      MDL-71370 course: Make showcompletionconditions nullable · fca42002
      jun authored
      * When completion tracking is not enabled for the course, it does not
      make sense for the course's showcompletionconditions setting to
      be set according to the default value indicated by the
      "moodlecourse | showcompletionconditions" admin setting. Setting
      showcompletionconditions as enabled when completion tracking is disabled
      makes even less sense. So in such a case, we should not be setting a
      default value for showcompletionconditions and allow it to be null.
      
      * When the course is edited and completion tracking is enabled, this
      also would set the "Show completion conditions" field to default to the
      value set in the "moodlecourse | showcompletionconditions" admin
      setting.
      fca42002
  21. 20 Apr, 2021 1 commit
  22. 17 Apr, 2021 2 commits
  23. 13 Apr, 2021 1 commit
    • jun's avatar
      MDL-70821 course: Render activity information only when necessary · f5d9ac96
      jun authored
      Render the activity information output component in the course homepage
      only if either completion details or activity dates are to be displayed.
      This can help reduce the number of files being included when loading the
      course homepage (e.g. the activity information template for each
      activity in the course homepage).
      f5d9ac96
  24. 12 Apr, 2021 6 commits
    • Ferran Recio Calderó's avatar
      6ae566c5
    • jun's avatar
      MDL-70821 course: Activity information fixes · a5e6df51
      jun authored
      * Make sure the activity is visible to the user (cm_info::uservisible)
      before showing the activity completion information.
      * Add to-do status for overridden automatic completion
      a5e6df51
    • jun's avatar
      MDL-70821 course: Check activity dates on course homepage · 15a9b2c5
      jun authored
      * Check the activity dates on the course homepage depending on
        the value of the showactivitydates course setting
      * Plus use the new Behat steps for checking activity dates
      15a9b2c5
    • jun's avatar
      MDL-70821 course: New Behat steps for activity dates · 5dee6f45
      jun authored
      * activity_date_in_activity_should_contain_text()
        - Checks the presence of the given text in the activity's date info.
      * activity_dates_information_in_activity_should_exist()
        - Checks the presence of activity dates information in the activity
          information output component.
      * activity_dates_information_in_activity_should_not_exist()
        - Checks the absence of activity dates information in the activity
          information output component.
      5dee6f45
    • jun's avatar
      MDL-70821 course: activity_information template changes · 147a3a36
      jun authored
      * Add activity name for completion conditions labels. This would give
        better information to screen reader users the activity that the list
        of automatic completion conditions belong to. This would be useful
        especially when the completion conditions are displayed on the course
        homepage.
      * Add data-region attributes to activity dates and completion
        information divs.
      * Reorganise activity dates and completion information divs so they
        are only rendered when they have data to show.
      147a3a36
    • jun's avatar
      MDL-70821 course: Remove old manual completion toggling · 32b76b34
      jun authored
      Remove the old ways of toggling manual completion via completion.js
      and the ajax part of togglecompletion.php.
      32b76b34