Use unescaped node name for missing children

This commit is contained in:
Sukhwinder Dhillon 2023-08-09 12:29:18 +02:00 committed by Johannes Meyer
parent f93873623f
commit 25f37d6575
3 changed files with 4 additions and 4 deletions

View file

@ -448,7 +448,7 @@ class ProcessController extends Controller
protected function prepareMissingNodeLinks(HtmlElement $ul): void
{
$missing = $this->bp->getMissingChildren();
$missing = array_keys($this->bp->getMissingChildren());
if (! empty($missing)) {
$missingLinkedNodes = null;
foreach ($this->bp->getImportedNodes() as $process) {

View file

@ -701,7 +701,7 @@ class BpConfig
$msg = $this->isFaulty()
? sprintf(
t('Trying to import node "%s" from faulty config file "%s.conf"'),
$name,
self::unescapeName($name),
$this->getName()
)
: sprintf(t('Trying to access a missing business process node "%s"'), $name);

View file

@ -275,11 +275,11 @@ class BpNode extends Node
foreach ($this->getChildren() as $child) {
if ($child->isMissing()) {
$missing[$child->getName()] = $child;
$missing[$child->getAlias()] = $child;
}
foreach ($child->getMissingChildren() as $m) {
$missing[$m->getName()] = $m;
$missing[$m->getAlias()] = $m;
}
}