Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer domains are missing unexpectedly #2

Merged
merged 1 commit into from
Oct 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<description>Demonstrates how to embed custom data in domains list.</description>
<category>example</category>
<version>1.1</version>
<release>3</release>
<release>4</release>
<vendor>Plesk</vendor>
<url>https://github.com/plesk/ext-simple-list-hook</url>
<plesk_min_version>17.0.14</plesk_min_version>
Expand Down
4 changes: 2 additions & 2 deletions plib/hooks/SimpleList.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public function isEnabled($controller, $action, $activeList)

public function getDataProvider($controller, $action, $activeList, $data)
{
// Hide all domains for client with id 5
$data->where('c.id <> ?', 5);
// Hide all domains for client from "News Snow" company
$data->where('c.cname <> ?', 'News Snow');

return $data;
}
Expand Down