mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 09:14:58 +02:00
Fix issue processwire/processwire-issues#288
This commit is contained in:
@@ -773,6 +773,7 @@ class ProcessPageAdd extends Process implements ConfigurableModule, WirePageEdit
|
|||||||
$field->setSecondary();
|
$field->setSecondary();
|
||||||
$form->append($field);
|
$form->append($field);
|
||||||
|
|
||||||
|
if(!$this->wire('input')->get('modal')) {
|
||||||
$field = $this->modules->get('InputfieldSubmit');
|
$field = $this->modules->get('InputfieldSubmit');
|
||||||
$field->attr('id+name', 'submit_publish_add');
|
$field->attr('id+name', 'submit_publish_add');
|
||||||
$field->attr('value', $this->_('Save + Publish + Add Another'));
|
$field->attr('value', $this->_('Save + Publish + Add Another'));
|
||||||
@@ -780,6 +781,7 @@ class ProcessPageAdd extends Process implements ConfigurableModule, WirePageEdit
|
|||||||
$form->append($field);
|
$form->append($field);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// $allowedTemplates = $this->getAllowedTemplates();
|
// $allowedTemplates = $this->getAllowedTemplates();
|
||||||
if(count($allowedTemplates) == 1) {
|
if(count($allowedTemplates) == 1) {
|
||||||
|
Reference in New Issue
Block a user