Project

General

Profile

Actions

Bug #17043

closed

Hook processDatamap_afterDatabaseOperations bug with inline relations?

Added by Stefano Cecere over 17 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-02-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

i am using the hook processDatamap_afterDatabaseOperations to process a field in a custom table, where i have an inline relation with another table.

the value of this calculated field is based on the NUMBER of linked (by inline relations) records.

the problem is this:

whenever i add or remove an inline relationed record, and save the form, my calculated field is wrong: my function (which counts the linked records with a simple query) gets the PREVIUOS count of linkied records...

it seems that the inline relationschip db updates happen AFTER the hook is called...
the proof is that if i RE-SAVE the form, the field gets a correct value.

i looked into class.t3lib_tcemain.php and i think that the problem is in the loop around all the tables to be updated... i think that the main table gets updated first... so it call my hook/function.. then it updated the inline relationed table

any comment/ideas?

(issue imported from #M5074)


Files

0005074.patch (4.89 KB) 0005074.patch Administrator Admin, 2007-03-01 13:44
class.t3lib_tcemain.php.r2182.zip (64.3 KB) class.t3lib_tcemain.php.r2182.zip Administrator Admin, 2007-03-08 18:03
0005074_v2.patch (9.68 KB) 0005074_v2.patch Administrator Admin, 2007-05-03 14:40

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #17264: Hook in TCEmain after all database operations neededClosedOliver Hader2007-04-29

Actions
Related to TYPO3 Core - Bug #17772: Hook processDatamap_afterDatabaseOperations bug with inline relationsClosedOliver Hader2007-11-10

Actions
Actions

Also available in: Atom PDF