Drag and drop deletes URL path settings for terms

halstead - June 24, 2009 - 01:42
Project:Edit term
Version:6.x-1.2
Component:Code
Category:bug report
Priority:critical
Assigned:halstead
Status:closed
Description

When reordering using the drag & drop feature on admin/content/taxonomy/1 custom url aliases are deleted for any term that been moved. (And saved.)

Commenting out "path_set_alias($termpath);" near line 360 fixes the problem.

It looks like the line above used to be needed in the past because the test was "if ($term->path) {" in the past but now that it has been changed to "if (isset($term->path)) {" it's not needed anymore.

#1

halstead - June 24, 2009 - 01:46

A proper patch. I tested with pathauto it seems to work fine.

AttachmentSize
edit_term-500396.patch 1.02 KB

#2

halstead - July 7, 2009 - 17:49
Status:active» needs review

Could someone take a look at this patch? Thanks.

#3

halstead - September 15, 2009 - 18:08
Assigned to:Anonymous» halstead

I'm attaching a cleaner copy of this patch against DRUPAL-6--1 which seems to be more up to date then HEAD.

AttachmentSize
edit_term-500396.patch 900 bytes

#4

lotyrin - September 16, 2009 - 20:03
Status:needs review» reviewed & tested by the community

Tested.

#5

tuffnatty - September 24, 2009 - 09:30

Tested the patch and it works.

#6

tuffnatty - September 24, 2009 - 09:39
Priority:normal» critical
Status:reviewed & tested by the community» patch (to be ported)

#7

dman - September 24, 2009 - 11:09
Status:patch (to be ported)» fixed

Yeah, that looks logical. Trusting that nothing too bad has come up in testing, I've committed to dev.

Thanks for that, and especially thanks for the testing!
Fixed in dev. Is it worth a point release? Lossage is bad, but maybe we can throw a feature in as well to make it worthwhile?

.dan.

#8

tuffnatty - September 28, 2009 - 10:00

I've lost hundreds of term aliases a couple of times before I understood the nature of the bug, and had to reenter them manually, so I vote for a release.

#9

dman - September 28, 2009 - 10:42

Fair enough!
[#589934]
I found another fix to roll in, so it's worth it. Looks like a few other issues/conflicts with aliases may also have been related to this.

#10

System Message - October 12, 2009 - 10:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.