Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
e45fa449
Unverified
Commit
e45fa449
authored
6 months ago
by
DaveD
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #31156 from eileenmcnaughton/label_no_prefs
Remove some legacy copy & paste from mailing labels
parents
d8fbc070
bfaef59a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Contact/Form/Task/Label.php
+0
-10
0 additions, 10 deletions
CRM/Contact/Form/Task/Label.php
CRM/Member/Form/Task/Label.php
+0
-10
0 additions, 10 deletions
CRM/Member/Form/Task/Label.php
with
0 additions
and
20 deletions
CRM/Contact/Form/Task/Label.php
+
0
−
10
View file @
e45fa449
...
...
@@ -230,16 +230,6 @@ class CRM_Contact_Form_Task_Label extends CRM_Contact_Form_Task {
// format the addresses according to CIVICRM_ADDRESS_FORMAT (CRM-1327)
foreach
(
$rows
as
$id
=>
$row
)
{
$commMethods
=
$row
[
'preferred_communication_method'
]
??
NULL
;
if
(
$commMethods
)
{
$val
=
array_filter
(
explode
(
CRM_Core_DAO
::
VALUE_SEPARATOR
,
$commMethods
));
$comm
=
CRM_Contact_DAO_Contact
::
buildOptions
(
'preferred_communication_method'
);
$temp
=
[];
foreach
(
$val
as
$vals
)
{
$temp
[]
=
$comm
[
$vals
];
}
$row
[
'preferred_communication_method'
]
=
implode
(
', '
,
$temp
);
}
$row
[
'id'
]
=
$id
;
$formatted
=
CRM_Utils_Address
::
formatMailingLabel
(
$row
);
$rows
[
$id
]
=
[
$formatted
];
...
...
This diff is collapsed.
Click to expand it.
CRM/Member/Form/Task/Label.php
+
0
−
10
View file @
e45fa449
...
...
@@ -91,16 +91,6 @@ class CRM_Member_Form_Task_Label extends CRM_Member_Form_Task {
}
// format the addresses according to CIVICRM_ADDRESS_FORMAT (CRM-1327)
foreach
((
array
)
$rows
as
$id
=>
$row
)
{
$commMethods
=
$row
[
'preferred_communication_method'
]
??
NULL
;
if
(
$commMethods
)
{
$val
=
array_filter
(
explode
(
CRM_Core_DAO
::
VALUE_SEPARATOR
,
$commMethods
));
$comm
=
CRM_Contact_DAO_Contact
::
buildOptions
(
'preferred_communication_method'
);
$temp
=
[];
foreach
(
$val
as
$vals
)
{
$temp
[]
=
$comm
[
$vals
];
}
$row
[
'preferred_communication_method'
]
=
implode
(
', '
,
$temp
);
}
$row
[
'id'
]
=
$id
;
$formatted
=
CRM_Utils_Address
::
formatMailingLabel
(
$row
);
$rows
[
$id
]
=
[
$formatted
];
...
...
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