From fcc26a320738fb7ebe0083d45f54461ebf47083d Mon Sep 17 00:00:00 2001 From: tworrall Date: Wed, 27 Jun 2012 21:10:36 +0000 Subject: [PATCH] in edit mode maintain the name of the subject in the award receipt label --- .../templates/freemarker/edit/forms/js/awardReceiptUtils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js b/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js index 15dd47b0..cda8c075 100644 --- a/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js +++ b/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js @@ -98,6 +98,9 @@ var awardReceiptUtils = { if ( this.yearAwarded.val().length ) { rdfsLabel += " (" + this.subjectName + ' - ' + this.yearAwarded.val() + ")"; } + else { + rdfsLabel += " (" + this.subjectName + ")"; + } this.recLabel.val(rdfsLabel); },