From 40c3e689248172406d76c13f259522398bdff7b2 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Thu, 29 Oct 2020 15:41:57 +0100 Subject: [PATCH] Fixes #3135 - history entries of ObjectManager::Attribute changes display wrong change information when value is removed. --- .../app/controllers/_application_controller_generic.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_generic.coffee b/app/assets/javascripts/app/controllers/_application_controller_generic.coffee index fbcd54871..8bd9782d4 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_generic.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_generic.coffee @@ -735,8 +735,10 @@ class App.GenericHistory extends App.ControllerModal if item.value_to if item.value_from - content += " #{ @T( 'to' ) }" + content += ' 🡒' content += " '#{ App.Utils.htmlEscape(item.value_to) }'" + else if item.value_from + content += " 🡒 '-'" newItem.records.push content