From 1db3c9196054cdd1f783e5f42b2f6b98b2eff3be Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 15 Jul 2013 11:01:28 +0300 Subject: [PATCH] In reports, show old label name as the default in the Alter Display Header -prompt Signed-off-by: Pasi Kallinen Signed-off-by: Ben Shum --- Open-ILS/web/reports/xul/template-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/reports/xul/template-config.js b/Open-ILS/web/reports/xul/template-config.js index ddc81e80c4..e936880da5 100644 --- a/Open-ILS/web/reports/xul/template-config.js +++ b/Open-ILS/web/reports/xul/template-config.js @@ -200,7 +200,8 @@ function alterColumnLabel () { var field = item.firstChild.firstChild; var colname = field.nextSibling.getAttribute('label'); - var new_label = prompt( dojo.string.substitute(rpt_strings.TEMPLATE_CONF_PROMPT_CHANGE, [field.getAttribute("label")]) ); + var old_label = field.getAttribute("label"); + var new_label = prompt( dojo.string.substitute(rpt_strings.TEMPLATE_CONF_PROMPT_CHANGE, [old_label]), old_label ); if (new_label) { rpt_rel_cache[relation_alias].fields[tabname][colname].alias = new_label; -- 2.43.2