From ea62d73215264802fd97fbb9e546525e1b163b17 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 7 Feb 2019 09:35:07 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#807 --- .../modules/Process/ProcessPageAdd/ProcessPageAdd.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module b/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module index 33be4610..d808010d 100644 --- a/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module +++ b/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module @@ -316,7 +316,7 @@ class ProcessPageAdd extends Process implements ConfigurableModule, WirePageEdit $f->attr('name', 'parent_id'); $f->attr('id', 'select_parent_id'); $f->label = sprintf($this->_('Where do you want to add the new %s?'), "\"$templateLabel\""); - $f->description = sprintf($this->_('Please select a parent %s page below:'), "\"$parentTemplateLabel\""); + $f->description = sprintf($this->_('Please select a parent %s page below:'), "\"$parentTemplateLabel\""); $options = array(); foreach($parents as $parent) { @@ -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(); }