Project

General

Profile

Actions

Bug #80101

closed

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

Added by Mathias Blasek about 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Start date:
2017-03-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Epic #88528: Remove switchable controller action functionalityResolved2019-06-08

Actions
Actions #1

Updated by Benni Mack about 5 years ago

  • Target version changed from next-patchlevel to Candidate for patchlevel
Actions #2

Updated by Christian Eßl about 4 years ago

  • Related to Epic #88528: Remove switchable controller action functionality added
Actions #3

Updated by Stefan Froemken about 4 years ago

  • Status changed from New to Needs Feedback

Hello Mathias,

can you please test, if this issue is still valid for TYPO3 9 or 10?

Stefan

Actions #4

Updated by Benni Mack over 2 years ago

  • Status changed from Needs Feedback to Closed

I close this issue now due to lack of feedback after 3 months. Let me know if you think this decision is wrong, so I will re-open the ticket.

Actions

Also available in: Atom PDF