? notices_210640.patch
? pathauto_help.patch
? pathauto_js_only_necessary.patch
? pathauto_webform_safe.patch
Index: pathauto.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.js,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 pathauto.js
--- pathauto.js	3 Sep 2007 07:55:05 -0000	1.1.2.2
+++ pathauto.js	21 Jan 2008 16:34:25 -0000
@@ -1,6 +1,6 @@
-(function($) {
-  $(function() {
-    if ($("#edit-pathauto-perform-alias").attr("checked")) {
+if (Drupal.jsEnabled) {
+  $(document).ready(function() {
+    if ($("#edit-pathauto-perform-alias").size() && $("#edit-pathauto-perform-alias").attr("checked")) {
       // Disable input and hide its description.
       $("#edit-path").attr("disabled","disabled");
       $("//#edit-path ~ div[@class=description]").hide(0);
@@ -19,4 +19,4 @@
       }
     });
   });
-})(jQuery);
+}
\ No newline at end of file
Index: pathauto.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.module,v
retrieving revision 1.44.4.68
diff -u -p -r1.44.4.68 pathauto.module
--- pathauto.module	19 Jan 2008 21:25:05 -0000	1.44.4.68
+++ pathauto.module	21 Jan 2008 16:34:27 -0000
@@ -614,7 +614,7 @@ function pathauto_form_alter($formid, &$
     else {
       $pathauto_alias = TRUE;
     }
-    if ($pattern && user_access('create url aliases')) {
+    if ($pattern && user_access('create url aliases') && isset($form['path']['path'])) {
       $output = t('An alias will be generated for you. If you wish to create your own alias below, untick this option.');
       if (user_access('administer pathauto')) {
         $output .= t(' To control the format of the generated aliases, see the <a href="@pathauto">Pathauto settings</a>.', array('@pathauto' => url('admin/settings/pathauto')));
