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
Code80
vtigercrm
Commits
374952c3
Commit
374952c3
authored
4 years ago
by
Uma
Browse files
Options
Downloads
Patches
Plain Diff
Fixes tags clearance on-click of search clear
parent
db615f42
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
layouts/v7/modules/Vtiger/ListViewContents.tpl
+0
-1
0 additions, 1 deletion
layouts/v7/modules/Vtiger/ListViewContents.tpl
modules/Vtiger/views/List.php
+8
-13
8 additions, 13 deletions
modules/Vtiger/views/List.php
with
8 additions
and
14 deletions
layouts/v7/modules/Vtiger/ListViewContents.tpl
+
0
−
1
View file @
374952c3
...
...
@@ -31,7 +31,6 @@
<input
type=
'hidden'
name=
"pageLimit"
value=
"
{
$PAGING_MODEL
->
getPageLimit
()
}
"
id=
'pageLimit'
>
<input
type=
"hidden"
name=
"noOfEntries"
value=
"
{
$LISTVIEW_ENTRIES_COUNT
}
"
id=
"noOfEntries"
>
<input
type=
"hidden"
name=
"currentSearchParams"
value=
"
{
Vtiger_Util_Helper
::
toSafeHTML
(
Zend_JSON
::
encode
(
$SEARCH_DETAILS
))
}
"
id=
"currentSearchParams"
/>
<input
type=
"hidden"
name=
"currentTagParams"
value=
"
{
Vtiger_Util_Helper
::
toSafeHTML
(
Zend_JSON
::
encode
(
$TAG_DETAILS
))
}
"
id=
"currentTagParams"
/>
<input
type=
"hidden"
name=
"noFilterCache"
value=
"
{
$NO_SEARCH_PARAMS_CACHE
}
"
id=
"noFilterCache"
>
<input
type=
"hidden"
name=
"orderBy"
value=
"
{
$ORDER_BY
}
"
id=
"orderBy"
>
<input
type=
"hidden"
name=
"sortOrder"
value=
"
{
$SORT_ORDER
}
"
id=
"sortOrder"
>
...
...
This diff is collapsed.
Click to expand it.
modules/Vtiger/views/List.php
+
8
−
13
View file @
374952c3
...
...
@@ -188,16 +188,16 @@ class Vtiger_List_View extends Vtiger_Index_View {
Vtiger_ListView_Model
::
setSortParamsSession
(
$tagSessionKey
,
$tag
);
}
if
(
empty
(
$cvId
))
{
$customView
=
new
CustomView
();
$cvId
=
$customView
->
getViewId
(
$moduleName
);
}
$listViewSessionKey
=
$moduleName
.
'_'
.
$cvId
;
if
(
!
empty
(
$tag
))
{
$listViewSessionKey
.
=
'_'
.
$tag
;
}
if
(
empty
(
$cvId
))
{
$customView
=
new
CustomView
();
$cvId
=
$customView
->
getViewId
(
$moduleName
);
}
$orderParams
=
Vtiger_ListView_Model
::
getSortParamsSession
(
$listViewSessionKey
);
if
(
$request
->
get
(
'mode'
)
==
'removeAlphabetSearch'
)
{
Vtiger_ListView_Model
::
deleteParamsSession
(
$listViewSessionKey
,
array
(
'search_key'
,
'search_value'
,
'operator'
));
...
...
@@ -213,11 +213,7 @@ class Vtiger_List_View extends Vtiger_Index_View {
if
(
empty
(
$listHeaders
))
{
$listHeaders
=
$orderParams
[
'list_headers'
];
}
if
(
!
empty
(
$tag
)
&&
empty
(
$tagParams
)){
$tagParams
=
$orderParams
[
'tag_params'
];
}
if
(
empty
(
$orderBy
)
&&
empty
(
$searchValue
)
&&
empty
(
$pageNumber
))
{
if
(
$orderParams
)
{
$pageNumber
=
$orderParams
[
'page'
];
...
...
@@ -302,9 +298,9 @@ class Vtiger_List_View extends Vtiger_Index_View {
$tagParams
=
array
();
}
$search
AndTag
Params
=
array_merge
(
$searchParams
,
$tagParams
);
$searchParams
=
array_merge
(
$searchParams
,
$tagParams
);
$transformedSearchParams
=
$this
->
transferListSearchParamsToFilterCondition
(
$search
AndTag
Params
,
$listViewModel
->
getModule
());
$transformedSearchParams
=
$this
->
transferListSearchParamsToFilterCondition
(
$searchParams
,
$listViewModel
->
getModule
());
$listViewModel
->
set
(
'search_params'
,
$transformedSearchParams
);
...
...
@@ -415,7 +411,6 @@ class Vtiger_List_View extends Vtiger_Index_View {
$viewer
->
assign
(
'IS_MODULE_EDITABLE'
,
$listViewModel
->
getModule
()
->
isPermitted
(
'EditView'
));
$viewer
->
assign
(
'IS_MODULE_DELETABLE'
,
$listViewModel
->
getModule
()
->
isPermitted
(
'Delete'
));
$viewer
->
assign
(
'SEARCH_DETAILS'
,
$searchParams
);
$viewer
->
assign
(
'TAG_DETAILS'
,
$tagParams
);
$viewer
->
assign
(
'NO_SEARCH_PARAMS_CACHE'
,
$request
->
get
(
'nolistcache'
));
$viewer
->
assign
(
'STAR_FILTER_MODE'
,
$starFilterMode
);
$viewer
->
assign
(
'VIEWID'
,
$cvId
);
...
...
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