[TYPO3-core] RFC #11920: TCEforms suggest gives no results with custom TSconfig
Rupert Germann
rupi at gmx.li
Sat Sep 12 09:16:13 CEST 2009
FYI committed to trunk rev 5916
greets
rupert
Andreas Wolf schrieb:
> -----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-----
>
More information about the TYPO3-team-core
mailing list