From 51702c04459fd21817e28dd10aa858e3be49dcc7 Mon Sep 17 00:00:00 2001 From: systopia Date: Wed, 18 Nov 2015 15:15:27 +0100 Subject: [PATCH] CRM-17589 - test value instead of label --- templates/CRM/Contribute/Form/Contribution.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index b29113c160..668f70580e 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -488,7 +488,7 @@ }); function showHideCancelInfo(obj) { - if (obj.find(":selected").text() == 'Refunded' || obj.find(":selected").text() == 'Cancelled') { + if (obj.find(":selected").val() == '7' || obj.find(":selected").val() == '3') { cj('#cancelInfo').show( ); cj('#total_amount').attr('readonly', true); } -- 2.25.1