[TYPO3-core] RFC #11920: TCEforms suggest gives no results with custom TSconfig

Andreas Wolf typo3ml at andreaswolf.info
Thu Sep 10 15:36:06 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is an SVN patch request.

Type: Bugfix

Bugtracker references:

http://bugs.typo3.org/view.php?id=11920


Branches:

trunk


Problem:

When defining custom Page-TSconfig for TCEforms suggest, no results are
returned because t3lib_div::array_merge_recursive_overrule() fails when
trying to overlay the configuration. The root cause is that the config
array is Null if there is no wizard configuration in the TCA.

Take this as an example Page-TSconfig:

TCEFORM.suggest.pages.receiverClass = t3lib_TCEforms_Suggest_DefaultReceiver

(this resembles the default behaviour, so it does not change any
functionality, but it illustrates the bug)


Solution:

Initialize the $config array before using it. If the default
configuration is empty, the Null value will be casted to an empty array
with the fix.


Regards
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqpAMYACgkQHWtXp155bP+XAQCffO6OTHrysGNJ2Uv33UfC7hSN
9hIAn2Ygw/IDvELCFbyT5cWgbVA6Y9pd
=8ea/
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0011920_v1.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090910/ee307c10/attachment.txt 


More information about the TYPO3-team-core mailing list