From c3f13dbdefba59b6214c95c7ae7089dcb5771580 Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Wed, 18 Sep 2024 13:34:57 +0100 Subject: [PATCH] Fix admin editing of anonymous reports Not submitting the name field would cause a DB error because it would try to set `name` to NULL. And including the other two seemed like a good idea too. --- templates/web/base/admin/reports/_edit_main.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/web/base/admin/reports/_edit_main.html b/templates/web/base/admin/reports/_edit_main.html index c46d44cefd..0083aa2c43 100644 --- a/templates/web/base/admin/reports/_edit_main.html +++ b/templates/web/base/admin/reports/_edit_main.html @@ -171,6 +171,9 @@
[% IF problem.user.email == cobrand.anonymous_account.email %]

[% loc('User:') %] [% loc('Anonymous user') %]

+ + + [% ELSE %] [% IF allowed_pages.user_edit %]