From 86534db5d99650dd54b36c262e54a36bda3b1ed1 Mon Sep 17 00:00:00 2001
From: David Siegfried <david.siegfried@uni-vechta.de>
Date: Fri, 20 May 2022 15:14:03 +0000
Subject: [PATCH] add missing info-template for log-actions, closes #1065

Closes #1065

Merge request studip/studip!632
---
 .../5.2.9_add_template_to_log_action.php        | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 db/migrations/5.2.9_add_template_to_log_action.php

diff --git a/db/migrations/5.2.9_add_template_to_log_action.php b/db/migrations/5.2.9_add_template_to_log_action.php
new file mode 100644
index 00000000000..639970e8a88
--- /dev/null
+++ b/db/migrations/5.2.9_add_template_to_log_action.php
@@ -0,0 +1,17 @@
+<?php
+
+class AddTemplateToLogAction extends Migration
+{
+    public function description()
+    {
+        return 'Adds missing template to info_template';
+    }
+    public function up()
+    {
+        DBManager::get()->exec("UPDATE `log_actions` SET `info_template` = '%user ändert Berechtigung von %res(%affected): %info' WHERE `name` = 'RES_PERM_CHANGE'");
+    }
+
+    public function down()
+    {
+    }
+}
\ No newline at end of file
-- 
GitLab