summaryrefslogtreecommitdiff
path: root/modules/book/book.admin.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/book/book.admin.inc')
-rw-r--r--modules/book/book.admin.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book/book.admin.inc b/modules/book/book.admin.inc
index 34967323f..00c812923 100644
--- a/modules/book/book.admin.inc
+++ b/modules/book/book.admin.inc
@@ -114,7 +114,7 @@ function book_admin_edit_validate($form, &$form_state) {
function book_admin_edit_submit($form, &$form_state) {
// Save elements in the same order as defined in post rather than the form.
// This ensures parents are updated before their children, preventing orphans.
- $order = array_flip(array_keys($form['#post']['table']));
+ $order = array_flip(array_keys($form_state['input']['table']));
$form['table'] = array_merge($order, $form['table']);
foreach (element_children($form['table']) as $key) {