Skip to content

Commit

Permalink
Merge branch 'release/2.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Dec 17, 2018
2 parents 830b7fd + e0c60df commit efc90c1
Show file tree
Hide file tree
Showing 5 changed files with 233 additions and 91 deletions.
8 changes: 8 additions & 0 deletions ajax/dropdownReplaceFindDevice.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@
$where .= " AND `is_helpdesk_visible` = '1' ";
}

if (isset($_REQUEST['used'])) {
$used = $_REQUEST['used'];

if (count($used)) {
$where .=" AND `$table`.`id` NOT IN ('".implode("','", $used)."' ) ";
}
}

if (isset($_REQUEST['current_item']) && ($_REQUEST['current_item'] > 0)) {
$where .= " AND `id` != " . $_REQUEST['current_item'];
}
Expand Down
Loading

0 comments on commit efc90c1

Please sign in to comment.