This bug popped up when trying to modify the order of fields on the "Comment Fields" tab for a content type (in the case of article type, admin/structure/types/manage/article/comment/fields). Here are the relevant issues:
A. Regardless of where "Subject textfield" is designated to appear (above or below other fields), it is always appearing as the top field in the comment add form.
B. Changing the order of fields on the "Comment Fields" page is inadvertently changing the order of fields on the "Comment Display" page (admin/structure/types/manage/article/comment/display). This appears to be an issue not only with comments but with the Fields UI in general. (I first experienced this using the Private Message contrib module, which uses the Fields UI, then confirmed it also exists in core.)
Here's how you can reproduce:
1. Make a custom Comment field (image type) called "Comment Image."
2. On the "Comment Fields" page, place Comment Image above all fields (above "Author," "Comment," and "Subject").
3. On the "Comment Display" page, place Comment Image above all fields (above "Comment").
4. Go back to the "Comment Fields" page and move Comment Image below all fields. Then click "Save."
5. Now go back to the "Comment Display" page... Suddenly, Comment Image will be below Comment.
And I've confirmed that when viewing a comment, the order of fields have been re-arranged even though the site admin made no changes to the Comment Display page. Any idea what could be causing this? As far as I can tell, the Comment Fields page order affects the Comment Display page order, but not vice versa.
C. Aren't the "Author" and "Subject" fields supposed to appear on the "Comment Display" page (so that they can be re-ordered)? Currently, "Author" and "Subject" only appear on the "Comment Fields" page (even though "Comment" appears on both pages).
I hope all of this makes sense... let me know if it doesn't.
Thanks,
Ben
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | comment_subject_reorder_857296.patch | 510 bytes | yched |
Comments
Comment #1
yched commentedA. is fixed by the attached patch. Stupid typo, I dare say it's RTBC.
I can reproduce B, but that requires separate investigation. Could you open a separate issue (and report the link here), this is most likely completely unrelated.
C : Comment "subject' and 'author', just like 'Title' and 'submitted by' for nodes,,are hardcoded in comment.tpl.php and thus cannot be reordered like the rest of the $ĉontent.
Comment #2
yched commented"Could you open a separate issue [for B]"
Never mind, found it. #878294: Field UI reorder on 'Manage fields' affects ordering on 'Manage display'
Comment #3
yched commentedreducing scope to A.
Comment #4
dries commentedCommitted to CVS HEAD. Thanks.