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

Editing cohort description does not allow images of media to be uploaded

    Details

    • Testing Instructions:
      Hide

      As manager with capability to view and manage cohorts (but not as admin!):

      • Create cohort, add image in the description
      • Make sure it is displayed
      • Edit cohort, change the context
      • Make sure the image is still displayed on the view cohorts list
      • Edit cohort, change/add the image
      • Make sure the changes are saved and cohort is displayed correctly.
      • Copy image URL
      • Make sure user with only cohort/view capability can access URL
      • Make sure guest or user without cohort/view capability can not access URL
      Show
      As manager with capability to view and manage cohorts (but not as admin!): Create cohort, add image in the description Make sure it is displayed Edit cohort, change the context Make sure the image is still displayed on the view cohorts list Edit cohort, change/add the image Make sure the changes are saved and cohort is displayed correctly. Copy image URL Make sure user with only cohort/view capability can access URL Make sure guest or user without cohort/view capability can not access URL
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull Master Branch:
      wip-MDL-28954-master

      Description

      When editing the description of a cohort with the HTML editor, it is not possible to upload images or media.

      This may be because of the context not being set for cohorts (or being set to zero), so there is no temporary editing area for attached files.

      Replication steps:

      1. Log in as admin
      2. Navigate to Site Administration -> Users -> Accounts -> Cohorts
      3. Click on the "Insert/edit image" button or the "Moodle media" button.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    16/Nov/15