Closed (fixed)
Project:
Privatemsg
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2010 at 13:31 UTC
Updated:
8 Jan 2011 at 13:30 UTC
Jump to comment: Most recent file
On line 1168 of privatemsg.module, there is a bug causing HTML validation failure of user pages in Drupal 7. The line currently reads $account->content['privatemsg_send_new_message'] = array( This causes the privatemsg link to be printed outside of any existing section, which means that its
$account->content['summary']['privatemsg_send_new_message'] = array( . This displays the link in the same place, but is valid HTML.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | fix_invalid_html2.patch | 5.29 KB | berdir |
| #5 | fix_invalid_html.patch | 3.16 KB | berdir |
| #2 | privatemsg_user_profile_item.patch | 757 bytes | mamarley |
Comments
Comment #1
berdirCan you create this as a patch?
I've noticed this too but wasn't sure how to fix it. Speaking, I was not sure if we should create a new profile_category instead of using an existing one. I will have to try this out.
Thanks for testing :)
Comment #2
mamarley commentedHere is the patch. I have also noticed in the privatemsg.theme.inc file there are a number of arrays with "weight => somenumber". These also fail validation, because for some reason the weight value shows up as an attribute to the th tag of the table. It is well beyond my skill level to fix this, however.
Comment #3
berdirThanks, always set the status to needs review after you uploaded it, then it will be automatically tested by our test bot.
I will look into the weight issue, sound strange, never noticed that before...
Comment #4
BenK commentedSubscribing
Comment #5
berdirHm. The problem with your patch is that our private message thingy is below the User History group in the html. This is imho wrong.
This patch converts it to a simple link and doesn't use the user_profile_item stuff. What do you think?
The patch also fixes the mentioned weight issue, nice catch!
Comment #6
mamarley commentedLooks good!
Comment #8
berdirThanks for testing, fixed the test, so this should be good.
Comment #9
berdirCommited, needs to be backported to 6.x-2.x later on.
Comment #10
berdirPorted profile link to 6.x-2.x. The weight issue did not exist in this version because it is solved differently.