bobosch / ods_osm

TYPO3 Extension OpenStreetMap
10 stars 22 forks source link

TceMain::processDatamap_afterDatabaseOperations exception when creating a non-ods_osm related record #190

Closed sypets closed 6 months ago

sypets commented 6 months ago

I had an exception on line 57:

56 if ($status == "new") {
57            $id = $parentObject->substNEWwithIDs[$id];
58 }
59
60 if (!is_int($id)) {
61            return;
62  }

when a new record was created of an unrelated table

and $parentObject->substNEWwithIDs[$id]was not set. Even though there was TCA configuation error, I think ideally ods_osm should not be affected by it and


Here's what happened: during development, there was a TCA field which did not yet exist in the DB yet. This resulted in the above exception but the exception message was unrelated to the actual problem.


Will create PR.