Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Alto
/
rkn
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 832bbc13
authored
2021-06-17 12:04:40 +0300
by
san58
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
исправил применение фильтра
1 parent
50b22cb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
controllers/AjaxController.php
controllers/AjaxController.php
View file @
832bbc1
...
...
@@ -80,16 +80,16 @@ class AjaxController extends Controller
Yii
::
$app
->
db
->
createCommand
()
->
update
(
'{{%host}}'
,
[
$filter_name
=>
Host
::
STATUS_OFF
],
[
'in'
,
'id'
,
$update
[
Host
::
STATUS_OFF
]])
->
execute
();
$count_update
[
Host
::
STATUS_OFF
]
+=
count
(
$update
[
$filter_type
][
Host
::
STATUS_OFF
]);
$update
[
$filter_type
][
Host
::
STATUS_OFF
]
=
[];
$count_update
[
Host
::
STATUS_OFF
]
+=
count
(
$update
[
Host
::
STATUS_OFF
]);
$update
[
Host
::
STATUS_OFF
]
=
[];
}
if
(
count
(
$update
[
Host
::
STATUS_ON
])
>
0
)
{
Yii
::
$app
->
db
->
createCommand
()
->
update
(
'{{%host}}'
,
[
$filter_name
=>
Host
::
STATUS_ON
],
[
'in'
,
'id'
,
$update
[
Host
::
STATUS_ON
]])
->
execute
();
$count_update
[
Host
::
STATUS_ON
]
+=
count
(
$update
[
$filter_type
][
Host
::
STATUS_ON
]);
$update
[
$filter_type
][
Host
::
STATUS_ON
]
=
[];
$count_update
[
Host
::
STATUS_ON
]
+=
count
(
$update
[
Host
::
STATUS_ON
]);
$update
[
Host
::
STATUS_ON
]
=
[];
}
unset
(
$filter_name
);
unset
(
$update
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment