1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-26 08:04:38 +02:00
This commit is contained in:
Ryan Cramer
2019-02-07 09:35:07 -05:00
parent ac0f4f0017
commit ea62d73215

View File

@@ -332,9 +332,16 @@ class ProcessPageAdd extends Process implements ConfigurableModule, WirePageEdit
}
$form->add($f);
$f = $this->wire('modules')->get('InputfieldHidden');
$f->attr('name', 'template_id');
$f->attr('value', $template->id);
$form->add($f);
$f = $this->wire('modules')->get('InputfieldSubmit');
$f->attr('id', 'select_parent_submit');
$form->add($f);
return $form->render();
}