AddNodeForm: Add missing getLabel() call

This commit is contained in:
Sukhwinder Dhillon 2024-04-23 12:13:01 +02:00 committed by Johannes Meyer
parent e9a551e581
commit 4c2246a7e0

View file

@ -244,7 +244,7 @@ class AddNodeForm extends CompatForm
} elseif (! $this->bp->hasNode($nodeName)) {
$term->setMessage($this->translate('No node with this name found in config'));
} else {
$term->setLabel($this->bp->getNode($nodeName)->getAlias());
$term->setLabel($this->bp->getNode($nodeName)->getLabel());
}
if ($this->parent !== null && $this->parent->hasChild($term->getSearchValue())) {