The number of redirects showed in the vertical tabs is wrong when there are multiple tables of redirects on the node edit page (which is the case when using relation_add fields). In my case, I have 2 redirects, but the vertical tab shows 19. There are 17 other tables showing redirects on the page.

Only the number of redirects shown in the vertical tabs must be counted.

Comments

mauritsl’s picture

Status: Active » Needs review
StatusFileSize
new849 bytes

Patch attached fixes this issue.

mauritsl’s picture

StatusFileSize
new840 bytes

Was a little rash. Last patch shows 1 redirect when there are none. Fixed in this patch.
I also changed .size() to .length, since .size() is now deprecated, see http://api.jquery.com/size/

justanothermark’s picture

StatusFileSize
new731 bytes

Rather than using a more specific selector I think it would be better to use the context parameter provided. I've included the change from (deprecated) size() to length from #2 as well.

dave reid’s picture

Status: Needs review » Fixed

#3 made perfect sense. Committed it to 7.x-1.x. Thanks all!
http://drupalcode.org/project/redirect.git/commit/0b7b8dc

Status: Fixed » Closed (fixed)

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