Status | Assigned | Task | ||
---|---|---|---|---|
Open | valerio.bozzolan | T343 Museum Reservation system | ||
Resolved | valerio.bozzolan | T349 Calendar backend | ||
Duplicate | valerio.bozzolan | T396 Allow to eliminate one Calendar |
Event Timeline
Comment Actions
The deletion is broken if it exists a Calendarslot attached to that Calendar (usual situation):
[Thu Jun 10 09:25:15.305320 2021] [:error] [pid 25924] [client 5.90.3.216:6931] PHP Fatal error: Uncaught SucklessException: error executing the query n. 4 |DELETE `calendarslottype` FROM `calendarslottype` AS `calendarslottype` WHERE calendarslottype.calendar_ID = 139 | error: Cannot delete or update a parent row: a foreign key constraint fails (`landscapefor`.`calendarslot`, CONSTRAINT `calendarslot_ibfk_calendarslottype` FOREIGN KEY (`calendarslottype_ID`) REFERENCES `calendarslottype` (`calendarslottype_ID`)) in /usr/share/php/suckless-php/class-DB.php:140\nStack trace:\n#0 /usr/share/php/suckless-php/class-Query.php(832): DB->query('DELETE `calenda...')\n#1 /usr/share/php/suckless-php/class-Query.php(660): Query->runDangerousQuery('DELETE `calenda...')\n#2 /home/www-data/landscapefor/atlas/beta/calendar-remove.php(53): Query->delete()\n#3 {main}\n thrown in /usr/share/php/suckless-php/class-DB.php on line 140, referer: https://beta.atlas.landscapefor.eu/calendar-remove.php?id=139