From 8b978d1336e09064d08f200505184cc42a832ab7 Mon Sep 17 00:00:00 2001 From: Antoine Beaubien Date: Wed, 27 Jan 2021 03:07:03 -0500 Subject: [PATCH] Fix editing preference with old value (#2769) Fix the editing of a pref that proposed the oldest value of a preference, instead of the current value --- main/webapp/modules/core/scripts/preferences.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/webapp/modules/core/scripts/preferences.js b/main/webapp/modules/core/scripts/preferences.js index 81cf9c5b4..2aede929d 100644 --- a/main/webapp/modules/core/scripts/preferences.js +++ b/main/webapp/modules/core/scripts/preferences.js @@ -103,19 +103,19 @@ function deDupUserMetaData(arrObj) { return JSON.stringify(result).replace(/"/g, '\"'); } -function PreferenceUI(tr, key, value) { +function PreferenceUI(tr, key, initialValue) { var self = this; var td0 = tr.insertCell(0); $(td0).text(key); var td1 = tr.insertCell(1); - $(td1).text((value !== null) ? value : ""); + $(td1).text((initialValue !== null) ? initialValue : ""); var td2 = tr.insertCell(2); $('