Closed (works as designed)
Project:
Blog
Version:
8.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2011 at 12:37 UTC
Updated:
10 Jul 2022 at 10:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
spreethi commentedTest cases for "View Recent Blog Entries"
1) Logged in as administrator, created blog entries, and check user account page for link "View recent blog entries". Administrator role has permission to post new blog entries, and this account has entries so the link shows.
2)Deleted all the blog entries for administrator, checked user account page. "View recent blog entries" is not visible as there are no entries.
3)Logged in as anonymous user with no permission to post blog entries."View recent blog entries" is not visible as the user has no permission.
Attached is patch and screen shot when no blog entries are posted for a user.
Comment #2
spreethi commentedPosting new patch-
Made minor change in the condition check for blog posts as the function returns bool.
Comment #3
Everett Zufelt commentedFeature requests are made against Drupal Core 8.x, since Blog is no longer part of Drupal Core I am moving this to the Blog module project queue.
Comment #4
spreethi commentedUpdating status to needs review in blog project.
Comment #6
spreethi commentedReattaching patch after cloning latest git project from Blog Module repository.
Comment #8
spreethi commentedHi Everett,
I have a question on testbot results.
There were 6 failures reported twice on the same lines 188,191,192 (as shown below) and the issue is to remove the link when there are no posted blog entries for a user. So the test case will never work if it is assuming the link has to always be there.
$this->drupalGet('user/' . $user->uid);
$this->assertResponse(200);
$this->assertText(t('View recent blog entries'), t('View recent blog entries link was displayed'));
// Confirm the recent blog entries link goes to the user's blog page.
$this->clickLink('View recent blog entries');
$this->assertTitle(t("@name's blog | Drupal", array('@name' => format_username($user))), t('View recent blog entries link target was correct'));
So I am not sure how blog.test should be corrected to take care of this feature.
Thanks
Preethi
Comment #9
i.bajrai commentedIf you want to remove the link you can try this:
https://www.drupalcasts.com/blog/remove-users-blog-link-view-recent-blog...
Comment #10
uditrawat#6 works for me, but instead applying that patch i implement that on my custom module.
Comment #11
mohitw commentedComment #12
nevergoneOutdated issue and works as designed.