--- orig/webform_report.module 2008-10-28 14:45:38.000000000 +0100 +++ patched/webform_report.module 2009-05-25 13:42:00.583413203 +0200 @@ -227,7 +227,7 @@ // What to update, based on url arguments. if(arg(2) == 'add' | arg(2) == 'edit') { if(arg(4) == 'criteria') { - db_query("UPDATE {webform_report}u SET wnid = %d, kcid = %d, sort = %d, components = '%s', filter_type = %d, filter_value = '%s', results_per_page = %d + db_query("UPDATE {webform_report} SET wnid = %d, kcid = %d, sort = %d, components = '%s', filter_type = %d, filter_value = '%s', results_per_page = %d WHERE nid = '" . $node->nid . "'", $node->wnid, $node->kcid, $node->sort, addslashes(serialize($node->components)), $node->filter_type, $node->filter_value, $node->results_per_page ); @@ -262,7 +262,7 @@ '#type' => 'textfield', '#title' => t('Title'), '#required' => TRUE, - '#default_value' => t($node->title), + '#default_value' => $node->title, '#weight' => -9, '#description' => t('Enter a title for your Webform report page') ); @@ -270,7 +270,7 @@ '#type' => 'textarea', '#title' => t('Description'), '#description' => t('The description will be displayed at the top of the report page'), - '#default_value' => t($node->description), + '#default_value' => $node->description, '#required' => FALSE, '#weight' => -8 );