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
d0d752f8
Commit
d0d752f8
authored
11 years ago
by
Tim Otten
Browse files
Options
Downloads
Plain Diff
Merge pull request #712 from totten/fix-allfields-crash
api/v3/utils - Redo
16404fbb
for preventing fatal error
parents
31c52fa4
ed22af33
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
api/v3/utils.php
+5
-1
5 additions, 1 deletion
api/v3/utils.php
with
5 additions
and
1 deletion
api/v3/utils.php
+
5
−
1
View file @
d0d752f8
...
...
@@ -539,7 +539,11 @@ function _civicrm_api3_dao_set_filter(&$dao, $params, $unique = TRUE, $entity) {
}
else
{
if
(
$unique
)
{
$allfields
[
$field
][
'name'
]
=
$params
[
$field
];
$daoFieldName
=
$allfields
[
$field
][
'name'
];
if
(
empty
(
$daoFieldName
))
{
throw
new
API_Exception
(
"Failed to determine field name for
\"
$field
\"
"
);
}
$dao
->
{
$daoFieldName
}
=
$params
[
$field
];
}
else
{
$dao
->
$field
=
$params
[
$field
];
...
...
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