Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
civirules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
civirules
Commits
5759e15c
Commit
5759e15c
authored
9 years ago
by
Carlos Capote
Browse files
Options
Downloads
Patches
Plain Diff
fixes a particular error-case related with
#53
parent
39ec384e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/CivirulesActions/Activity/Add.php
+6
-2
6 additions, 2 deletions
CRM/CivirulesActions/Activity/Add.php
with
6 additions
and
2 deletions
CRM/CivirulesActions/Activity/Add.php
+
6
−
2
View file @
5759e15c
...
...
@@ -27,13 +27,17 @@ class CRM_CivirulesActions_Activity_Add extends CRM_CivirulesActions_Generic_Api
$assignee
=
array
();
if
(
is_array
(
$action_params
[
'assignee_contact_id'
]))
{
foreach
(
$action_params
[
'assignee_contact_id'
]
as
$contact_id
)
{
$assignee
[]
=
$contact_id
;
if
(
$contact_id
)
{
$assignee
[]
=
$contact_id
;
}
}
}
else
{
$assignee
[]
=
$action_params
[
'assignee_contact_id'
];
}
if
(
count
(
$assignee
))
{
$params
[
'assignee_contact_id'
]
=
$action_params
[
'assignee_contact_id'
];
}
else
{
$params
[
'assignee_contact_id'
]
=
''
;
}
}
return
$params
;
...
...
@@ -117,4 +121,4 @@ class CRM_CivirulesActions_Activity_Add extends CRM_CivirulesActions_Generic_Api
return
'create'
;
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment