Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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?
Attachments
Issue Links
| This issue will help resolve: | ||||
| MDL-14214 | Ability to upload files in html editor depends on the context, even in blogs |
|
|
|
| MDL-6443 | Adding a blog entry moves one out of course |
|
|
|
| This issue has been marked as being related by: | ||||
| MDL-9822 | When viewing others' blog you could see "add a new entry" link but when you click on it, it actually add to your own blog |
|
|
|
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.