ObjectController: branch hint on create

This commit is contained in:
Thomas Gelf 2022-09-20 12:06:52 +02:00
parent 2a5909917b
commit 39f53b6cee

View File

@ -157,6 +157,10 @@ abstract class ObjectController extends ActionController
} else { } else {
$this->addObject(); $this->addObject();
} }
$branch = $this->getBranch();
if ($branch->isBranch() && ! $this->getRequest()->isApiRequest()) {
$this->content()->add(new BranchedObjectHint($branch, $this->Auth()));
}
$form->handleRequest(); $form->handleRequest();
$this->content()->add($form); $this->content()->add($form);