Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.4.2
-
None
Description
Schedules cannot be deleted. In toggleDeleteResource in resource.php, the call to $this->submitToggleDeleteResourceExtra($rscid); needs to be moved to be above the query to delete the entry from the resource table.
The problem is that it attempts to delete the entry from the schedule table before deleting any entries from the scheduletimes table, which has a foreign key constraint on the schedule table.