Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-42932

Introduce calendar type choice at system level

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.7
    • Component/s: Calendar
    • Testing Instructions:
      Hide
      1. Install the calendar type 'test' (https://github.com/markn86/moodle-calendartype_test) into the folder calendar/type/test.
      2. Visit admin/index.php and install the 'test' calendar.
      3. Visit <yoursite>/admin/settings.php?section=calendar and set the calendar type default to 'test' (it should be 'gregorian' by default').
      4. Enable self registration.
      5. Create a user using the registration steps and ensure that the calendar type set for their profile is 'test'.
      6. Create a user using the web service functionality and ensure the calendar type in their profile is 'test'.
      7. Log in using the DB authentication plugin and ensure the user is created with the 'test' calendar type.
      8. Create a webservice script (see https://github.com/moodlehq/moodle-local_wstemplate/tree/master/client) to create a user with the 'gregorian' calendar type and check that they were created successfully with that calendar type.
      9. Create a webservice script to create a user without specifying the calendar type and check that the calendar type was set to 'test'.
      10. Create a webservice script to create a user specifying the calendar type as '' and check that the calendar type was set to 'test'.
      11. Create a webservice script to update a user's calendar type (who was originally set to 'gregorian') to 'test' and check that it was updated.
      12. Create a webservice script to update a user (but not their calendar type) and ensure there calendar type was not altered.
      13. Create a webservice script to update a user's calendar type (who was originally set to 'gregorian') to '' and check that it was not updated.
      Show
      Install the calendar type 'test' ( https://github.com/markn86/moodle-calendartype_test ) into the folder calendar/type/test. Visit admin/index.php and install the 'test' calendar. Visit <yoursite>/admin/settings.php?section=calendar and set the calendar type default to 'test' (it should be 'gregorian' by default'). Enable self registration. Create a user using the registration steps and ensure that the calendar type set for their profile is 'test'. Create a user using the web service functionality and ensure the calendar type in their profile is 'test'. Log in using the DB authentication plugin and ensure the user is created with the 'test' calendar type. Create a webservice script (see https://github.com/moodlehq/moodle-local_wstemplate/tree/master/client ) to create a user with the 'gregorian' calendar type and check that they were created successfully with that calendar type. Create a webservice script to create a user without specifying the calendar type and check that the calendar type was set to 'test'. Create a webservice script to create a user specifying the calendar type as '' and check that the calendar type was set to 'test'. Create a webservice script to update a user's calendar type (who was originally set to 'gregorian') to 'test' and check that it was updated. Create a webservice script to update a user (but not their calendar type) and ensure there calendar type was not altered. Create a webservice script to update a user's calendar type (who was originally set to 'gregorian') to '' and check that it was not updated.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-42932_master
    • Sprint:
      BACKEND Sprint 7

      Description

      Currently you are only able to change the calendar type in the user and course settings.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/May/14