Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
8f30b88dbe58eec1151e9486270997b34a3c1f10
2 parents
1efbd4cf
8ba64f4a
Merge branch 'release/4.8' of
http://git.yoho.cn/fe/yohobuypc
into release/4.8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
library/WebPlugin/HelperSearch.php
library/WebPlugin/HelperSearch.php
View file @
8f30b88
...
...
@@ -491,6 +491,16 @@ class HelperSearch
'checked'
=>
isset
(
self
::
$params
[
'ageLevel'
])
&&
self
::
$params
[
'ageLevel'
]
==
$href
?
true
:
false
);
}
//如果只有一个选项,默认选中
if
(
count
(
$filter
[
'ageLevel'
],
COUNT_NORMAL
)
===
1
){
self
::
$selected
[
'ageLevel'
]
=
array
(
'name'
=>
$filter
[
'ageLevel'
][
'0'
][
'name'
],
'href'
=>
self
::
buildUrl
(
$params
)
);
$result
[
'0'
][
'checked'
]
=
true
;
}
return
$result
;
}
...
...
Please
register
or
login
to post a comment