Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
grant_program
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Extensions
grant_program
Commits
6c079c9d
Commit
6c079c9d
authored
Apr 15, 2015
by
Stan Dragnev
Committed by
Monish Deb
Aug 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs #202: pick from email address when emailing
parent
461ccf7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
CRM/Grant/BAO/GrantProgram.php
CRM/Grant/BAO/GrantProgram.php
+11
-2
No files found.
CRM/Grant/BAO/GrantProgram.php
View file @
6c079c9d
...
...
@@ -328,8 +328,17 @@ WHERE civicrm_contact.id = $id ";
),
'PDFFilename'
=>
''
,
);
$defaultAddress
=
CRM_Core_OptionGroup
::
values
(
'from_email_address'
,
NULL
,
NULL
,
NULL
,
' AND is_default = 1'
);
$emailQuery
=
"SELECT from_email_address FROM civicrm_grant_program WHERE id = %1"
;
$defaultAddress
=
CRM_Core_DAO
::
singleValueQuery
(
$emailQuery
,
array
(
1
=>
array
(
$values
[
'grant_program_id'
],
'Integer'
)
));
if
(
!
isset
(
$defaultAddress
)
||
$defaultAddress
==
''
)
{
$defaultAddress
=
CRM_Core_OptionGroup
::
values
(
'from_email_address'
,
NULL
,
NULL
,
NULL
,
' AND is_default = 1'
);
}
foreach
(
$defaultAddress
as
$id
=>
$value
)
{
$sendTemplateParams
[
'from'
]
=
$value
;
}
...
...
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