? journal.test
Index: journal.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/journal/journal.install,v
retrieving revision 1.7
diff -u -p -r1.7 journal.install
--- journal.install	3 Nov 2008 23:17:50 -0000	1.7
+++ journal.install	15 Jun 2009 01:59:02 -0000
@@ -2,6 +2,11 @@
 // $Id: journal.install,v 1.7 2008/11/03 23:17:50 sun Exp $
 
 /**
+ * @file
+ * journal.install for the journal module
+ */
+
+/**
  * Implementation of hook_schema().
  */
 function journal_schema() {
Index: journal.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/journal/journal.module,v
retrieving revision 1.18
diff -u -p -r1.18 journal.module
--- journal.module	5 Jun 2009 16:30:23 -0000	1.18
+++ journal.module	15 Jun 2009 01:59:05 -0000
@@ -139,6 +139,9 @@ function journal_form_alter(&$form, &$fo
     '#description' => t('If not empty, contents of this field will be logged to the system journal.'),
     '#required' => $entry_required,
     '#wysiwyg' => FALSE,
+    //bug fix for issue 474422: Reset #tree to get form values where we expect
+    //them.
+    '#tree' => FALSE,
   );
   if ($entry_required && user_access('access devel information')) {
     $form['journal']['journal_entry']['#required'] = FALSE;
@@ -239,7 +242,7 @@ function journal_block($op = 'list', $de
   }
   else if ($op == 'view' && user_access('access journal')) {
     $block = array();
-    switch($delta) {
+    switch ($delta) {
       case 'backlog':
         $result = db_query("SELECT j.*, u.name FROM {journal} j INNER JOIN {users} u ON j.uid = u.uid WHERE j.location = '%s' ORDER BY j.timestamp DESC", $_GET['q']);
         if ($output = journal_output($result, 'list')) {
@@ -296,7 +299,7 @@ function journal_view() {
 function journal_output($journal, $format = 'table', $header = array()) {
   switch ($format) {
     case 'text':
-      // Output delimiter in first line, since this may chance.
+      // Output delimiter in first line, since this may change.
       $output = '\t' . "\n";
       
       while ($entry = (is_array($journal) ? array_shift($journal) : db_fetch_object($journal))) {
