Moodle

In Blogs, when using "View course entries" the "&courseid=" is missing on "Add a new entry."

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.8, 1.9
  • Fix Version/s: None
  • Component/s: Blog
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

The "Add a new entry" link at the top of the page and the "Add a new entry" link in the "Blog Menu" block have different URLs.

On this page:
/blog/index.php?filtertype=course&filterselect=61
(View course entries)

The "Add a new entry" link in the "Blog Menu" block, links to:
/blog/edit.php?action=add&courseid=61

"Add a new entry" link at the top to the page links to:
/blog/edit.php?action=add

Note that the "&courseid=61" part is missing on this second link.
They should be the same, shouldn't they?

Issue Links

Activity

Hide
Charles Kelly added a comment -

Here's the quick temporary fix I used to prevent students from submitting blog entries only to the site and not to the course which they are currently in.

Other Moodle sites which use blogs, might want to do something similar until this bug gets resolved.

In /blog/lib.php, I commented out lines 93 through 95
(The resulting commented out lines look like this.)

//CK if (has_capability('moodle/blog:create', $sitecontext)) { //CK //the user's blog is enabled and they are viewing their own blog //CK $addlink = '<div class="addbloglink">'; //CK $addlink .= '<a href="'.$CFG->wwwroot .'/blog/edit.php?action=add'.'">'. get_string('addnewentry', 'blog').'</a>'; //CK $addlink .= '</div>'; //CK echo $addlink; //CK }

Since we have the "blog menu" block, students can add entries using the link in the block, so there is really no need to have the "add a new entry" link twice.

Show
Charles Kelly added a comment - Here's the quick temporary fix I used to prevent students from submitting blog entries only to the site and not to the course which they are currently in. Other Moodle sites which use blogs, might want to do something similar until this bug gets resolved. In /blog/lib.php, I commented out lines 93 through 95 (The resulting commented out lines look like this.) //CK if (has_capability('moodle/blog:create', $sitecontext)) { //CK //the user's blog is enabled and they are viewing their own blog //CK $addlink = '<div class="addbloglink">'; //CK $addlink .= '<a href="'.$CFG->wwwroot .'/blog/edit.php?action=add'.'">'. get_string('addnewentry', 'blog').'</a>'; //CK $addlink .= '</div>'; //CK echo $addlink; //CK } Since we have the "blog menu" block, students can add entries using the link in the block, so there is really no need to have the "add a new entry" link twice.
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
Michael de Raadt added a comment -

I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: