projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Participant batch update to work with multiple value custom fields
[civicrm-core.git]
/
CRM
/
Activity
/
Form
/
Task
/
Batch.php
diff --git
a/CRM/Activity/Form/Task/Batch.php
b/CRM/Activity/Form/Task/Batch.php
index 3b63f4a3714cb15939d93f1ab35c33d2b0d39ed0..dfb0ae0034519f82f7384db87079d41d30e6d062 100644
(file)
--- a/
CRM/Activity/Form/Task/Batch.php
+++ b/
CRM/Activity/Form/Task/Batch.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version
4.7
|
+ | CiviCRM version
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
7
|
+ | Copyright CiviCRM LLC (c) 2004-201
8
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,7
+28,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
7
+ * @copyright CiviCRM LLC (c) 2004-201
8
*/
/**
*/
/**
@@
-242,6
+242,9
@@
class CRM_Activity_Form_Task_Batch extends CRM_Activity_Form_Task {
$activityId = civicrm_api3('activity', 'create', $value);
// @todo this would be done by the api call above if the parames were passed through.
$activityId = civicrm_api3('activity', 'create', $value);
// @todo this would be done by the api call above if the parames were passed through.
+ // @todo extract submit functions &
+ // extend CRM_Event_Form_Task_BatchTest::testSubmit with a data provider to test
+ // handling of custom data, specifically checkbox fields.
if (!empty($value['custom']) &&
is_array($value['custom'])
) {
if (!empty($value['custom']) &&
is_array($value['custom'])
) {