Issue Bug Closed

#80101Extbase getContentObject() gets no result by calling in another controller

Mathias Blasek 03/02/17, 16:16 updated 11/03/21, 20:30

Description

Following situation:
  • extbase extension with controller classes
  • flexform with “calling cascade” -> in switchableControllerActions in the itemField are the following settings:
<items type="array">
  <numIndex index="0" type="array">
    <numIndex index="0">Label of Form in Backend</numIndex>
    <numIndex index="1">ControllerA->show;ControllerB->edit</numIndex>
  </numIndex>
</items>
  • in my example ControllerB has a detail view of an table entry and is calling by a link of ControllerA (a new user call)
  • both controller inherit from ActionController

When I call the following lines, ControllerA gets a result set of pid and uid. But ControllerB gets an empty set.

$cObj = $this->configurationManager->getContentObject();
$resultset = array("uid" => $cObj->data['uid'], "pid" => $cObj->data['pid']);

Is this behavior intended or is it a bug? Does exists a workaround?

Typo3-Version: 7.6.16

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.