Hi,

Does anybody has this problem, because I don't seem to find any relevant hits?

I am using the Database Administration module for 4.7.4. In the Database Overview page (admin/database), when one selects some tables and clicks the Backup button, it should go to a new page for the actual download. But it just goes back to the database overview page with all checkbox reset.

So I modified the dba_admin_overview() function as below:

function dba_admin_overview() {
  $op = $_POST['op'];
  $edit = $_POST['edit'];

  if (!empty($op) && !empty($edit)) {
    dba_form_database_overview_submit('dba_database_overview_form', $edit);
  }
  
  return dba_database_overview_form();
}

Can you please review the code and update if needed. Let me know if I missed anything. I am running on this:

MySQL version: 4.0.25-standard
PHP version: 4.3.11

Comments

xelat’s picture

I reviewed the function drupal_get_form and found that you can fix it by just renaming the function

dba_form_database_overview_submit($form_id, $form_values)

with

dba_database_overview_form_submit($form_id, $form_values)

So you don't need to modify the function dba_admin_overview() anymore.

nig’s picture

I have the same problem.

I found drupal_get_form in includes/form.inc, line 61, but there is no line saying

dba_form_database_overview_submit($form_id, $form_values)

Nor is there any reference to dba anywhere in drupal_get_form

What to do?

dww’s picture

Status: Active » Closed (duplicate)

http://drupal.org/node/40661#comment-158013

this is already fixed in the DRUPAL-4-7 branch of the code. i'm just waiting to fix one other outstanding bug in the 4.7.x-1.0 release before i make a 4.7.x-1.1 that includes the fix. see http://drupal.org/node/48144 for info on that other bug.

sorry for the delay. i probably should have just released a 4.7.x-1.1 as soon as i fixed this. oh well.

-derek