From e4c6a3968058c721ffd7778f513a0135236b252a Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Tue, 16 Dec 2014 20:01:46 +0530 Subject: [PATCH] CRM-5039 - QA Fix ---------------------------------------- * CRM-5039: Events don't always limit registrations to "max participants" setting https://issues.civicrm.org/jira/browse/CRM-5039 --- CRM/Price/BAO/PriceField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index ad861b255c..fda67ad3c9 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -409,7 +409,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { // CRM-6902 - Add "max" option for a price set field if (in_array($opId, $freezeOptions)) { - self::freezeIfEnabled($choice[$opId], $freezeOptions); + self::freezeIfEnabled($choice[$opId], $customOption[$opId]); // CRM-14696 - Improve display for sold out price set options $choice[$opId]->setText('' . $choice[$opId]->getText() . ' (' . ts('Sold out') . ')'); } @@ -532,7 +532,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { } // CRM-6902 - Add "max" option for a price set field if (in_array($opId, $freezeOptions)) { - self::freezeIfEnabled($check[$opId], $freezeOptions); + self::freezeIfEnabled($check[$opId], $customOption[$opId]); // CRM-14696 - Improve display for sold out price set options $check[$opId]->setText('' . $check[$opId]->getText() . ' (' . ts('Sold out') . ')'); } -- 2.25.1