[TYPO3-mvc] foreign_sortby messes up fields
Frank Krueger
fkrueger-ml at mp-group.net
Fri Sep 30 13:49:15 CEST 2011
Hello Christian,
it seems that there is an error in your IRRE-TCA configuration.
AFAIK the foreign_sortby does not work with extbase yet; you have to use a
sorting function when collecting your childs in your model.
Best regards,
Frank
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Christian Kartnig
Gesendet: Freitag, 30. September 2011 09:51
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] foreign_sortby messes up fields
Hi!
I just discovered a very strange behaviour. I have an aggregate root named
"company" and several 1:n IRRE relations to it. If I specify the sorting via
"foreign_sortby", the field specified gets overwritten by numbers that
indicate the sorting, everytime I create a new child record.
e.g. I have three records of the child object 'turnover', where
foreign_sortby is set to the field 'year'. When I create a new turnover
record, the existing three records have 1,2,3 in their 'year' field, instead
of '2007', '2008', '2009'.
Can anyone confirm this behaviour? Should I file a bug?
best regards,
Christian
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list