Skip to content
Snippets Groups Projects
Commit e6d2f3ba authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #2335 from yashodha/CRM-14066

CRM-14066: fix zero amount for discounted option
parents f6e21a82 d6399f06
No related branches found
No related tags found
No related merge requests found
......@@ -685,9 +685,10 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
$discountOptions = array();
for ($i = 1; $i < self::NUM_OPTION; $i++) {
if (!empty($labels[$i]) &&
!empty($values[$i][$j])
) {
$discountOptions[] = array('label' => trim($labels[$i]),
!CRM_Utils_System::isNull(CRM_Utils_Array::value($j, $values[$i]))
) {
$discountOptions[] = array(
'label' => trim($labels[$i]),
'value' => CRM_Utils_Rule::cleanMoney(trim($values[$i][$j])),
'weight' => $i,
'is_active' => 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment