[TYPO3-english] TCA type input eval user functions don't work properly in IRRE mode

Mathias Schreiber [wmdb] mathias.schreiber at wmdb.de
Fri Jul 15 15:28:57 CEST 2011


Am 14.07.11 07:26, schrieb Guillermo R. Oramas J.:
> Hello.
>
> I have a problem with the custom eval functions when the record is called
> from an IRRE field, in particular with the JavaScript function.
>
> For example I open to edit the base record of "table1", then I click an IRRE
> field to create a record to the "table2", the fields of the records of
> "table2" have eval user functions that works Ok in normal editing, but when
> in IRRE the functions only work after save the form, so the first time when
> the record is created those functions are not doing them jobs.
>
> I don't understand where is the problem, maybe the Javascript code is not
> loaded. How can I add that file manually to the backend template? How can I
> face this situation?

This sounds like a bug in TYPO3 to me.
Here is what I think happens:
Form A is loaded (with its JS files n functions).
Adding an IRRE record will add the form, but not the JS files n functions.
Thus after saving the whole form (on reload) those files are being loaded.

Next steps:
Search the bugtracker if someone else has stumbled across this issue 
(very likely).
Track changes or (perfect world) have a patch ready.
Or maybe someone else has made a patch and you can review it, thus 
bringing it into the core.

hth
Mathias


-- 
Ernesto, Nov. 9th 2010:
"In the graphics generation routines of TYPO3 *anything* could cause a
side effect."


More information about the TYPO3-english mailing list