Moodle
  1. Moodle
  2. MDL-18097

originating course is missing from navigation bar after adding new post to personal blog

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.2
    • Fix Version/s: None
    • Component/s: Blog
    • Labels:
      None
    • Environment:
      mysql 5, php 5, apache 2, moodle 1.9.2
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Rank:
      4985

      Description

      clicking the "add new post" on the "blog menu block" and then adding a new post...
      i am navigated successfully to my personal (site) blog page. in which i can not directly
      return to the course i was just at before pressing the "add new blog post" link.

      i guess the $courseid was not passed on or plain missing from moodle/blog/edit.php "add" action switch.

      to fix it, please add after line 101~ (just after " $post->publishstate = 'site'; " ) :
      $post->courseid = $courseid;

        Activity

        Nadav Kavalerchik created issue -
        Helen Foster made changes -
        Field Original Value New Value
        Difficulty Easy
        Assignee Mathieu Petit-Clair [ scyrma ] moodle.com [ moodle.com ]
        Martin Dougiamas made changes -
        Workflow jira [ 30498 ] MDL Workflow [ 44433 ]
        Martin Dougiamas made changes -
        Workflow MDL Workflow [ 44433 ] MDL Full Workflow [ 72808 ]
        Helen Foster made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: