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
8001040d
Commit
8001040d
authored
11 years ago
by
mmikitka
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug
https://github.com/civicrm/civicrm-core/pull/1206#issuecomment-21285959
parent
f3f0709d
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/CustomField.php
+1
-3
1 addition, 3 deletions
CRM/Core/BAO/CustomField.php
with
1 addition
and
3 deletions
CRM/Core/BAO/CustomField.php
+
1
−
3
View file @
8001040d
...
...
@@ -145,6 +145,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
'column_name'
);
}
$columnName
=
$params
[
'column_name'
];
$indexExist
=
FALSE
;
//as during create if field is_searchable we had created index.
...
...
@@ -284,9 +285,6 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
self
::
createField
(
$customField
,
'modify'
,
$indexExist
);
}
else
{
if
(
!
isset
(
$params
[
'column_name'
]))
{
$columnName
.
=
"_
{
$customField
->
id
}
"
;
}
$customField
->
column_name
=
$columnName
;
$customField
->
save
();
// make sure all values are present in the object
...
...
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