Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32999 META: Files UI Stage 2 polishing in master
  3. MDL-33582

"set as main file" option can be used when not allowed

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3
    • 2.3
    • Files API
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • MDL-33582-master-integration
    • Hide

      Test prerequisites

      1. My private files with some files
      2. A file resource with some files

      Test steps

      1. Go to your privates files
      2. Click on each file and

      • make sure the button 'Set main file' is not displayed
      • using an HTML inspector (Firebug), unhide the button and make sure clicking on it does not do anything

      3. Go to the file resource

      • Make sure you can set one of the files to main file
      • Make sure you can change the main file
      • Save your changes and confirm it happened
      Show
      Test prerequisites My private files with some files A file resource with some files Test steps 1. Go to your privates files 2. Click on each file and make sure the button 'Set main file' is not displayed using an HTML inspector (Firebug), unhide the button and make sure clicking on it does not do anything 3. Go to the file resource Make sure you can set one of the files to main file Make sure you can change the main file Save your changes and confirm it happened

      Replication steps:-

      1. Goto to edit private files area
      2. Open file manager and edit the css to remove "display:none" attribute on the "set as main file" button
      3. Now "set as main file" button is visible which should not be. Clicking on the button actually works and sets the current file as main file which should not be happening.
      4. I was also able to see "link to file directly" option following the same method in some cases, but was not really able to get that working. In any case both situations should be investigated.

            fred Frédéric Massart
            ankit_frenz Ankit Agarwal
            Marina Glancy Marina Glancy
            Dan Poltawski Dan Poltawski
            Jason Fowler Jason Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.