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

Missing confirmation on attempts deleting

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.4, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.7
    • 1.6.4, 1.7.1, 1.8
    • Quiz
    • None
    • MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE
    • 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

            timhunt Tim Hunt
            upo Roberto Pinna
            Nobody Nobody
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              17/Jan/07