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
4b2bcea5
Commit
4b2bcea5
authored
Dec 28, 2017
by
JO0st
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRM-21580 get exportstatusid based on name in stead of value
parent
f06b38e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
CRM/Financial/Form/Export.php
CRM/Financial/Form/Export.php
+1
-2
No files found.
CRM/Financial/Form/Export.php
View file @
4b2bcea5
...
...
@@ -89,8 +89,7 @@ class CRM_Financial_Form_Export extends CRM_Core_Form {
$this
->
_batchIds
=
$this
->
_id
;
}
$allBatchStatus
=
CRM_Core_PseudoConstant
::
get
(
'CRM_Batch_DAO_Batch'
,
'status_id'
);
$this
->
_exportStatusId
=
CRM_Utils_Array
::
key
(
'Exported'
,
$allBatchStatus
);
$this
->
_exportStatusId
=
CRM_Core_PseudoConstant
::
getKey
(
'CRM_Batch_DAO_Batch'
,
'status_id'
,
'Exported'
);
// check if batch status is valid, do not allow exported batches to export again
$batchStatus
=
CRM_Batch_BAO_Batch
::
getBatchStatuses
(
$this
->
_batchIds
);
...
...
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