Skip to content

Commit

Permalink
Fixed #451 Deleting a track throws notices
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Jun 19, 2019
1 parent 2c62523 commit 561d65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Gems/Tracker/Model/TrackModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function delete($filter = true)
// Now cascade to children, they should take care of further cascading
// Delete rounds
$trackEngine = $this->tracker->getTrackEngine($trackId);
$roundModel = $trackEngine->getRoundModel(false, index);
$roundModel = $trackEngine->getRoundModel(true, 'index');
$roundModel->delete(['gro_id_track' => $trackId]);

// Delete trackfields
Expand Down

0 comments on commit 561d65c

Please sign in to comment.