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
00f0c774
Commit
00f0c774
authored
11 years ago
by
Dave Greenberg
Browse files
Options
Downloads
Plain Diff
Merge pull request
#1322
from kurund/accounting-batch-fixes
another fix
parents
3f1db3a3
d195b60c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/BAO/Block.php
+3
-1
3 additions, 1 deletion
CRM/Core/BAO/Block.php
with
3 additions
and
1 deletion
CRM/Core/BAO/Block.php
+
3
−
1
View file @
00f0c774
...
...
@@ -434,7 +434,9 @@ class CRM_Core_BAO_Block {
* @static
*/
public
static
function
handlePrimary
(
&
$params
,
$class
)
{
$table
=
CRM_Core_DAO_AllCoreTables
::
getTableForClass
(
$class
);
$coreTables
=
CRM_Core_DAO_AllCoreTables
::
getCoreTables
();
$table
=
array_search
(
$class
,
$coreTables
);
// contact_id in params might be empty or the string 'null' so cast to integer
$contactId
=
(
int
)
CRM_Utils_Array
::
value
(
'contact_id'
,
$params
);
// If id is set & we haven't been passed a contact_id, retrieve it
...
...
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