From 643add3141455ab4a4d0a412a0963e6523ad8399 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Tue, 23 Apr 2024 18:13:05 +0200 Subject: [PATCH] cosmetics --- lib/additionals/hooks/view_hook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/additionals/hooks/view_hook.rb b/lib/additionals/hooks/view_hook.rb index 3fbd44d3..aea695db 100644 --- a/lib/additionals/hooks/view_hook.rb +++ b/lib/additionals/hooks/view_hook.rb @@ -26,7 +26,7 @@ class ViewHook < Redmine::Hook::ViewListener def helper_issues_show_detail_after_setting(context = {}) detail = context[:detail] - return unless detail.prop_key == 'author_id' + return if detail.prop_key != 'author_id' detail[:value] = find_name_by_reflection('author', detail.value) || detail.value detail[:old_value] = find_name_by_reflection('author', detail.old_value) || detail.old_value