[TYPO3-bugs] RFC: Bug 4446 tcemain: Hook processDatamap_afterDatabaseOperations and insert operations

Julian Kleinhans jk at marketing-factory.de
Tue Mar 13 17:13:46 CET 2007


Hi Ingmar


> You can easily translate from the NEW... id to the real id by using the
> $tce->substNEWwithIDs array.


i use TYPO3 4.1 Final and the Array $this->substNEWwithIDs is always 
empty after database operations


function processDatamap_afterDatabaseOperations($status, $table, $id, 
$fieldArray, $this){
   echo t3lib_div::debug($this->substNEWwithIDs,__FILE__.__LINE__);
.....



Bug or blind ;-) ?!

greetz julian


> 
> Of course it would have been much better if the real id would have been
> passed to the hook from the beginning on, but unfortunately that wasn't
> the case and changing it now would break backwards compatibility.
> 
> I have changed the comment describing the hook so this gets clear, see
> attached patch for details.
> 
> cheers
> Ingmar


-- 
Julian Kleinhans                    mailto:jk at marketing-factory.de
Marketing Factory Consulting GmbH   http://typo3.marketing-factory.de/
Content Management mit Typo3: Beratung - Schulung - Realisierung


More information about the TYPO3-team-bugs mailing list