Added missing element 'pageid' value
This commit is contained in:
parent
24974bc5af
commit
be25ea3637
2 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,7 @@ abstract class element {
|
|||
$this->element = clone($element);
|
||||
|
||||
$this->id = $element->id;
|
||||
$this->pageid = $element->pageid;
|
||||
$this->name = $element->name;
|
||||
$this->data = $element->data;
|
||||
$this->font = $element->font;
|
||||
|
|
|
@ -48,6 +48,7 @@ class element_factory {
|
|||
|
||||
$data = new \stdClass();
|
||||
$data->id = isset($element->id) ? $element->id : null;
|
||||
$data->pageid = isset($element->pageid) ? $element->pageid : null;
|
||||
$data->name = isset($element->name) ? $element->name : get_string('pluginname', 'customcertelement_' . $element->element);
|
||||
$data->element = $element->element;
|
||||
$data->data = isset($element->data) ? $element->data : null;
|
||||
|
|
Loading…
Reference in a new issue