Editing an issue clears out the title

dww - April 26, 2009 - 07:21
Project:Project issue tracking
Version:6.x-1.x-dev
Component:Issues
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

For example:

http://drupal.org/node/443618/revisions/view/528984/531188

All I did was lock comments on a (very ugly) issue thread that needed to be closed. However, once I did, the node no longer knows its title:

http://drupal.org/node/443618

Lame. Pretty sure this is a bug in project_issue itself, due to the hoops we're jumping through to make it so you can't change issue meta-data when editing an issue node directly. I haven't investigated closely, but wanted to submit an issue. If editing issues were any more common, I'd call this "critical". It's certainly a 6.x-1.0 blocker...

#1

JoshuaRogers - May 10, 2009 - 02:02

I see that this obviously happened, but I am unable to repeat it. This is on a local install using drupalorg_testing.

#2

hunmonk - June 5, 2009 - 16:56
Assigned to:Anonymous» hunmonk
Status:active» needs review

further local testing seems to indicate the title is only lost when revisions are enabled for a node. looking at the code, we're not passing through the node title if we're blocking metatdata. i'm not sure why or how it's getting passed in the case where revisions are disabled, but i think we really should be explicitly passing a value anyways.

attached patch seems to do the trick, whether revisions are enabled or not.

AttachmentSize
pi_fix_title_deletion.patch 619 bytes

#3

dww - June 5, 2009 - 23:11
Status:needs review» reviewed & tested by the community

Code looks good. Patch is a reasonable solution to the problem. Tested -- confirmed the bug when editing issues with a new revision, and confirmed the patch fixes it. Thanks!

#4

hunmonk - June 8, 2009 - 23:26
Assigned to:hunmonk» Anonymous
Status:reviewed & tested by the community» active
Issue tags:-6.x-1.0 blocker+needs drupal.org deployment

committed to HEAD and 5.x-2.x-dev. i couldn't reproduce the problem in 5.x, but node titles have been handled by node modules since 4.7, so it seems appropriate to have the patch in 5.x for consistency. i did test it in 5.x, and it works just fine.

setting to active for d.o deployment

#5

dww - August 14, 2009 - 01:40
Status:active» fixed

#6

System Message - August 28, 2009 - 01:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.