WapplerSystems / ws_slider

GNU General Public License v2.0
3 stars 2 forks source link

Error in tsconfig read in typo3 12 #33

Open trickii opened 1 year ago

trickii commented 1 year ago

In Typo3 12.4.3, if i want to add a new element to page and this is not a first element, typo3 make this call

/typo3/record/edit?token=ad3829d659d3e3faac41bc881779c5335e5bed0a&edit%5Btt_content%5D%5B-1840%5D=new&returnUrl=/typo3/module/web/layout?token%3D5df17ceb4e320f70764be30b83db25b4bb8d3d13%26id%3D1&defVals%5Btt_content%5D%5BCType%5D=ws_slider&defVals%5Btt_content%5D%5BcolPos%5D=0&defVals%5Btt_content%5D%5Bsys_language_uid%5D=0

And send a negative id = -1840 (or another negative values)

In Eventlistener FlexFormParsingModifyEventListener ws-slider check setting from TsConfig:

$typoscript = TypoScriptService::getTypoScript($row['pid']);

and return a exception, because id is negative.

Could not fetch page data for uid -1840.

Could you please extend this Listener for this case, or a problem is in typo3?