Skip to content

Commit

Permalink
bug #3392150 [schema] PMA_User_Schema::processUserChoice() is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Sep 29, 2011
1 parent 789ed0d commit acbbd8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ phpMyAdmin - ChangeLog
- bug #3324161 [core] CSP policy causing designer JS buttons to fail
- bug #3412862 [relation] Relations/constraints are dropped/created on every change
- bug #3390832 [display] Delete records from last page breaks search
- bug #3392150 [schema] PMA_User_Schema::processUserChoice() is broken

3.4.5.0 (2011-09-14)
- bug #3375325 [interface] Page list in navigation frame looks odd
Expand Down
6 changes: 3 additions & 3 deletions libraries/schema/User_Schema.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function processUserChoice()
$this->_editCoordinates($db, $cfgRelation,$query_default_option);
break;
case 'delete_old_references':
$this->_deleteTableRows($delrow,$cfgRelation,$db,$this->chosenPage);
$this->_deleteTableRows($_POST['delrow'], $cfgRelation, $db, $_POST['chpage']);
break;
case 'process_export':
$this->_processExportSchema();
Expand Down Expand Up @@ -318,7 +318,7 @@ public function showTableDashBoard()
echo "\n" . '</form>' . "\n\n";
} // end if

$this->_deleteTables($db, $this->chosenPage, isset($tabExist));
$this->_deleteTables($db, $this->chosenPage, $tabExist);
}

/**
Expand Down Expand Up @@ -438,7 +438,7 @@ private function _deleteTables($db, $chpage, $tabExist)
}
if ($shoot) {
echo '<form action="schema_edit.php" method="post">' . "\n"
. PMA_generate_common_hidden_inputs($db, $table)
. PMA_generate_common_hidden_inputs($db)
. '<input type="hidden" name="do" value="delete_old_references" />' . "\n"
. '<input type="hidden" name="chpage" value="' . htmlspecialchars($chpage) . '" />' . "\n"
. __('The current page has references to tables that no longer exist. Would you like to delete those references?')
Expand Down

0 comments on commit acbbd8f

Please sign in to comment.