Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
330cee17
Commit
330cee17
authored
Mar 12, 2019
by
john
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3010
parent
6a54644e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
common/modules/documentation/models/SearchDocList.php
common/modules/documentation/models/SearchDocList.php
+4
-1
common/modules/documentation/views/documentation-list-admin/index.php
...es/documentation/views/documentation-list-admin/index.php
+5
-3
No files found.
common/modules/documentation/models/SearchDocList.php
View file @
330cee17
...
...
@@ -49,7 +49,10 @@ class SearchDocList extends DocList
$idListInt
[]
=
(
int
)
$_id
;
$query
=
DocList
::
find
();
$query
->
joinWith
([
'lang'
]);
$query
->
orderBy
([
new
\yii\db\Expression
(
'FIELD (`doc_list`.`id`, '
.
implode
(
','
,
$idListInt
)
.
')'
)]);
$sort
=
yii
::
$app
->
request
->
get
(
'sort'
);
if
(
!
$sort
)
$query
->
orderBy
([
new
\yii\db\Expression
(
'FIELD (`doc_list`.`id`, '
.
implode
(
','
,
$idListInt
)
.
')'
)]);
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
$query
,
'sort'
=>
[
...
...
common/modules/documentation/views/documentation-list-admin/index.php
View file @
330cee17
...
...
@@ -28,10 +28,12 @@ $parentList = $searchModel->getParentList($searchModel, 0, 0, true);
],
[
'attribute'
=>
'name'
,
'format'
=>
'raw'
,
'format'
=>
'raw'
,
'value'
=>
function
(
$model
)
use
(
$parentList
)
{
return
'<p style="white-space: nowrap;">'
.
$parentList
[
$model
->
id
.
' '
]
.
'</p>'
;
// return $model->lang->name;
$sort
=
yii
::
$app
->
request
->
get
(
'sort'
);
if
(
!
$sort
)
return
'<p style="white-space: nowrap;">'
.
$parentList
[
$model
->
id
.
' '
]
.
'</p>'
;
return
$model
->
lang
->
name
;
}
],
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment