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

Editing imscp resource ends with error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Resource
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      1) create imscp resource
      2) visualize it.
      3) Edit it (settings)
      4) without doing anything press "save and return to course" or "save an view"
      5) Get this error:

      Fatal error: Call to a member function get_mimetype() on a non-object in /Users/stronk7/cvs_moodle/moodle_head/mod/imscp/mod_form.php on line 83

      Also, when editing the existing imscp (step 3 above), nothing shows the previously selected package.

      Finally, about the "revisions" to archive... are they really useful? Any way to recover any of them? As far as I've seen all it does is to use the "itemid" to keep the revision. That lead us to 2 fileareas associated to the same "thing" (the imscp activity), one having ids and the other not having them (one exception in all the file areas I've been handling until now).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                stronk7 Eloy Lafuente (stronk7)
                Tester:
                Nobody
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10