Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Development
Core
Commits
63b7aefc
Commit
63b7aefc
authored
Jan 18, 2019
by
Debarshi Bhaumik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#670
- Fix saving of tags in case activity
parent
d0fe005c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
CRM/Activity/Form/Activity.php
CRM/Activity/Form/Activity.php
+2
-3
CRM/Case/Form/Activity.php
CRM/Case/Form/Activity.php
+4
-2
No files found.
CRM/Activity/Form/Activity.php
View file @
63b7aefc
...
...
@@ -1066,9 +1066,8 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
if
(
!
is_array
(
$params
[
'tag'
]))
{
$params
[
'tag'
]
=
explode
(
','
,
$params
[
'tag'
]);
}
foreach
(
$params
[
'tag'
]
as
$tag
)
{
$tagParams
[
$tag
]
=
1
;
}
$tagParams
=
array_fill_keys
(
$params
[
'tag'
],
1
);
}
// Save static tags.
...
...
CRM/Case/Form/Activity.php
View file @
63b7aefc
...
...
@@ -543,9 +543,11 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
// add tags if exists
$tagParams
=
array
();
if
(
!
empty
(
$params
[
'tag'
]))
{
foreach
(
$params
[
'tag'
]
as
$tag
)
{
$
tagP
arams
[
$
tag
]
=
1
;
if
(
!
is_array
(
$params
[
'tag'
]
)
)
{
$
params
[
'tag'
]
=
explode
(
','
,
$p
arams
[
'
tag
'
])
;
}
$tagParams
=
array_fill_keys
(
$params
[
'tag'
],
1
);
}
//save static tags
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment