From d3339eaeffa8744180a6594d975d44c8dd5d7ab0 Mon Sep 17 00:00:00 2001 From: Wotuu Date: Sun, 25 Jun 2023 23:57:57 +0200 Subject: [PATCH] #1789 Fixed deleting spells not working properly --- app/Http/Controllers/Ajax/APIKillZoneController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Ajax/APIKillZoneController.php b/app/Http/Controllers/Ajax/APIKillZoneController.php index 037c58382..6f6aeaa89 100644 --- a/app/Http/Controllers/Ajax/APIKillZoneController.php +++ b/app/Http/Controllers/Ajax/APIKillZoneController.php @@ -91,7 +91,7 @@ private function saveKillZone(DungeonRoute $dungeonroute, array $data, bool $rec // May be null for mass request if ($spellIds !== null) { - $killZone->spells()->delete(); + $killZone->killZoneSpells()->delete(); $spellsAttributes = []; foreach ($spellIds as $spellId) {