bug #1782332 New table form does not overtake data

This commit is contained in:
Marc Delisle
2007-09-13 00:06:29 +00:00
parent 5b5bb08c84
commit 0fb92cac67
2 changed files with 2 additions and 0 deletions

View File

@@ -254,6 +254,7 @@ if (isset($_REQUEST['do_save_data'])) {
*/
// check number of fields to be created
if (isset($_REQUEST['submit_num_fields'])) {
$regenerate = true; // for libraries/tbl_properties.inc.php
$num_fields = $_REQUEST['orig_num_fields'] + $_REQUEST['added_fields'];
} elseif (isset($_REQUEST['num_fields']) && intval($_REQUEST['num_fields']) > 0) {
$num_fields = (int) $_REQUEST['num_fields'];