[open-ils-commits] [GIT] Evergreen ILS branch master updated. 1db3c9196054cdd1f783e5f42b2f6b98b2eff3be

Evergreen Git git at git.evergreen-ils.org
Wed Sep 25 21:47:18 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  1db3c9196054cdd1f783e5f42b2f6b98b2eff3be (commit)
      from  48a44afbd82ac271c123903de2fa1351c2a0fa43 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1db3c9196054cdd1f783e5f42b2f6b98b2eff3be
Author: Pasi Kallinen <pasi.kallinen at pttk.fi>
Date:   Mon Jul 15 11:01:28 2013 +0300

    In reports, show old label name as the default in the Alter Display Header -prompt
    
    Signed-off-by: Pasi Kallinen <pasi.kallinen at pttk.fi>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/web/reports/xul/template-config.js b/Open-ILS/web/reports/xul/template-config.js
index ddc81e8..e936880 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;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/reports/xul/template-config.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list