Project

General

Profile

Actions

Bug #22224

closed

Hook getFlexFormDS_postProcessDS can not return anything

Added by Neumann over 14 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Won't have this time
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-03-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In line 1211 the hook method is called like this:
$hookObj->getFlexFormDS_postProcessDS($dataStructArray, $conf, $row, $table, $fieldName);

So there is no way to return anything (namely to manipulate $dataStructArray).
I think the call should be with reference like this:
$hookObj->getFlexFormDS_postProcessDS(&$dataStructArray, $conf, $row, $table, $fieldName);

(issue imported from #M13726)

Actions #1

Updated by Neumann over 14 years ago

Forgot to mention: this is in class.t3lib_befunc.php

Actions #2

Updated by Rico Sonntag about 12 years ago

  • Target version deleted (0)

You can specify the $dataStructArray parameter as reference in your hook implementation to manipulate its content:

public function getFlexFormDS_postProcessDS(
    &$dataStructArray, $conf, $row, $table, $fieldName
) {
   // Now modify $dataStructArray
}
Actions #3

Updated by Frederic Gaus almost 10 years ago

  • Description updated (diff)
  • Status changed from New to Rejected
  • Priority changed from Should have to Won't have this time
  • Is Regression set to No

Rico Sonntag described how to handle this.

Actions

Also available in: Atom PDF