[TYPO3-core] RFC: TCAdefaults for MM-Fields #4022, #4060

Bernhard Kraft kraftb at kraftb.at
Tue Dec 11 18:54:44 CET 2007


Hi


This is an SVN patch request.


Branches: Trunk, 4.1


Problem:
When you set a User/Group/Page TS-Config "TCAdefaults" for setting
default values for new records for fields in a table like:

TCAdefaults.tt_news.category = 1

It will not work when the mentioned field (like the category field
of tt_news) is a "MM" field.



Solution:
The attached patch checks if $MMuid is not set - this is the case if
a new record is created. In this case it uses the ->readList method
instead.


Bugtracker references:
http://bugs.typo3.org/view.php?id=4060
http://bugs.typo3.org/view.php?id=4022


PS: I took me more than 3 hours now to locate and fix this bug ... And
I do not have the time to take care of getting it commited. So if one
of you has the time to test it and it works I would be glad if you can
take care of bringing it into SVN Trunk and 4.1 branch (I think this
bug-fix is a must-have) for 4.1 (Its severiy is set to "block")

If you have the time and can submit it to SVN please leave me a mail.




greets,
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TCAdefaults_MMfield_2007-12-11.diff
Type: text/x-patch
Size: 175 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071211/bced8f73/attachment.bin 


More information about the TYPO3-team-core mailing list