Fixed issue where page with id 1 exists
This commit is contained in:
parent
b3676b3f63
commit
362cc5f092
2 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue