bug #2821757 [insert] "Insert another new row" no longer worked

This commit is contained in:
Marc Delisle
2009-07-15 09:46:45 +00:00
parent 22f4466599
commit 9a45818b22
2 changed files with 11 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #2816840 [priv] Cannot change a user's details - bug #2816840 [priv] Cannot change a user's details
- bug #2816165 [display] Executed query not always displayed - bug #2816165 [display] Executed query not always displayed
- bug #2819944 [setup] Incorrect mention of designer_coords - bug #2819944 [setup] Incorrect mention of designer_coords
- bug #2821757 [insert] "Insert another new row" no longer worked
3.2.0.1 (2009-06-30) 3.2.0.1 (2009-06-30)
- [security] XSS: Insufficient output sanitizing in bookmarks - [security] XSS: Insufficient output sanitizing in bookmarks

View File

@@ -420,6 +420,16 @@ $GLOBALS['js_include'][] = 'functions.js';
$GLOBALS['js_include'][] = 'mootools.js'; $GLOBALS['js_include'][] = 'mootools.js';
$active_page = $goto_include; $active_page = $goto_include;
/**
* If user asked for "and then Insert another new row" we have to remove
* primary key information so that tbl_change.php does not go back
* to the current record
*/
if (isset($_REQUEST['after_insert']) && 'new_insert' == $_REQUEST['after_insert']) {
unset($_REQUEST['primary_key']);
}
/** /**
* Load header. * Load header.
*/ */