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
Francesco Bianco
vtigercrm
Commits
9db88584
Commit
9db88584
authored
4 years ago
by
Uma
Browse files
Options
Downloads
Patches
Plain Diff
Activites related-list inline search in Organization module
parent
2f1450b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Vtiger/models/RelationListView.php
+7
-1
7 additions, 1 deletion
modules/Vtiger/models/RelationListView.php
with
7 additions
and
1 deletion
modules/Vtiger/models/RelationListView.php
+
7
−
1
View file @
9db88584
...
...
@@ -250,6 +250,7 @@ class Vtiger_RelationListView_Model extends Vtiger_Base_Model {
public
function
getEntries
(
$pagingModel
)
{
$db
=
PearDatabase
::
getInstance
();
$parentModule
=
$this
->
getParentRecordModel
()
->
getModule
();
$parentModuleName
=
$parentModule
->
get
(
'name'
);
$relationModule
=
$this
->
getRelationModel
()
->
getRelationModuleModel
();
$relationModuleName
=
$relationModule
->
get
(
'name'
);
$relatedColumnFields
=
$relationModule
->
getConfigureRelatedListFields
();
...
...
@@ -288,7 +289,12 @@ class Vtiger_RelationListView_Model extends Vtiger_Base_Model {
}
}
$whereQuerySplit
=
split
(
"WHERE"
,
$queryGenerator
->
getWhereClause
());
$query
.
=
" AND "
.
$whereQuerySplit
[
1
];
if
(
$parentModuleName
==
'Accounts'
&&
$relationModuleName
==
'Calendar'
&&
(
stripos
(
$query
,
"GROUP BY"
)
!==
false
))
{
$splitQuery
=
split
(
'GROUP BY'
,
$query
);
$query
=
$splitQuery
[
0
]
.
" AND "
.
$whereQuerySplit
[
1
]
.
' GROUP BY '
.
$splitQuery
[
1
];
}
else
{
$query
.
=
" AND "
.
$whereQuerySplit
[
1
];
}
}
$startIndex
=
$pagingModel
->
getStartIndex
();
...
...
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