[TYPO3-dev] writeMM problem

Franz Holzinger franz at fholzinger.com
Wed Apr 26 09:24:57 CEST 2006


Hello

> --------
> writeMM of class.t3lib_loaddbgroup.php would be called twice, so that only the groups2 would be saved because writeMM first deletes all relations. This will become a problem especially in common with e.g.dynaflex. I suggest to modify it to be aware of the "foreign_table_where" field.
> 
this is indeed a missing feature. It has been intended that only a
groups field could be used where the first selection would be group1.
However it might be more userfriendly to have to groupx fields.

If someone agrees I can write a patch which also includes the page id.

function writeMM($tableName,$uid,$prependTableName=0,$pid='',$where='')	{


The 'ORDER BY' should be removed before copying the
'foreign_table_where' clause to the $where parameter.
The $pid is needed to make mm (or M:N) tables listable in the LIST module.

Greets,

Franz




More information about the TYPO3-dev mailing list