Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
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
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Hemanth
vtigercrm
Commits
065ce9b4
Commit
065ce9b4
authored
4 years ago
by
Uma
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup handled on buildSearchQueryForFieldTypes api
parent
54cc1fec
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/CRMEntity.php
+10
-2
10 additions, 2 deletions
data/CRMEntity.php
with
10 additions
and
2 deletions
data/CRMEntity.php
+
10
−
2
View file @
065ce9b4
...
...
@@ -2653,12 +2653,20 @@ class CRMEntity {
}
}
$query
=
"select crmid as id "
;
$entityfields
=
getEntityField
(
$module
);
$querycolumnnames
=
implode
(
','
,
$lookupcolumns
);
$entitycolumnnames
=
$entityfields
[
'fieldname'
];
$query
=
"select crmid as id,
$querycolumnnames
,
$entitycolumnnames
as name "
;
$log
->
fatal
(
'$entitycolumnnames'
);
$log
->
fatal
(
$entitycolumnnames
);
if
(
!
empty
(
$querycolumnnames
)){
$query
.
=
",
$querycolumnnames
"
;
}
if
(
!
empty
(
$entitycolumnnames
)){
$query
.
=
",
$entitycolumnnames
as name "
;
}
$query
.
=
" FROM
$this->table_name
"
;
$query
.
=
" INNER JOIN vtiger_crmentity ON
$this->table_name
.
$this->table_index
= vtiger_crmentity.crmid AND deleted = 0 "
;
$query
.
=
" INNER JOIN vtiger_crmentity ON
$this->table_name
.
$this->table_index
= vtiger_crmentity.crmid AND deleted = 0 "
;
//remove the base table
$LookupTable
=
array_unique
(
$lookuptables
);
...
...
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