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

        Hide
        Helen Foster added a comment -

        Nadav, thanks for your report and suggested fix.

        I'm not convinced that users should have a course link in the navigation bar after adding a new blog post though, since blogs are outside of courses, and if a course link is added, it makes it look like the blog is within a course.

        Reassigning to moodle.com for consideration.

        Show
        Helen Foster added a comment - Nadav, thanks for your report and suggested fix. I'm not convinced that users should have a course link in the navigation bar after adding a new blog post though, since blogs are outside of courses, and if a course link is added, it makes it look like the blog is within a course. Reassigning to moodle.com for consideration.
        Hide
        Nadav Kavalerchik added a comment -

        so how can users get back to the course they were in before the post ?

        maybe the new post edit page should appear in a new pop-up window
        and upon submitting the post, the window closes and the user is back
        in the course he/she was in the first place ?

        Show
        Nadav Kavalerchik added a comment - so how can users get back to the course they were in before the post ? maybe the new post edit page should appear in a new pop-up window and upon submitting the post, the window closes and the user is back in the course he/she was in the first place ?
        Hide
        Michael de Raadt added a comment -

        Thanks for reporting this issue.

        We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

        If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

        Michael d;

        lqjjLKA0p6

        Show
        Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
        Hide
        Nadav Kavalerchik added a comment -

        Not relevant to Moodle 2.x

        Show
        Nadav Kavalerchik added a comment - Not relevant to Moodle 2.x
        Hide
        Helen Foster added a comment -

        Closing as per comment.

        Show
        Helen Foster added a comment - Closing as per comment.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: