Skip to content

Commit

Permalink
Fix #6 / thx to StCyr
Browse files Browse the repository at this point in the history
  • Loading branch information
gillesdubois committed Aug 3, 2015
1 parent c9acd95 commit f3a9843
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/main_sections/ms_all_computers/ms_all_computers.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
//delete one computer
if ($protectedPost['SUP_PROF'] != ''){
deleteDid($protectedPost['SUP_PROF']);
$tab_options['CACHE']='RESET';
$tab_options['CACHE']='RESET';
}

if (!isset($protectedPost['tri_'.$table_name]) or $protectedPost['tri_'.$table_name] == ""){
Expand Down Expand Up @@ -131,6 +131,10 @@
$queryDetails .= "LEFT JOIN bios e ON e.hardware_id=h.id
where deviceid<>'_SYSTEMGROUP_'
AND deviceid<>'_DOWNLOADGROUP_' ";
if (isset($_GET['value']) and $_GET['filtre'] == "a.TAG"){
$tag = $_GET['value'];
$queryDetails .= "AND a.TAG= '$tag' ";
}

if (isset($_SESSION['OCS']["mesmachines"]) and $_SESSION['OCS']["mesmachines"] != '')
$queryDetails .= "AND ".$_SESSION['OCS']["mesmachines"];
Expand Down

0 comments on commit f3a9843

Please sign in to comment.