Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers
Viewing all articles
Browse latest Browse all 11965

Unsorted show/hide columns list in Ajax OCS Reports versions

$
0
0

The "All computers, Show/hide, Select columns to show/hide" drop-down menu list is unsorted :( I think this is due to new ajax code in ms_all_computers.php, but I can't realize how to fix that. It seems, the line to fix is the one that contains ajaxtab_entete_fixe:

if (is_defined($_SESSION['OCS']["mesmachines"])) {
    $queryDetails .= "AND " . $_SESSION['OCS']["mesmachines"];
}
$queryDetails .= " group by h.id";
$tab_options['LBL_POPUP']['SUP'] = 'name';
$tab_options['LBL']['SUP'] = $l->g(122);
$tab_options['TRI']['DATE']['e.bdate'] = "%m/%d/%Y"; // BIOS date format in database (varchar)

$entete = ajaxtab_entete_fixe($list_fields, $default_fields, $tab_options, $list_col_cant_del);

Previous non-ajax ocs reports versions, included this code:

if (isset($_SESSION['OCS']["mesmachines"]) and $_SESSION['OCS']["mesmachines"] != '')
        $queryDetails  .= "AND ".$_SESSION['OCS']["mesmachines"];
$queryDetails  .=" group by h.id";
$tab_options['LBL_POPUP']['SUP']='name';
$tab_options['LBL']['SUP']=$l->g(122);
$tab_options['TRI']['DATE']['e.bdate']="%m/%d/%Y";

$result_exist=tab_req($table_name,$list_fields,$default_fields, $list_col_cant_del,$queryDetails,$form_name,95,$tab_options);

Unsorted columns to show/hide:


Viewing all articles
Browse latest Browse all 11965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>