From c5988adbbbaed2688d5aca1662fec19ebbf62199 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sat, 26 Nov 2016 12:03:22 +0000 Subject: [PATCH] Fix read_only flag issue (#1003) --- application/helpers/table_helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php index 731b636f2..48c2d9fb6 100644 --- a/application/helpers/table_helper.php +++ b/application/helpers/table_helper.php @@ -121,11 +121,11 @@ function transform_headers_readonly($array) return json_encode($result); } -function transform_headers($array) +function transform_headers($array, $readonly = FALSE) { $result = array(); - if (!readonly) + if (!$readonly) { $array = array_merge(array(array('checkbox' => 'select', 'sortable' => FALSE)), $array); }