Fixed issue where page with id 1 exists

This commit is contained in:
Mark Nelson 2016-02-20 18:04:56 +08:00
parent b3676b3f63
commit 362cc5f092
2 changed files with 11 additions and 11 deletions

View file

@ -67,7 +67,7 @@ class edit_form extends \moodleform {
} else { // Add a new template.
// Create a 'fake' page to display the elements on - not yet saved in the DB.
$page = new \stdClass();
$page->id = 1;
$page->id = 0;
$page->sequence = 1;
$this->add_customcert_page_elements($page);
}