--- phpMyEdit.class.php 2004-01-20 21:04:29.482598400 +0100 +++ phpMyEdit.class.sqlw-recreate.php 2004-01-21 22:09:09.716960000 +0100 @@ -2597,9 +2597,9 @@ $this->filter_operation() && $this->page_type = 'F'; $this->view_operation() && $this->page_type = 'V'; $this->delete_operation() && $this->page_type = 'D'; - $this->add_operation() && $this->page_type = 'A'; - $this->change_operation() && $this->page_type = 'C'; - $this->copy_operation() && $this->page_type = 'P'; + ($this->add_operation() || $this->saveadd == $this->labels['Save'] || $this->moreadd == $this->labels['More']) && $this->page_type = 'A'; + ($this->change_operation() || $this->savechange == $this->labels['Save'] || $this->morechange == $this->labels['Apply']) && $this->page_type = 'C'; + ($this->copy_operation() || $this->saveadd == $this->labels['Save']) && $this->page_type = 'P'; // Restore backups (if exists) foreach (array_keys($this->fdd) as $column) { foreach (array_keys($this->fdd[$column]) as $col_option) { @@ -2784,6 +2784,7 @@ */ if ($this->saveadd == $this->labels['Save']) { $this->add_enabled() && $this->do_add_record(); + $this->recreate_fdd(); } elseif ($this->moreadd == $this->labels['More']) { $this->add_enabled() && $this->do_add_record(); @@ -2793,6 +2794,7 @@ } elseif ($this->savechange == $this->labels['Save']) { $this->change_enabled() && $this->do_change_record(); + $this->recreate_fdd(); } elseif ($this->morechange == $this->labels['Apply']) { $this->change_enabled() && $this->do_change_record();