From 9f8dff819bcb806b131359feaaaf0339e5a61639 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 26 Aug 2014 15:49:02 +0530 Subject: [PATCH] CRM-15139 QA fix ---------------------------------------- * CRM-15139: Batch update does not show values when using custom fields limited by event type https://issues.civicrm.org/jira/browse/CRM-15139 --- CRM/Event/Form/Task/Batch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Task/Batch.php b/CRM/Event/Form/Task/Batch.php index 5d70d16c20..95b96d7196 100644 --- a/CRM/Event/Form/Task/Batch.php +++ b/CRM/Event/Form/Task/Batch.php @@ -191,7 +191,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { ); } $entityColumnValueRole = CRM_Utils_Array::value($roleId, $entityColumnValue); - $entityColumnValueEventType = CRM_Utils_Array::value(array_search($eventTypeId, $entityColumnValue), $entityColumnValue); + $entityColumnValueEventType = in_array($eventTypeId, $entityColumnValue) ? $eventTypeId : NULL; if (($this->_roleCustomDataTypeID == $customValue['extends_entity_column_id']) && ($entityColumnValueRole) ) { -- 2.25.1