As reported by webernet at #367063-1: Project issue regressions, if you try to edit an existing followup comment on an issue, you get errors:

A) The usual issue metadata fields are gone, but when you try to preview, you get a validation error because it thinks the project and issue title are empty (and it then displays the metadata fields).

B) The comment_alter_taxonomy field is there, whereas on the current D5 site, none of that is present while editing a followup (which is good, since if you want to change the tags, just like any other metadata, you should followup again so there's a history of changes).

C) The comment_upload fieldset is there, which we also don't want (for the same reasons).

Comments

hunmonk’s picture

Status: Active » Needs review
StatusFileSize
new2.93 KB

this patch should fix things, and also fixes the busted breadcrumbs on comment edit pages. probably want to backport a portion of this to 5.x for the breadcrumb part...

the basic problem was that the AHAH fix was pointing the submit buttons to the wrong place on comment edit forms, so i just moved it below the check for an existing comment. the breadcrumbs are fixed by a small new function that tests for the comment edit page, and moving the breadcrumb set function _above_ the test for an existing comment.

dww’s picture

Status: Needs review » Reviewed & tested by the community

Works for my local testing and code looks great. Thanks!

dww’s picture

Status: Reviewed & tested by the community » Fixed

This was committed and deployed before the site went live.

dww’s picture

Status: Fixed » Active

Nope, still broken. If you edit a followup, you now get "You must enter a project to navigate to."

hass’s picture

Subscribe

joachim’s picture

Subscribe.

boombatower’s picture

subscribe.

EDIT: this comment was changed.

damien tournoud’s picture

B) The comment_alter_taxonomy field is there, whereas on the current D5 site, none of that is present while editing a followup (which is good, since if you want to change the tags, just like any other metadata, you should followup again so there's a history of changes).

This part of the issue was fixed and deployed on #377572: Taxonomy widgets are displayed on comment editing.

hunmonk’s picture

Assigned: Unassigned » hunmonk
Status: Active » Needs review
StatusFileSize
new821 bytes

attached is running on d.o, and i think it fixes the problem. can i get some testing?

boombatower’s picture

heh: #7 worked.

dww’s picture

Status: Needs review » Fixed

Reviewed, tested, and committed to HEAD. I'm about to push out a new copy of project_issue to d.o, so I wanted to get this in there officially.

Status: Fixed » Closed (fixed)
Issue tags: -drupal.org upgrade

Automatically closed -- issue fixed for 2 weeks with no activity.