diff options
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.admin.inc | 2 | ||||
-rw-r--r-- | modules/book/book.pages.inc | 1 |
2 files changed, 1 insertions, 2 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) { diff --git a/modules/book/book.pages.inc b/modules/book/book.pages.inc index a6139279a..cc61821ad 100644 --- a/modules/book/book.pages.inc +++ b/modules/book/book.pages.inc @@ -246,7 +246,6 @@ function book_form_update() { form_set_cache($_POST['form_build_id'], $form, $cached_form_state); // Build and render the new select element, then return it in JSON format. $form_state = array(); - $form['#post'] = array(); $form = form_builder($form['form_id']['#value'] , $form, $form_state); $output = drupal_render($form['book']['plid']); drupal_json(array('status' => TRUE, 'data' => $output)); |