[TYPO3-mvc] foreign_sortby messes up fields
Christian Kartnig
office at hahnepeter.de
Thu Oct 6 09:23:53 CEST 2011
Hello!
> AFAIK the foreign_sortby does not work with extbase yet;
I think it is implemented. At least the sorting gets set in
DataMapFactory->setOneToManyRelation() and the columns also get sorted
correctly. Just when I add an object via the controller, the field
specified in foreign_sortby gets overwritten by the sorting numbers
(1,2,3,...)
@Xavier: it sounds similar, but I think it's not related. I use
foreign_sortby and the renumbering is different.
Best regards,
Christian
Am 30.09.2011 13:49, schrieb Frank Krueger:
> Hello Christian,
>
> it seems that there is an error in your IRRE-TCA configuration.
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