[TYPO3-dam] DAM and 4.1

Patric Pesch p.pesch at 11com7.de
Fri Feb 2 09:42:14 CET 2007


Karl-Ernst Kiel schrieb:
> One thing did not work: Selection of dam elements using categories in
> the Media->List module. (but tx_dam_mm_cat are OK!)

Hi and thanks for testing.
Can you perform an other little test?

> Hi list,
> 
> with my installation of DAM 1.1 beta 03 i have the same bug like Patric has with selections in the backend.
> 
> In the generated SELECT clause, there is a missing 'tx_dam_cat' after FROM,
> So the SELECT fails because he doesn't know where the tx_dam_cat.delete comes from.
> 
> I think what is missing is adding the tables of $select['enableFields'] to $queryParts['FROM'] in class.tx_dam_querygen.php function getQueryParts.
> (I did a hack and I add 'tx_dam_cat' to queryParts['FROM'] if is in array of enabled Fields)
> 
> [Hack at line #437]
> if(isset($select['enableFields']['tx_dam_cat'])){
> 	$queryParts['FROM'] = 'tx_dam_cat, ' . $queryParts['FROM']; 
> }
> [/Hack]

There's a bug in DAM 1.1 beta 03 (i think). With the beta i also wasn't
able to sort with categories. Can you change the line and try again?
Perhaps it works.

Greetings,
Patric


More information about the TYPO3-project-dam mailing list