? book.revision-log.patch
? install-notify-update.patch
? modules/book/.book.module.swp
? sites/default/files
? sites/default/settings.php
Index: modules/book/book.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/book/book.module,v
retrieving revision 1.475
diff -u -p -r1.475 book.module
--- modules/book/book.module	16 Nov 2008 19:41:14 -0000	1.475
+++ modules/book/book.module	22 Nov 2008 15:47:17 -0000
@@ -545,7 +545,7 @@ function book_update_bid($book_link) {
 
   if ($mlids) {
     db_update('book')
-      ->fields(array('bid', $book_link['bid']))
+      ->fields(array('bid' => $book_link['bid']))
       ->condition('mlid', $mlids, 'IN')
       ->execute();
   }
Index: modules/book/book.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/book/book.test,v
retrieving revision 1.3
diff -u -p -r1.3 book.test
--- modules/book/book.test	15 May 2008 21:19:24 -0000	1.3
+++ modules/book/book.test	22 Nov 2008 15:47:17 -0000
@@ -27,7 +27,7 @@ class BookTestCase extends DrupalWebTest
    */
   function testBook() {
     // Create users.
-    $book_author = $this->drupalCreateUser(array('create new books', 'create book content', 'add content to books'));
+    $book_author = $this->drupalCreateUser(array('create new books', 'create book content', 'edit own book content', 'add content to books'));
     $web_user = $this->drupalCreateUser(array('access printer-friendly version'));
 
     // Create new book.
@@ -63,6 +63,21 @@ class BookTestCase extends DrupalWebTest
     $this->checkBookNode($nodes[2], NULL, $nodes[1], $nodes[0], $nodes[3]);
     $this->checkBookNode($nodes[3], NULL, $nodes[2], $book, $nodes[4]);
     $this->checkBookNode($nodes[4], NULL, $nodes[3], $book, false);
+
+    $this->drupalLogout();
+
+    // Move a page to a different book.
+    $this->drupalLogin($book_author);
+    $other_book = $this->createBookNode('new');
+    $node = $this->createBookNode($book->nid);
+    $edit = array('book[bid]' => $other_book->nid);
+    $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
+
+    $this->drupalLogout();
+    $this->drupalLogin($web_user);
+    $this->book = $other_book;
+    $this->checkBookNode($other_book, array($node), false, false, $node);
+    $this->checkBookNode($node, NULL, $other_book, $other_book, false);
   }
 
   /**
