Moodle
  1. Moodle
  2. MDL-24251

undefined courseid in portfolio_export_pagesetup()

    Details

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

      Description

      function portfolio_export_pagesetup($PAGE, $caller) {
      // for build navigation
      if (!$course = $caller->get('course'))

      { $course = $courseid; }

        Activity

        Hide
        Penny Leach added a comment -

        Petr - what did you do to trigger this case? I mean I can see that $courseid is unset, but that should never actually happen as far as I know, can you give me steps to reproduce?

        Show
        Penny Leach added a comment - Petr - what did you do to trigger this case? I mean I can see that $courseid is unset, but that should never actually happen as far as I know, can you give me steps to reproduce?
        Hide
        Petr Škoda added a comment -

        hehe, I did not trigger it, my IDE found it

        Show
        Petr Škoda added a comment - hehe, I did not trigger it, my IDE found it
        Hide
        Penny Leach added a comment -

        fixed in cvs. thanks petr.

        Show
        Penny Leach added a comment - fixed in cvs. thanks petr.
        Hide
        Petr Škoda added a comment -

        thanks!

        Show
        Petr Škoda added a comment - thanks!

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: