From 0a186e5d8af62c0618f85f9212bd7c27ac109835 Mon Sep 17 00:00:00 2001
From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de>
Date: Thu, 19 Oct 2023 11:58:53 +0000
Subject: [PATCH] fix typo in column name, fixes #3368

Closes #3368

Merge request studip/studip!2294
---
 app/controllers/admin/additional.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/admin/additional.php b/app/controllers/admin/additional.php
index 54d1908492d..a98da200483 100644
--- a/app/controllers/admin/additional.php
+++ b/app/controllers/admin/additional.php
@@ -52,7 +52,7 @@ class Admin_AdditionalController extends AuthenticatedController
             }
             // purge data
             if (Request::submitted('delete')) {
-                DatafieldEntryModel::deleteBySQL('sec_rage_id = ?', [$this->course->id]);
+                DatafieldEntryModel::deleteBySQL('sec_range_id = ?', [$this->course->id]);
             }
 
             if ($this->course->store()) {
-- 
GitLab