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 05a3a7c7d3
commit 7967d17690
2 changed files with 11 additions and 0 deletions

View File

@@ -420,6 +420,16 @@ $GLOBALS['js_include'][] = 'functions.js';
$GLOBALS['js_include'][] = 'mootools.js';
$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.
*/