1
0
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:
Ryan Cramer
2023-11-10 13:07:58 -05:00
parent 4ffde04a5c
commit c1df78b0a6

View File

@@ -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 */