Page MenuHomeGitPull.it

Allow to eliminate one Calendar
Closed, DuplicatePublic6 Points

Event Timeline

setareh.pedone created this task.
setareh.pedone created this object in space S1 Public.
setareh.pedone renamed this task from Allow to eliminate one or more Calendar slots to Allow to eliminate one Calendar.Apr 20 2021, 18:05
valerio.bozzolan set the point value for this task to 6.

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