- Fixed a problem in the EMS calculating prices on tickets with a badge that

has an existing ribbon.
This commit is contained in:
JT Smith 2009-05-13 19:36:57 +00:00
parent c8ce1c18f0
commit 6a289e060d
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,8 @@
- fixed: URLs that shouldn't happen (#10353)
- Added more information output to EMS record importer.
- Fixed a search tickets problem in the EMS badge builder template.
- Fixed a problem in the EMS calculating prices on tickets with a badge that
has an existing ribbon.
- Fixed a search results display error with synopsis.
- Fixed a load problem with Code Editor by making user toggle it on. This is
better than normal anyway since many users appear not to want to use the

View file

@ -346,7 +346,7 @@ sub getPrice {
my $discount = 0;
my $badgeId = $self->getOptions->{badgeId};
my $ribbonId = $self->session->db->quickScalar("select ribbonAssetId from EMSRegistrantRibbon where badgeId=? limit 1",[$badgeId]);
if (defined $ribbonId) {
if (defined $ribbonId && isIn($ribbonId, @ribbonIds)) {
my $ribbon = WebGUI::Asset->new($self->session,$ribbonId,'WebGUI::Asset::Sku::EMSRibbon');
$discount = $ribbon->get('percentageDiscount');
}