Closed (fixed)
Project:
Pathauto
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2008 at 12:18 UTC
Updated:
8 Feb 2008 at 20:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
pulpzebra commentedit looks like there's a js error that doesn't allow clicking on the fielldset label to trigger the collapsed status. It works on drupal 5.2... change of jquery library since then?
Comment #2
quicksketchIt's actually a problem caused by Pathauto I believe. pathauto.js assumes that the form elements it affects are always on the node edit form (which is not the case with webform).
To reproduce:
- Install and enable webform 1.x and pathauto 2.x
- Create a new webform
- Add a textarea component
A javascript error will be thrown "elem has no properties".
$("#edit-pathauto-perform-alias").attr("checked") is the culprit. Let's just add a check to keep pathauto from trying to check properties on the non-existent element.
Comment #3
pulpzebra commentedok! this patch do solves the problem. (thanx a lot!)
Comment #4
gregglesHere's a slightly different take. I've used Quicksketch's javascript patch (thanks for that!) and then also made sure that there is a path field for us to modify before altering the form and adding the js. Look good?
Thanks!
Comment #5
gregglesOk, applied to both DRUPAL-5--2 and HEAD (6.x).
Thanks for the notification and javascript fix, quicksketch.
Comment #6
gregglesbetter performance because Pathauto will no longer try to create an alias if there is no pattern set for this type nor a default. Sweetness.
(see http://drupal.org/node/209165#comment-705629 for more details on that performance bit)
Comment #7
quicksketchThanks greggles!
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.