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

Uninformative error when moving forum without first selecting destination

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.3, 2.7.5, 2.8.3, 2.9.1
    • Fix Version/s: 3.0
    • Component/s: Forum
    • Testing Instructions:
      Hide
      • Create at least two forums in the same course
      • Start a discussion in one of the forums
      • Attempt to move the discussion to the other forum
      • Check that the discussion has been moved successfully
      Show
      Create at least two forums in the same course Start a discussion in one of the forums Attempt to move the discussion to the other forum Check that the discussion has been moved successfully
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-46321-master

      Description

      Steps to Reproduce:
      1. Select a discussion in the Forum
      2. On the Move this discussion to... dropdown leave it on the default (no forum selected to move the discussion to) and click [Move]
      3. Stack Trace error displays:
      Debug info:
      Error code: error
      Stack trace:
      line 463 of /lib/setuplib.php: moodle_exception thrown
      line 40 of /course/jumpto.php: call to print_error()

      The error that gets displayed is just "Error occurred." This is terribly unfriendly. The end user might not understand what they are doing wrong. Seems like it could be a little more informative.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

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