Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
justinfreeman (Agileware)
Core
Commits
5419ad39
Commit
5419ad39
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #1235 from yashodha/4.3.CRM-13105
CRM-13105
parents
24893775
9e12d5ee
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/Contribute/BAO/Contribution.php
+2
-1
2 additions, 1 deletion
CRM/Contribute/BAO/Contribution.php
CRM/Contribute/Form/Task/Batch.php
+4
-4
4 additions, 4 deletions
CRM/Contribute/Form/Task/Batch.php
with
6 additions
and
5 deletions
CRM/Contribute/BAO/Contribution.php
+
2
−
1
View file @
5419ad39
...
...
@@ -134,7 +134,8 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
}
// contribution status is missing, choose Completed as default status
if
(
!
CRM_Utils_Array
::
value
(
'contribution_status_id'
,
$params
))
{
// do this for create mode only
if
(
!
CRM_Utils_Array
::
value
(
'contribution'
,
$ids
)
&&
!
CRM_Utils_Array
::
value
(
'contribution_status_id'
,
$params
))
{
$params
[
'contribution_status_id'
]
=
CRM_Core_OptionGroup
::
getValue
(
'contribution_status'
,
'Completed'
,
'name'
);
}
...
...
This diff is collapsed.
Click to expand it.
CRM/Contribute/Form/Task/Batch.php
+
4
−
4
View file @
5419ad39
...
...
@@ -65,8 +65,8 @@ class CRM_Contribute_Form_Task_Batch extends CRM_Contribute_Form_Task {
*/
function
preProcess
()
{
/*
* initialize the task and row fields
*/
* initialize the task and row fields
*/
parent
::
preProcess
();
//get the contact read only fields to display.
...
...
@@ -156,7 +156,7 @@ class CRM_Contribute_Form_Task_Batch extends CRM_Contribute_Form_Task {
//fix for CRM-2752
$customFields
=
CRM_Core_BAO_CustomField
::
getFields
(
'Contribution'
);
foreach
(
$this
->
_contributionIds
as
$contributionId
)
{
$typeId
=
CRM_Core_DAO
::
getFieldValue
(
"CRM_Contribute_DAO_Contribution"
,
$contributionId
,
'financial_type_id'
);
$typeId
=
CRM_Core_DAO
::
getFieldValue
(
"CRM_Contribute_DAO_Contribution"
,
$contributionId
,
'financial_type_id'
);
foreach
(
$this
->
_fields
as
$name
=>
$field
)
{
if
(
$customFieldID
=
CRM_Core_BAO_CustomField
::
getKeyID
(
$name
))
{
$customValue
=
CRM_Utils_Array
::
value
(
$customFieldID
,
$customFields
);
...
...
@@ -254,7 +254,7 @@ class CRM_Contribute_Form_Task_Batch extends CRM_Contribute_Form_Task {
$value
[
'source'
]
=
$value
[
'contribution_source'
];
}
unset
(
$value
[
'financial_type'
]);
unset
(
$value
[
'financial_type'
]);
unset
(
$value
[
'contribution_source'
]);
$contribution
=
CRM_Contribute_BAO_Contribution
::
add
(
$value
,
$ids
);
...
...
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