From c6c51e6a8e5c1ee8ef2ecb7568f8f5ec224b32e5 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 14 Apr 2016 18:34:06 +0000 Subject: [PATCH] Fix changed column IDs hiding columns incorrectly --- timesheet/inc/class.timesheet_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 8c64490292..91f7fc1a69 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -788,9 +788,9 @@ class timesheet_ui extends timesheet_bo $query['selectcols'] = explode(',',$query['selectcols']); } #ts_quantity,ts_unitprice,ts_total - if ($query['selectcols'] && in_array('ts_quantity',$query['selectcols'])===false) $rows['no_ts_quantity'] = 1; + if ($query['selectcols'] && in_array('ts_quantity_quantity',$query['selectcols'])===false) $rows['no_ts_quantity'] = 1; if ($query['selectcols'] && in_array('ts_unitprice', $query['selectcols'])===false) $rows['no_ts_unitprice'] = 1; - if ($query['selectcols'] && in_array('ts_total',$query['selectcols'])===false) $rows['no_ts_total'] = 1; + if ($query['selectcols'] && in_array('ts_total_price',$query['selectcols'])===false) $rows['no_ts_total'] = 1; } $rows['no_ts_status'] = in_array('ts_status', $query['selectcols']) === false && !$this->config_data['history'] || $query['no_status'];