mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 03:05:26 +02:00
Minor adjustment in ProcessPageEdit
This commit is contained in:
@@ -1385,6 +1385,9 @@ class ProcessPageEdit extends Process implements WirePageEditor, ConfigurableMod
|
||||
if(!$label) $label = $template->label ? $template->label : $template->name;
|
||||
$field->addOption($template->id, $label);
|
||||
}
|
||||
} else {
|
||||
$template = $this->page->template;
|
||||
$field->addOption($template->id, $template->getLabel());
|
||||
}
|
||||
} else {
|
||||
/** @var InputfieldMarkup $field */
|
||||
|
Reference in New Issue
Block a user