julienV / Joomla-Tracks

Racing league extension for Joomla
http://tracks.jlv-solutions.com
16 stars 9 forks source link

Edit result Foreign Key error #85

Open kosin-ski opened 2 years ago

kosin-ski commented 2 years ago

Hi! When I try to edit a participant's result in the event and the participant doesn't have a team I get the foreign key error. I reported something similar a while ago in a different place.

"Error Save failed with the following error: Cannot add or update a child row: a foreign key constraint fails (***.#__tracks_events_results, CONSTRAINT fk_#__tracks_events_results_3 FOREIGN KEY (team_id) REFERENCES #__tracks_teams (id) ON DELETE SET NULL ON UPDATE CASCADE)"

Thank you for any help!

smileysit commented 2 years ago

these two cause redcore errors

An error has occurred. 0 Call to a member function createModel() on null (all lastedt versions.)

image