From f974e9156531fd8e5ad603456bee5b03fb25bd6a Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Tue, 27 Aug 2013 18:42:22 +0530 Subject: [PATCH] CRM-13263 --- CRM/Report/Form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index b2f39dae31..b26f468b24 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -2387,13 +2387,13 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND $value = $pair[$op]; } elseif (is_array($val) && (!empty($val))) { - $options = $field['options']; + $options = CRM_Utils_Array::value('options', $field, array()); foreach ($val as $key => $valIds) { if (isset($options[$valIds])) { $val[$key] = $options[$valIds]; } } - $pair[$op] = (count($val) == 1) ? (($op == 'notin') ? ts('Is Not') : ts('Is')) : $pair[$op]; + $pair[$op] = (count($val) == 1) ? (($op == 'notin') ? ts('Is Not') : ts('Is')) : CRM_Utils_Array::value($op, $pair); $val = implode(', ', $val); $value = "{$pair[$op]} " . $val; } -- 2.25.1