Moderators: jmacgreg, michael, John
--- OCSQueuedPayment.inc.php.orig 2008-01-15 14:44:49.000000000 -0800
+++ OCSQueuedPayment.inc.php 2008-01-15 17:23:16.000000000 -0800
@@ -59,7 +59,22 @@
function getDescription() {
switch ($this->type) {
case QUEUED_PAYMENT_TYPE_REGISTRATION:
- return Locale::translate('payment.type.registration');
+ // Get the registration object using the assoc ID of the queued payment
+ $registrationDao =& DAORegistry::getDAO('RegistrationDAO');
+ $registration =&
+ $registrationDao->getRegistration($this->getAssocId());
+ if (!$registration) return ''; // Bonehead check; should never happen
+
+ // Get the registration type object from the registration object
+ $registrationTypeDao =&
+ DAORegistry::getDAO('RegistrationTypeDAO');
+ $registrationType =&
+ $registrationTypeDao->getRegistrationType($registration->getTypeId());
+ if (!$registration) return ''; // Bonehead check; should never happen
+
+ // Return the description of the queued payment, including registration type info
+ return Locale::translate('payment.type.registration', array('typeName' => $registrationType->getTypeName()
+ ));
}
}
}
<message key="payment.type.registration">Conference Registration
({$typeName})</message>Return to OCS Technical Support
Users browsing this forum: No registered users and 1 guest