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

Missing confirmation on attempts deleting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.4, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.7
    • Fix Version/s: 1.6.4, 1.7.1, 1.8
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      In mod/quiz/report/overview/report.php on line 428 (v 1.27.2.13 2006/02/12 21:02:18) there is a typo

      echo '<form id="attemptsform" method="post" action="report.php" onsubmit="var menu = document.getElementById(\'menuaction\'); return (menu.options[menu.selectedIndex].value == \'delete\' ? \''.$strreallydel.'\' : true);">';

      should be something like

      echo '<form id="attemptsform" method="post" action="report.php" onsubmit="var menu = document.getElementById(\'menuaction\'); return (menu.options[menu.selectedIndex].value == \'delete\' ? confirm(\''.$strreallydel.'\' ): true);">';

      just for asking a confirmation on deleting

      Bobo.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            upo Roberto Pinna
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Jan/07